Module boardmap.seeeduinomega
- Occam header for Seeeduino Mega specific pin mappings
Occam header for Seeeduino Mega specific pin mappings.
Index
-
Constant
A0
- Symbolic constant for accessing the first analog pin -
Constant
A15
- Symbolic constant for accessing the last analog pin -
Constant
LED.PIN
- Symbolic constant to signify a lack of on-board LED pin -
Constant
MAP
- Array (hand written) to convert Arduino Mega pins to ATmega1280 Pins -
Constant
MISO
- Symbolic constant for accessing the Master data Input, Slave Output register (for use with SPI communication) -
Constant
MOSI
- Symbolic constant for accessing the Master data Output, Slave Input register (for use with SPI communication) -
Constant
PD4
- Symbolic constant for accessing SeeduinoMega specific, unnumbered pin -
Constant
PD4
- Symbolic constant for accessing SeeduinoMega specific, unnumbered pin -
Constant
PD5
- Symbolic constant for accessing SeeduinoMega specific, unnumbered pin -
Constant
PD6
- Symbolic constant for accessing SeeduinoMega specific, unnumbered pin -
Constant
PE2
- Symbolic constant for accessing SeeduinoMega specific, unnumbered pin -
Constant
PE6
- Symbolic constant for accessing SeeduinoMega specific, unnumbered pin -
Constant
PE7
- Symbolic constant for accessing SeeduinoMega specific, unnumbered pin -
Constant
PG3
- Symbolic constant for accessing SeeduinoMega specific, unnumbered pin -
Constant
PH2
- Symbolic constant for accessing SeeduinoMega specific, unnumbered pin -
Constant
PH7
- Symbolic constant for accessing SeeduinoMega specific, unnumbered pin -
Constant
PJ2
- Symbolic constant for accessing SeeduinoMega specific, unnumbered pin -
Constant
PJ3
- Symbolic constant for accessing SeeduinoMega specific, unnumbered pin -
Constant
PJ4
- Symbolic constant for accessing SeeduinoMega specific, unnumbered pin -
Constant
PJ5
- Symbolic constant for accessing SeeduinoMega specific, unnumbered pin -
Constant
PJ6
- Symbolic constant for accessing SeeduinoMega specific, unnumbered pin -
Constant
PJ7
- Symbolic constant for accessing SeeduinoMega specific, unnumbered pin -
Constant
RX0
- Symbolic constant for accessing the first read port -
Constant
RX3
- Symbolic constant for accessing the last read port -
Constant
SCK
- Symbolic constant for accessing the bus Serial ClocK register (for use with SPI communication) -
Constant
SCL
- Symbolic constant for accessing the Serial CLock register -
Constant
SDA
- Symbolic constant for accessing the Serial DAta register -
Constant
SS
- Symbolic constant for accessing the Slave Select input register (for use with SPI communication) -
Constant
TX0
- Symbolic constant for accessing the first transmit port -
Constant
TX3
- Symbolic constant for accessing the last transmit port -
Function
board.analog.to.chip
- SeeeduinoMega specific conversion function for finding chip-specific pins specifically for analog pins -
Function
board.to.chip
- SeeeduinoMega specific conversion function for finding chip-specific pins from board-specific pin -
Function
board.to.serial.port
- SeeeduinoMega specific conversion function for finding chip-specific pins specifically for serial operations
Declarations
boardmap.module
:104Constant PE2
VAL INT PE2
Symbolic constant for accessing SeeduinoMega specific, unnumbered pin.
boardmap.module
:106Constant PE6
VAL INT PE6
Symbolic constant for accessing SeeduinoMega specific, unnumbered pin.
boardmap.module
:108Constant PE7
VAL INT PE7
Symbolic constant for accessing SeeduinoMega specific, unnumbered pin.
boardmap.module
:110Constant PG3
VAL INT PG3
Symbolic constant for accessing SeeduinoMega specific, unnumbered pin.
boardmap.module
:112Constant PD4
VAL INT PD4
Symbolic constant for accessing SeeduinoMega specific, unnumbered pin.
boardmap.module
:114Constant PD6
VAL INT PD6
Symbolic constant for accessing SeeduinoMega specific, unnumbered pin.
boardmap.module
:116Constant PD5
VAL INT PD5
Symbolic constant for accessing SeeduinoMega specific, unnumbered pin.
boardmap.module
:118Constant PD4
VAL INT PD4
Symbolic constant for accessing SeeduinoMega specific, unnumbered pin.
boardmap.module
:121Constant PJ7
VAL INT PJ7
Symbolic constant for accessing SeeduinoMega specific, unnumbered pin.
boardmap.module
:123Constant PJ6
VAL INT PJ6
Symbolic constant for accessing SeeduinoMega specific, unnumbered pin.
boardmap.module
:125Constant PJ5
VAL INT PJ5
Symbolic constant for accessing SeeduinoMega specific, unnumbered pin.
boardmap.module
:127Constant PJ4
VAL INT PJ4
Symbolic constant for accessing SeeduinoMega specific, unnumbered pin.
boardmap.module
:129Constant PJ3
VAL INT PJ3
Symbolic constant for accessing SeeduinoMega specific, unnumbered pin.
boardmap.module
:131Constant PJ2
VAL INT PJ2
Symbolic constant for accessing SeeduinoMega specific, unnumbered pin.
boardmap.module
:133Constant PH7
VAL INT PH7
Symbolic constant for accessing SeeduinoMega specific, unnumbered pin.
boardmap.module
:135Constant PH2
VAL INT PH2
Symbolic constant for accessing SeeduinoMega specific, unnumbered pin.
boardmap.module
:138Constant A0
VAL INT A0
Symbolic constant for accessing the first analog pin.
boardmap.module
:157Constant A15
VAL INT A15
Symbolic constant for accessing the last analog pin.
Constants A1:14 do exist, they are simply not documented here for the sake of saving space.
boardmap.module
:160Constant RX0
VAL INT RX0
Symbolic constant for accessing the first read port.
boardmap.module
:162Constant TX0
VAL INT TX0
Symbolic constant for accessing the first transmit port.
boardmap.module
:171Constant RX3
VAL INT RX3
Symbolic constant for accessing the last read port.
Constants RX1:2 do exist, they are simply not documented here for the sake of saving space.
boardmap.module
:176Constant TX3
VAL INT TX3
Symbolic constant for accessing the last transmit port.
Constants TX1:2 do exist, they are simply not documented here for the sake of saving space.
boardmap.module
:179Constant SDA
VAL INT SDA
Symbolic constant for accessing the Serial DAta register.
boardmap.module
:181Constant SCL
VAL INT SCL
Symbolic constant for accessing the Serial CLock register.
boardmap.module
:185Constant MISO
VAL INT MISO
Symbolic constant for accessing the Master data Input, Slave Output register (for use with SPI communication).
boardmap.module
:188Constant MOSI
VAL INT MOSI
Symbolic constant for accessing the Master data Output, Slave Input register (for use with SPI communication).
boardmap.module
:191Constant SCK
VAL INT SCK
Symbolic constant for accessing the bus Serial ClocK register (for use with SPI communication).
boardmap.module
:194Constant SS
VAL INT SS
Symbolic constant for accessing the Slave Select input register (for use with SPI communication).
boardmap.module
:197Constant LED.PIN
VAL INT LED.PIN
Symbolic constant to signify a lack of on-board LED pin.
boardmap.module
:202Constant MAP
VAL []INT MAP
Array (hand written) to convert Arduino Mega pins to ATmega1280 Pins.
boardmap.module
:221Function board.to.chip
INT INLINE FUNCTION board.to.chip (VAL INT board.pin)
SeeeduinoMega specific conversion function for finding chip-specific pins from board-specific pin.
Parameters:
VAL INT |
board.pin |
The board pin to be mapped to an AVR pin. |
Returns:
INT |
The AVR pin connected to the given board pin. |
boardmap.module
:234Function board.analog.to.chip
INT INLINE FUNCTION board.analog.to.chip (VAL INT board.analog.pin)
SeeeduinoMega specific conversion function for finding chip-specific pins specifically for analog pins.
If the user inputs 0-15, the appropriate analog pin number is substituted. For example, if '11' is passed in as board.analog.pin
, A11 is is substituted in before the lookup call.
Parameters:
VAL INT |
board.analog.pin |
The board pin to be mapped to an AVR pin. |
Returns:
INT |
The AVR pin connected to the given board pin. |
boardmap.module
:257Function board.to.serial.port
INT INLINE FUNCTION board.to.serial.port (VAL INT board.pin)
SeeeduinoMega specific conversion function for finding chip-specific pins specifically for serial operations.
Each serial read/transmit pair is organized into a single 'port' for use with /arch/common/usart.moduel. RX2 and TX2 are pins 17 and 16, but they -- being part of the same port -- are both mapped to '2'.
Parameters:
VAL INT |
board.pin |
The board pin to be mapped to a serial port. |
Returns:
INT |
The serial port corresponding to the given board pin. |