Atmel Software Framework

Symbols that describe features and capabilities of the board.

Macros

#define BOARD_NAME   "SAMG53_XPLAINED_PRO"
 Name string macro. More...
 
#define BUTTON_COUNT   1
 Number of on-board buttons. More...
 
#define CONSOLE_UART   UART0
 
#define CONSOLE_UART_ID   ID_UART0
 
#define LED_COUNT   1
 Number of on-board LEDs. More...
 
#define PIN_PCK0   (PIO_PA6_IDX)
 PCK0 pin definition (PA6) More...
 
#define PIN_PCK0_ATTR   PIO_DEFAULT
 
#define PIN_PCK0_FLAGS   (IOPORT_MODE_MUX_B)
 
#define PIN_PCK0_ID   ID_PIOA
 
#define PIN_PCK0_MASK   PIO_PA6B_PCK0
 
#define PIN_PCK0_MUX   (IOPORT_MODE_MUX_B)
 
#define PIN_PCK0_PIO   PIOA
 
#define PIN_PCK0_PORT   IOPORT_PIOA
 
#define PIN_PCK0_TYPE   PIO_PERIPH_B
 
#define PIN_TC0_TIOA0   (PIO_PA0_IDX)
 
#define PIN_TC0_TIOA0_FLAGS   (PIO_PERIPH_B | PIO_DEFAULT)
 
#define PIN_TC0_TIOA0_MUX   (IOPORT_MODE_MUX_B)
 
#define PIN_TC0_TIOA1   (PIO_PA23_IDX)
 
#define PIN_TC0_TIOA1_FLAGS   (PIO_PERIPH_B | PIO_DEFAULT)
 
#define PIN_TC0_TIOA1_MUX   (IOPORT_MODE_MUX_B)
 
#define PINS_UART0   (PIO_PA9A_URXD0 | PIO_PA10A_UTXD0)
 UART0 pins (UTXD0 and URXD0) definitions, PA9,10. More...
 
#define PINS_UART0_ATTR   PIO_DEFAULT
 
#define PINS_UART0_FLAGS   (IOPORT_MODE_MUX_A)
 
#define PINS_UART0_ID   ID_PIOA
 
#define PINS_UART0_MASK   (PIO_PA9A_URXD0 | PIO_PA10A_UTXD0)
 
#define PINS_UART0_PIO   PIOA
 
#define PINS_UART0_PORT   IOPORT_PIOA
 
#define PINS_UART0_TYPE   PIO_PERIPH_A
 

Resonator definitions

#define BOARD_FREQ_SLCK_XTAL   (32768U)
 
#define BOARD_FREQ_SLCK_BYPASS   (32768U)
 
#define BOARD_FREQ_MAINCK_XTAL   0 /* Not Mounted */
 
#define BOARD_FREQ_MAINCK_BYPASS   0 /* Not Mounted */
 
#define BOARD_MCK   CHIP_FREQ_CPU_MAX
 
#define BOARD_OSC_STARTUP_US   15625
 

LED0 definitions

#define LED0_GPIO   (PIO_PA16_IDX)
 
#define LED0_FLAGS   (PIO_OUTPUT_1 | PIO_DEFAULT)
 
#define LED0_PIN   IOPORT_CREATE_PIN(PIOA, 16)
 
#define LED0_ACTIVE_LEVEL   false
 
#define LED0_INACTIVE_LEVEL   !LED0_ACTIVE_LEVEL
 

SW0 definitions

#define SW0_PIN   IOPORT_CREATE_PIN(PIOA, 2)
 
#define SW0_ACTIVE   false
 
#define SW0_INACTIVE   !SW0_ACTIVE
 
#define SW0_SUPC_INPUT   2
 

LED #0 definitions

Wrapper macros for LED0, to ensure common naming across all Xplained Pro boards.

#define LED_0_NAME   "LED0 (yellow)"
 
#define LED_0_PIN   LED0_PIN
 
#define LED_0_ACTIVE   LED0_ACTIVE_LEVEL
 
#define LED_0_INACTIVE   LED0_INACTIVE_LEVEL
 
#define PIN_LED_0   {PIO_PA16, PIOA, ID_PIOA, PIO_OUTPUT_1, PIO_DEFAULT}
 
#define PIN_LED_0_MASK   PIO_PA16
 
#define PIN_LED_0_PIO   PIOA
 
#define PIN_LED_0_ID   ID_PIOA
 
#define PIN_LED_0_TYPE   PIO_OUTPUT_1
 
#define PIN_LED_0_ATTR   PIO_DEFAULT
 

Button #0 definitions

Wrapper macros for SW0, to ensure common naming across all Xplained Pro boards.

#define BUTTON_0_NAME   "SW0"
 
#define BUTTON_0_PIN   SW0_PIN
 
#define BUTTON_0_ACTIVE   SW0_ACTIVE
 
#define BUTTON_0_INACTIVE   SW0_INACTIVE
 
#define BUTTON_0_SUPC_INPUT   SW0_SUPC_INPUT
 
#define PIN_PUSHBUTTON_1   {PIO_PA2, PIOA, ID_PIOA, PIO_INPUT, PIO_PULLUP | PIO_DEBOUNCE | PIO_IT_RISE_EDGE}
 
#define PIN_PUSHBUTTON_1_MASK   PIO_PA2
 
#define PIN_PUSHBUTTON_1_PIO   PIOA
 
#define PIN_PUSHBUTTON_1_ID   ID_PIOA
 
#define PIN_PUSHBUTTON_1_TYPE   PIO_INPUT
 
#define PIN_PUSHBUTTON_1_ATTR   PIO_PULLUP | PIO_DEBOUNCE | PIO_IT_RISE_EDGE
 

IO1 button definitions */

#define PUSHBUTTON_1_NAME   "SW0"
 Push button #1 definition. More...
 
#define PUSHBUTTON_1_NAME   "SW0"
 Push button #1 definition. More...
 
#define GPIO_PUSH_BUTTON_1   SW0_PIN
 
#define GPIO_PUSH_BUTTON_1_FLAGS   (PIO_INPUT | PIO_PULLUP | PIO_DEBOUNCE | PIO_IT_RISE_EDGE)
 

SPI

#define SPI_MISO_GPIO   (PIO_PA12_IDX)
 SPI MISO pin definition. More...
 
#define SPI_MISO_FLAGS   (IOPORT_MODE_MUX_A)
 
#define SPI_MOSI_GPIO   (PIO_PA13_IDX)
 SPI MOSI pin definition. More...
 
#define SPI_MOSI_FLAGS   (IOPORT_MODE_MUX_A)
 
#define SPI_SPCK_GPIO   (PIO_PA14_IDX)
 SPI SPCK pin definition. More...
 
#define SPI_SPCK_FLAGS   (IOPORT_MODE_MUX_A)
 
#define SPI_NPCS0_GPIO   (PIO_PA11_IDX)
 SPI chip select 0 pin definition. More...
 
#define SPI_NPCS0_FLAGS   (IOPORT_MODE_MUX_A)
 
#define SPI_NPCS1_GPIO   (PIO_PB2_IDX)
 SPI chip select 1 pin definition. More...
 
#define SPI_NPCS1_FLAGS   (IOPORT_MODE_MUX_B)
 

Extension header #1 pin definitions

#define EXT1_PIN_3   IOPORT_CREATE_PIN(PIOA, 17)
 
#define EXT1_PIN_4   IOPORT_CREATE_PIN(PIOA, 18)
 
#define EXT1_PIN_5   IOPORT_CREATE_PIN(PIOB, 3)
 
#define EXT1_PIN_6   IOPORT_CREATE_PIN(PIOB, 9)
 
#define EXT1_PIN_7   IOPORT_CREATE_PIN(PIOA, 0)
 
#define EXT1_PIN_8   IOPORT_CREATE_PIN(PIOA, 1)
 
#define EXT1_PIN_9   IOPORT_CREATE_PIN(PIOA, 24)
 
#define EXT1_PIN_10   IOPORT_CREATE_PIN(PIOA, 20)
 
#define EXT1_PIN_11   IOPORT_CREATE_PIN(PIOB, 0)
 
#define EXT1_PIN_12   IOPORT_CREATE_PIN(PIOB, 1)
 
#define EXT1_PIN_13   IOPORT_CREATE_PIN(PIOA, 5)
 
#define EXT1_PIN_14   IOPORT_CREATE_PIN(PIOA, 6)
 
#define EXT1_PIN_15   IOPORT_CREATE_PIN(PIOA, 11)
 
#define EXT1_PIN_16   IOPORT_CREATE_PIN(PIOA, 13)
 
#define EXT1_PIN_17   IOPORT_CREATE_PIN(PIOA, 12)
 
#define EXT1_PIN_18   IOPORT_CREATE_PIN(PIOA, 14)
 

Extension header #1 pin definitions by function

#define EXT1_PIN_ADC_0   EXT1_PIN_3
 
#define EXT1_PIN_ADC_1   EXT1_PIN_4
 
#define EXT1_PIN_GPIO_0   EXT1_PIN_5
 
#define EXT1_PIN_GPIO_1   EXT1_PIN_6
 
#define EXT1_PIN_PWM_0   EXT1_PIN_7
 
#define EXT1_PIN_PWM_1   EXT1_PIN_8
 
#define EXT1_PIN_IRQ   EXT1_PIN_9
 
#define EXT1_PIN_I2C_SDA   EXT1_PIN_11
 
#define EXT1_PIN_I2C_SCL   EXT1_PIN_12
 
#define EXT1_PIN_UART_RX   EXT1_PIN_13
 
#define EXT1_PIN_UART_TX   EXT1_PIN_14
 
#define EXT1_PIN_SPI_SS_1   EXT1_PIN_10
 
#define EXT1_PIN_SPI_SS_0   EXT1_PIN_15
 
#define EXT1_PIN_SPI_MOSI   EXT1_PIN_16
 
#define EXT1_PIN_SPI_MISO   EXT1_PIN_17
 
#define EXT1_PIN_SPI_SCK   EXT1_PIN_18
 

Extension header #1 ADC definitions

#define EXT1_ADC_MODULE   ADC
 
#define EXT1_ADC_0_CHANNEL   0
 
#define EXT1_ADC_1_CHANNEL   1
 

Extension header #1 PWM definitions

#define EXT1_PWM_MODULE   TC0
 
#define EXT1_PWM_0_CHANNEL   0
 
#define EXT1_PWM_0_MUX   IOPORT_MODE_MUX_B
 
#define EXT1_PWM_1_CHANNEL   1
 
#define EXT1_PWM_1_MUX   IOPORT_MODE_MUX_B
 

Extension header #1 IRQ/External interrupt definitions

#define EXT1_IRQ_MODULE   SUPC
 
#define EXT1_IRQ_INPUT   11
 

Extension header #1 I2C definitions

#define EXT1_TWI_MODULE   TWI2
 
#define EXT1_TWI_TWD_MUX   IOPORT_MODE_MUX_B
 
#define EXT1_TWI_TWCK_MUX   IOPORT_MODE_MUX_B
 

Extension header #1 UART definitions

#define EXT1_UART_MODULE   USART
 
#define EXT1_UART_RXD_MUX   IOPORT_MODE_MUX_A
 
#define EXT1_UART_TXD_MUX   IOPORT_MODE_MUX_A
 

Extension header #1 SPI definitions

#define EXT1_SPI_MODULE   SPI
 
#define EXT1_SPI_MISO_MUX   IOPORT_MODE_MUX_A
 
#define EXT1_SPI_MOSI_MUX   IOPORT_MODE_MUX_A
 
#define EXT1_SPI_SPCK_MUX   IOPORT_MODE_MUX_A
 
#define EXT1_SPI_NPCS0_MUX   IOPORT_MODE_MUX_A
 

Extension header #3 pin definitions

#define EXT3_PIN_3   IOPORT_CREATE_PIN(PIOA, 19)
 
#define EXT3_PIN_4   IOPORT_CREATE_PIN(PIOA, 20)
 
#define EXT3_PIN_5   IOPORT_CREATE_PIN(PIOB, 4)
 
#define EXT3_PIN_7   IOPORT_CREATE_PIN(PIOA, 21)
 
#define EXT3_PIN_9   IOPORT_CREATE_PIN(PIOA, 22)
 
#define EXT3_PIN_10   IOPORT_CREATE_PIN(PIOA, 15)
 
#define EXT3_PIN_11   IOPORT_CREATE_PIN(PIOB, 10)
 
#define EXT3_PIN_12   IOPORT_CREATE_PIN(PIOB, 11)
 
#define EXT3_PIN_13   IOPORT_CREATE_PIN(PIOA, 9)
 
#define EXT3_PIN_14   IOPORT_CREATE_PIN(PIOA, 10)
 
#define EXT3_PIN_15   IOPORT_CREATE_PIN(PIOB, 2)
 
#define EXT3_PIN_16   IOPORT_CREATE_PIN(PIOA, 13)
 
#define EXT3_PIN_17   IOPORT_CREATE_PIN(PIOA, 12)
 
#define EXT3_PIN_18   IOPORT_CREATE_PIN(PIOA, 14)
 

Extension header #3 pin definitions by function

#define EXT3_PIN_ADC_0   EXT3_PIN_3
 
#define EXT3_PIN_ADC_1   EXT3_PIN_4
 
#define EXT3_PIN_GPIO_0   EXT3_PIN_5
 
#define EXT3_PIN_PWM_0   EXT3_PIN_7
 
#define EXT3_PIN_IRQ   EXT3_PIN_9
 
#define EXT3_PIN_I2C_SDA   EXT3_PIN_11
 
#define EXT3_PIN_I2C_SCL   EXT3_PIN_12
 
#define EXT3_PIN_UART_RX   EXT3_PIN_13
 
#define EXT3_PIN_UART_TX   EXT3_PIN_14
 
#define EXT3_PIN_SPI_SS_1   EXT3_PIN_10
 
#define EXT3_PIN_SPI_SS_0   EXT3_PIN_15
 
#define EXT3_PIN_SPI_MOSI   EXT3_PIN_16
 
#define EXT3_PIN_SPI_MISO   EXT3_PIN_17
 
#define EXT3_PIN_SPI_SCK   EXT3_PIN_18
 

Extension header #3 ADC definitions

#define EXT3_ADC_MODULE   ADC
 
#define EXT3_ADC_0_CHANNEL   2
 
#define EXT3_ADC_1_CHANNEL   3
 

Extension header #3 PWM definitions

#define EXT3_PWM_MODULE   TC2
 
#define EXT3_PWM_0_CHANNEL   0
 
#define EXT3_PWM_0_MUX   IOPORT_MODE_MUX_A
 

Extension header #3 IRQ/External interrupt definitions

#define EXT3_IRQ_MODULE   SUPC
 
#define EXT3_IRQ_INPUT   10
 

Extension header #3 I2C definitions

#define EXT3_TWI_MODULE   TWI1
 
#define EXT3_TWI_TWD_MUX   IOPORT_MODE_MUX_A
 
#define EXT3_TWI_TWCK_MUX   IOPORT_MODE_MUX_A
 

Extension header #3 UART definitions

#define EXT3_UART_MODULE   UART0
 
#define EXT3_UART_RXD_MUX   IOPORT_MODE_MUX_A
 
#define EXT3_UART_TXD_MUX   IOPORT_MODE_MUX_A
 

Extension header #3 SPI definitions

#define EXT3_SPI_MODULE   SPI
 
#define EXT3_SPI_MISO_MUX   IOPORT_MODE_MUX_A
 
#define EXT3_SPI_MOSI_MUX   IOPORT_MODE_MUX_A
 
#define EXT3_SPI_SPCK_MUX   IOPORT_MODE_MUX_A
 
#define EXT3_SPI_NPCS1_MUX   IOPORT_MODE_MUX_B
 

Extension header #4 pin definitions

#define EXT4_PIN_5   IOPORT_CREATE_PIN(PIOA, 15)
 
#define EXT4_PIN_9   IOPORT_CREATE_PIN(PIOB, 8)
 
#define EXT4_PIN_11   IOPORT_CREATE_PIN(PIOB, 10)
 
#define EXT4_PIN_12   IOPORT_CREATE_PIN(PIOB, 11)
 

Extension header #4 pin definitions by function

#define EXT4_PIN_GPIO_0   EXT3_PIN_5
 
#define EXT4_PIN_IRQ   EXT3_PIN_9
 
#define EXT4_PIN_I2C_SDA   EXT3_PIN_11
 
#define EXT4_PIN_I2C_SCL   EXT3_PIN_12
 

Extension header #4 IRQ/External interrupt definitions

#define EXT4_IRQ_MODULE   SUPC
 
#define EXT4_IRQ_INPUT   14
 

Extension header #4 TWI definitions

#define EXT4_TWI_MODULE   TWI1
 
#define EXT4_TWI_TWD_MUX   IOPORT_MODE_MUX_A
 
#define EXT4_TWI_TWCK_MUX   IOPORT_MODE_MUX_A
 

Embedded debugger GPIO interface definitions

#define EDBG_GPIO0_PIN   IOPORT_CREATE_PIN(PIOA, 15)
 
#define EDBG_GPIO1_PIN   IOPORT_CREATE_PIN(PIOB, 3)
 
#define EDBG_GPIO2_PIN   IOPORT_CREATE_PIN(PIOB, 4)
 
#define EDBG_GPIO3_PIN   IOPROT_CREATE_PIN(PIOB, 9)
 

Embedded debugger USART interface definitions

#define EDBG_UART_MODULE   USART
 
#define EDBG_UART_RX_PIN   IOPORT_CREATE_PIN(PIOA, 5)
 
#define EDBG_UART_RX_MUX   IOPORT_MODE_MUX_A
 
#define EDBG_UART_TX_PIN   IOPORT_CREATE_PIN(PIOA, 6)
 
#define EDBG_UART_TX_MUX   IOPORT_MODE_MUX_A
 

Embedded debugger I2C interface definitions

#define EDBG_TWI_MODULE   TWI1
 
#define EDBG_TWI_TWD_MUX   IOPORT_MODE_MUX_A
 
#define EDBG_TWI_TWCK_MUX   IOPORT_MODE_MUX_A
 

Embedded debugger CDC Gateway USART interface definitions

#define EDBG_CDC_UART_MODULE   UART0
 
#define EDBG_CDC_UART_RX_PIN   IOPORT_CREATE_PIN(PIOA, 9)
 
#define EDBG_CDC_UART_RX_MUX   IOPORT_MODE_MUX_A
 
#define EDBG_CDC_UART_TX_PIN   IOPORT_CREATE_PIN(PIOA, 10)
 
#define EDBG_CDC_UART_TX_MUX   IOPORT_MODE_MUX_A
 

TWI

#define TWI0_DATA_GPIO   PIO_PA3_IDX
 TWI0 pin definitions. More...
 
#define TWI0_DATA_FLAGS   IOPORT_MODE_MUX_A
 
#define TWI0_CLK_GPIO   PIO_PA4_IDX
 
#define TWI0_CLK_FLAGS   IOPORT_MODE_MUX_A
 
#define TWI1_DATA_GPIO   EXT3_PIN_11
 TWI1 pin definitions. More...
 
#define TWI1_DATA_FLAGS   IOPORT_MODE_MUX_A
 
#define TWI1_CLK_GPIO   EXT3_PIN_12
 
#define TWI1_CLK_FLAGS   IOPORT_MODE_MUX_A
 
#define TWI2_DATA_GPIO   EXT1_PIN_11
 TWI2 pin definitions. More...
 
#define TWI2_DATA_FLAGS   IOPORT_MODE_MUX_B
 
#define TWI2_CLK_GPIO   EXT1_PIN_12
 
#define TWI2_CLK_FLAGS   IOPORT_MODE_MUX_B
 

I2S0

#define I2S0_SCK_GPIO   (PIO_PA0_IDX)
 I2S0 SCK pin definition. More...
 
#define I2S0_SCK_FLAGS   (IOPORT_MODE_MUX_A)
 
#define I2S0_MCK_GPIO   (PIO_PA4_IDX)
 I2S0 MCK pin definition. More...
 
#define I2S0_MCK_FLAGS   (IOPORT_MODE_MUX_B)
 
#define I2S0_SDI_GPIO   (PIO_PA2_IDX)
 I2S0 SDI pin definition. More...
 
#define I2S0_SDI_FLAGS   (IOPORT_MODE_MUX_B)
 
#define I2S0_SDO_GPIO   (PIO_PA3_IDX)
 I2S0 SDO pin definition. More...
 
#define I2S0_SDO_FLAGS   (IOPORT_MODE_MUX_B)
 
#define I2S0_WS_GPIO   (PIO_PA1_IDX)
 I2S0 WS pin definition. More...
 
#define I2S0_WS_FLAGS   (IOPORT_MODE_MUX_A)
 

I2S1

#define I2S1_SCK_GPIO   (PIO_PA19_IDX)
 I2S1 SCK pin definition. More...
 
#define I2S1_SCK_FLAGS   (IOPORT_MODE_MUX_B)
 
#define I2S1_MCK_GPIO   (PIO_PA24_IDX)
 I2S1 MCK pin definition. More...
 
#define I2S1_MCK_FLAGS   (IOPORT_MODE_MUX_A)
 
#define I2S1_SDI_GPIO   (PIO_PA22_IDX)
 I2S1 SDI pin definition. More...
 
#define I2S1_SDI_FLAGS   (IOPORT_MODE_MUX_B)
 
#define I2S1_SDO_GPIO   (PIO_PA23_IDX)
 I2S1 SDO pin definition. More...
 
#define I2S1_SDO_FLAGS   (IOPORT_MODE_MUX_A)
 
#define I2S1_WS_GPIO   (PIO_PA20_IDX)
 I2S1 WS pin definition. More...
 
#define I2S1_WS_FLAGS   (IOPORT_MODE_MUX_B)
 

IO1 SD card definitions */

#define SD_MMC_SPI_MEM_CNT   1
 
#define SD_MMC_0_CD_GPIO   (PIO_PA20_IDX)
 
#define SD_MMC_0_CD_DIR   (IOPORT_DIR_INPUT)
 
#define SD_MMC_0_CD_MODE   (IOPORT_MODE_PULLUP)
 
#define SD_MMC_0_CD_DETECT_VALUE   0
 
#define SD_MMC_SPI   SPI
 
#define SD_MMC_SPI_0_CS   0
 
#define SD_MMC_0_CD_PIO_ID   ID_PIOA
 
#define SD_MMC_0_CD_FLAGS   (PIO_INPUT | PIO_PULLUP)
 Wrapper macros for IO1 SD, to ensure common naming across all Xplained Pro boards. More...
 
#define SD_MMC_0_CD   {PIO_PA20, PIOA, ID_PIOA, PIO_INPUT, PIO_PULLUP | PIO_DEBOUNCE | PIO_IT_RISE_EDGE}
 
#define SD_MMC_0_CD_MASK   PIO_PA20
 
#define SD_MMC_0_CD_PIO   PIOA
 
#define SD_MMC_0_CD_ID   ID_PIOA
 
#define SD_MMC_0_CD_TYPE   PIO_INPUT
 
#define SD_MMC_0_CD_ATTR   (PIO_PULLUP | PIO_DEBOUNCE | PIO_IT_EDGE)
 

IO1 temperature sensor definitions */

#define BOARD_AT30TSE_TWI   TWI2
 
#define BOARD_AT30TSE_TWI_ID   ID_TWI2
 
#define BOARD_TWI_SPEED   (400000u)
 
#define BOARD_USING_AT30TSE   AT30TSE758
 
#define BOARD_AT30TSE_DEVICE_ADDR   0x07
 

PDM

#define PDM_CLK_GPIO   (PIO_PA10_IDX)
 PDM CLK pin definition. More...
 
#define PDM_CLK_FLAGS   (IOPORT_MODE_MUX_B)
 
#define PDM_DAT_GPIO   (PIO_PA9_IDX)
 PDM DAT pin definition. More...
 
#define PDM_DAT_FLAGS   (IOPORT_MODE_MUX_B)
 

#define BOARD_AT30TSE_DEVICE_ADDR   0x07
#define BOARD_AT30TSE_TWI   TWI2
#define BOARD_AT30TSE_TWI_ID   ID_TWI2
#define BOARD_FREQ_MAINCK_BYPASS   0 /* Not Mounted */

Referenced by osc_get_rate().

#define BOARD_FREQ_MAINCK_XTAL   0 /* Not Mounted */

Referenced by osc_get_rate().

#define BOARD_FREQ_SLCK_BYPASS   (32768U)

Referenced by osc_get_rate().

#define BOARD_FREQ_SLCK_XTAL   (32768U)

Referenced by osc_get_rate().

#define BOARD_MCK   CHIP_FREQ_CPU_MAX
#define BOARD_NAME   "SAMG53_XPLAINED_PRO"

Name string macro.

#define BOARD_OSC_STARTUP_US   15625

Referenced by osc_enable().

#define BOARD_TWI_SPEED   (400000u)
#define BOARD_USING_AT30TSE   AT30TSE758
#define BUTTON_0_ACTIVE   SW0_ACTIVE
#define BUTTON_0_INACTIVE   SW0_INACTIVE
#define BUTTON_0_NAME   "SW0"
#define BUTTON_0_PIN   SW0_PIN
#define BUTTON_0_SUPC_INPUT   SW0_SUPC_INPUT
#define BUTTON_COUNT   1

Number of on-board buttons.

#define CONSOLE_UART   UART0
#define CONSOLE_UART_ID   ID_UART0

Referenced by configure_console().

#define EDBG_CDC_UART_MODULE   UART0
#define EDBG_CDC_UART_RX_MUX   IOPORT_MODE_MUX_A
#define EDBG_CDC_UART_RX_PIN   IOPORT_CREATE_PIN(PIOA, 9)
#define EDBG_CDC_UART_TX_MUX   IOPORT_MODE_MUX_A
#define EDBG_CDC_UART_TX_PIN   IOPORT_CREATE_PIN(PIOA, 10)
#define EDBG_GPIO0_PIN   IOPORT_CREATE_PIN(PIOA, 15)
#define EDBG_GPIO1_PIN   IOPORT_CREATE_PIN(PIOB, 3)
#define EDBG_GPIO2_PIN   IOPORT_CREATE_PIN(PIOB, 4)
#define EDBG_GPIO3_PIN   IOPROT_CREATE_PIN(PIOB, 9)
#define EDBG_TWI_MODULE   TWI1
#define EDBG_TWI_TWCK_MUX   IOPORT_MODE_MUX_A
#define EDBG_TWI_TWD_MUX   IOPORT_MODE_MUX_A
#define EDBG_UART_MODULE   USART
#define EDBG_UART_RX_MUX   IOPORT_MODE_MUX_A
#define EDBG_UART_RX_PIN   IOPORT_CREATE_PIN(PIOA, 5)
#define EDBG_UART_TX_MUX   IOPORT_MODE_MUX_A
#define EDBG_UART_TX_PIN   IOPORT_CREATE_PIN(PIOA, 6)
#define EXT1_ADC_0_CHANNEL   0
#define EXT1_ADC_1_CHANNEL   1
#define EXT1_ADC_MODULE   ADC
#define EXT1_IRQ_INPUT   11
#define EXT1_IRQ_MODULE   SUPC
#define EXT1_PIN_10   IOPORT_CREATE_PIN(PIOA, 20)
#define EXT1_PIN_11   IOPORT_CREATE_PIN(PIOB, 0)
#define EXT1_PIN_12   IOPORT_CREATE_PIN(PIOB, 1)
#define EXT1_PIN_13   IOPORT_CREATE_PIN(PIOA, 5)
#define EXT1_PIN_14   IOPORT_CREATE_PIN(PIOA, 6)
#define EXT1_PIN_15   IOPORT_CREATE_PIN(PIOA, 11)
#define EXT1_PIN_16   IOPORT_CREATE_PIN(PIOA, 13)
#define EXT1_PIN_17   IOPORT_CREATE_PIN(PIOA, 12)
#define EXT1_PIN_18   IOPORT_CREATE_PIN(PIOA, 14)
#define EXT1_PIN_3   IOPORT_CREATE_PIN(PIOA, 17)
#define EXT1_PIN_4   IOPORT_CREATE_PIN(PIOA, 18)
#define EXT1_PIN_5   IOPORT_CREATE_PIN(PIOB, 3)
#define EXT1_PIN_6   IOPORT_CREATE_PIN(PIOB, 9)
#define EXT1_PIN_7   IOPORT_CREATE_PIN(PIOA, 0)
#define EXT1_PIN_8   IOPORT_CREATE_PIN(PIOA, 1)
#define EXT1_PIN_9   IOPORT_CREATE_PIN(PIOA, 24)
#define EXT1_PIN_ADC_0   EXT1_PIN_3
#define EXT1_PIN_ADC_1   EXT1_PIN_4
#define EXT1_PIN_GPIO_0   EXT1_PIN_5
#define EXT1_PIN_GPIO_1   EXT1_PIN_6
#define EXT1_PIN_I2C_SCL   EXT1_PIN_12
#define EXT1_PIN_I2C_SDA   EXT1_PIN_11
#define EXT1_PIN_IRQ   EXT1_PIN_9
#define EXT1_PIN_PWM_0   EXT1_PIN_7
#define EXT1_PIN_PWM_1   EXT1_PIN_8
#define EXT1_PIN_SPI_MISO   EXT1_PIN_17
#define EXT1_PIN_SPI_MOSI   EXT1_PIN_16
#define EXT1_PIN_SPI_SCK   EXT1_PIN_18
#define EXT1_PIN_SPI_SS_0   EXT1_PIN_15
#define EXT1_PIN_SPI_SS_1   EXT1_PIN_10
#define EXT1_PIN_UART_RX   EXT1_PIN_13
#define EXT1_PIN_UART_TX   EXT1_PIN_14
#define EXT1_PWM_0_CHANNEL   0
#define EXT1_PWM_0_MUX   IOPORT_MODE_MUX_B
#define EXT1_PWM_1_CHANNEL   1
#define EXT1_PWM_1_MUX   IOPORT_MODE_MUX_B
#define EXT1_PWM_MODULE   TC0
#define EXT1_SPI_MISO_MUX   IOPORT_MODE_MUX_A
#define EXT1_SPI_MODULE   SPI
#define EXT1_SPI_MOSI_MUX   IOPORT_MODE_MUX_A
#define EXT1_SPI_NPCS0_MUX   IOPORT_MODE_MUX_A
#define EXT1_SPI_SPCK_MUX   IOPORT_MODE_MUX_A
#define EXT1_TWI_MODULE   TWI2
#define EXT1_TWI_TWCK_MUX   IOPORT_MODE_MUX_B
#define EXT1_TWI_TWD_MUX   IOPORT_MODE_MUX_B
#define EXT1_UART_MODULE   USART
#define EXT1_UART_RXD_MUX   IOPORT_MODE_MUX_A
#define EXT1_UART_TXD_MUX   IOPORT_MODE_MUX_A
#define EXT3_ADC_0_CHANNEL   2
#define EXT3_ADC_1_CHANNEL   3
#define EXT3_ADC_MODULE   ADC
#define EXT3_IRQ_INPUT   10
#define EXT3_IRQ_MODULE   SUPC
#define EXT3_PIN_10   IOPORT_CREATE_PIN(PIOA, 15)
#define EXT3_PIN_11   IOPORT_CREATE_PIN(PIOB, 10)
#define EXT3_PIN_12   IOPORT_CREATE_PIN(PIOB, 11)
#define EXT3_PIN_13   IOPORT_CREATE_PIN(PIOA, 9)
#define EXT3_PIN_14   IOPORT_CREATE_PIN(PIOA, 10)
#define EXT3_PIN_15   IOPORT_CREATE_PIN(PIOB, 2)
#define EXT3_PIN_16   IOPORT_CREATE_PIN(PIOA, 13)
#define EXT3_PIN_17   IOPORT_CREATE_PIN(PIOA, 12)
#define EXT3_PIN_18   IOPORT_CREATE_PIN(PIOA, 14)
#define EXT3_PIN_3   IOPORT_CREATE_PIN(PIOA, 19)
#define EXT3_PIN_4   IOPORT_CREATE_PIN(PIOA, 20)
#define EXT3_PIN_5   IOPORT_CREATE_PIN(PIOB, 4)
#define EXT3_PIN_7   IOPORT_CREATE_PIN(PIOA, 21)
#define EXT3_PIN_9   IOPORT_CREATE_PIN(PIOA, 22)
#define EXT3_PIN_ADC_0   EXT3_PIN_3
#define EXT3_PIN_ADC_1   EXT3_PIN_4
#define EXT3_PIN_GPIO_0   EXT3_PIN_5
#define EXT3_PIN_I2C_SCL   EXT3_PIN_12
#define EXT3_PIN_I2C_SDA   EXT3_PIN_11
#define EXT3_PIN_IRQ   EXT3_PIN_9
#define EXT3_PIN_PWM_0   EXT3_PIN_7
#define EXT3_PIN_SPI_MISO   EXT3_PIN_17
#define EXT3_PIN_SPI_MOSI   EXT3_PIN_16
#define EXT3_PIN_SPI_SCK   EXT3_PIN_18
#define EXT3_PIN_SPI_SS_0   EXT3_PIN_15
#define EXT3_PIN_SPI_SS_1   EXT3_PIN_10
#define EXT3_PIN_UART_RX   EXT3_PIN_13
#define EXT3_PIN_UART_TX   EXT3_PIN_14
#define EXT3_PWM_0_CHANNEL   0
#define EXT3_PWM_0_MUX   IOPORT_MODE_MUX_A
#define EXT3_PWM_MODULE   TC2
#define EXT3_SPI_MISO_MUX   IOPORT_MODE_MUX_A
#define EXT3_SPI_MODULE   SPI
#define EXT3_SPI_MOSI_MUX   IOPORT_MODE_MUX_A
#define EXT3_SPI_NPCS1_MUX   IOPORT_MODE_MUX_B
#define EXT3_SPI_SPCK_MUX   IOPORT_MODE_MUX_A
#define EXT3_TWI_MODULE   TWI1
#define EXT3_TWI_TWCK_MUX   IOPORT_MODE_MUX_A
#define EXT3_TWI_TWD_MUX   IOPORT_MODE_MUX_A
#define EXT3_UART_MODULE   UART0
#define EXT3_UART_RXD_MUX   IOPORT_MODE_MUX_A
#define EXT3_UART_TXD_MUX   IOPORT_MODE_MUX_A
#define EXT4_IRQ_INPUT   14
#define EXT4_IRQ_MODULE   SUPC
#define EXT4_PIN_11   IOPORT_CREATE_PIN(PIOB, 10)
#define EXT4_PIN_12   IOPORT_CREATE_PIN(PIOB, 11)
#define EXT4_PIN_5   IOPORT_CREATE_PIN(PIOA, 15)
#define EXT4_PIN_9   IOPORT_CREATE_PIN(PIOB, 8)
#define EXT4_PIN_GPIO_0   EXT3_PIN_5
#define EXT4_PIN_I2C_SCL   EXT3_PIN_12
#define EXT4_PIN_I2C_SDA   EXT3_PIN_11
#define EXT4_PIN_IRQ   EXT3_PIN_9
#define EXT4_TWI_MODULE   TWI1
#define EXT4_TWI_TWCK_MUX   IOPORT_MODE_MUX_A
#define EXT4_TWI_TWD_MUX   IOPORT_MODE_MUX_A
#define GPIO_PUSH_BUTTON_1   SW0_PIN
#define GPIO_PUSH_BUTTON_1_FLAGS   (PIO_INPUT | PIO_PULLUP | PIO_DEBOUNCE | PIO_IT_RISE_EDGE)
#define I2S0_MCK_FLAGS   (IOPORT_MODE_MUX_B)
#define I2S0_MCK_GPIO   (PIO_PA4_IDX)

I2S0 MCK pin definition.

#define I2S0_SCK_FLAGS   (IOPORT_MODE_MUX_A)
#define I2S0_SCK_GPIO   (PIO_PA0_IDX)

I2S0 SCK pin definition.

#define I2S0_SDI_FLAGS   (IOPORT_MODE_MUX_B)
#define I2S0_SDI_GPIO   (PIO_PA2_IDX)

I2S0 SDI pin definition.

#define I2S0_SDO_FLAGS   (IOPORT_MODE_MUX_B)
#define I2S0_SDO_GPIO   (PIO_PA3_IDX)

I2S0 SDO pin definition.

#define I2S0_WS_FLAGS   (IOPORT_MODE_MUX_A)
#define I2S0_WS_GPIO   (PIO_PA1_IDX)

I2S0 WS pin definition.

#define I2S1_MCK_FLAGS   (IOPORT_MODE_MUX_A)
#define I2S1_MCK_GPIO   (PIO_PA24_IDX)

I2S1 MCK pin definition.

#define I2S1_SCK_FLAGS   (IOPORT_MODE_MUX_B)
#define I2S1_SCK_GPIO   (PIO_PA19_IDX)

I2S1 SCK pin definition.

#define I2S1_SDI_FLAGS   (IOPORT_MODE_MUX_B)
#define I2S1_SDI_GPIO   (PIO_PA22_IDX)

I2S1 SDI pin definition.

#define I2S1_SDO_FLAGS   (IOPORT_MODE_MUX_A)
#define I2S1_SDO_GPIO   (PIO_PA23_IDX)

I2S1 SDO pin definition.

#define I2S1_WS_FLAGS   (IOPORT_MODE_MUX_B)
#define I2S1_WS_GPIO   (PIO_PA20_IDX)

I2S1 WS pin definition.

#define LED0_ACTIVE_LEVEL   false
#define LED0_FLAGS   (PIO_OUTPUT_1 | PIO_DEFAULT)
#define LED0_GPIO   (PIO_PA16_IDX)
#define LED0_INACTIVE_LEVEL   !LED0_ACTIVE_LEVEL
#define LED0_PIN   IOPORT_CREATE_PIN(PIOA, 16)
#define LED_0_ACTIVE   LED0_ACTIVE_LEVEL
#define LED_0_INACTIVE   LED0_INACTIVE_LEVEL
#define LED_0_NAME   "LED0 (yellow)"
#define LED_0_PIN   LED0_PIN
#define LED_COUNT   1

Number of on-board LEDs.

#define PDM_CLK_FLAGS   (IOPORT_MODE_MUX_B)
#define PDM_CLK_GPIO   (PIO_PA10_IDX)

PDM CLK pin definition.

#define PDM_DAT_FLAGS   (IOPORT_MODE_MUX_B)
#define PDM_DAT_GPIO   (PIO_PA9_IDX)

PDM DAT pin definition.

#define PIN_LED_0   {PIO_PA16, PIOA, ID_PIOA, PIO_OUTPUT_1, PIO_DEFAULT}
#define PIN_LED_0_ATTR   PIO_DEFAULT
#define PIN_LED_0_ID   ID_PIOA
#define PIN_LED_0_MASK   PIO_PA16
#define PIN_LED_0_PIO   PIOA
#define PIN_LED_0_TYPE   PIO_OUTPUT_1
#define PIN_PCK0   (PIO_PA6_IDX)

PCK0 pin definition (PA6)

#define PIN_PCK0_ATTR   PIO_DEFAULT
#define PIN_PCK0_FLAGS   (IOPORT_MODE_MUX_B)
#define PIN_PCK0_ID   ID_PIOA
#define PIN_PCK0_MASK   PIO_PA6B_PCK0
#define PIN_PCK0_MUX   (IOPORT_MODE_MUX_B)
#define PIN_PCK0_PIO   PIOA
#define PIN_PCK0_PORT   IOPORT_PIOA
#define PIN_PCK0_TYPE   PIO_PERIPH_B
#define PIN_PUSHBUTTON_1   {PIO_PA2, PIOA, ID_PIOA, PIO_INPUT, PIO_PULLUP | PIO_DEBOUNCE | PIO_IT_RISE_EDGE}
#define PIN_PUSHBUTTON_1_ATTR   PIO_PULLUP | PIO_DEBOUNCE | PIO_IT_RISE_EDGE
#define PIN_PUSHBUTTON_1_ID   ID_PIOA
#define PIN_PUSHBUTTON_1_MASK   PIO_PA2
#define PIN_PUSHBUTTON_1_PIO   PIOA
#define PIN_PUSHBUTTON_1_TYPE   PIO_INPUT
#define PIN_TC0_TIOA0   (PIO_PA0_IDX)

Referenced by configure_tc_trigger().

#define PIN_TC0_TIOA0_FLAGS   (PIO_PERIPH_B | PIO_DEFAULT)
#define PIN_TC0_TIOA0_MUX   (IOPORT_MODE_MUX_B)

Referenced by configure_tc_trigger().

#define PIN_TC0_TIOA1   (PIO_PA23_IDX)
#define PIN_TC0_TIOA1_FLAGS   (PIO_PERIPH_B | PIO_DEFAULT)
#define PIN_TC0_TIOA1_MUX   (IOPORT_MODE_MUX_B)
#define PINS_UART0   (PIO_PA9A_URXD0 | PIO_PA10A_UTXD0)

UART0 pins (UTXD0 and URXD0) definitions, PA9,10.

#define PINS_UART0_ATTR   PIO_DEFAULT
#define PINS_UART0_FLAGS   (IOPORT_MODE_MUX_A)
#define PINS_UART0_ID   ID_PIOA
#define PINS_UART0_MASK   (PIO_PA9A_URXD0 | PIO_PA10A_UTXD0)
#define PINS_UART0_PIO   PIOA
#define PINS_UART0_PORT   IOPORT_PIOA
#define PINS_UART0_TYPE   PIO_PERIPH_A
#define PUSHBUTTON_1_NAME   "SW0"

Push button #1 definition.

Attributes = pull-up + debounce + interrupt on rising edge.

#define PUSHBUTTON_1_NAME   "SW0"

Push button #1 definition.

Attributes = pull-up + debounce + interrupt on rising edge.

#define SD_MMC_0_CD   {PIO_PA20, PIOA, ID_PIOA, PIO_INPUT, PIO_PULLUP | PIO_DEBOUNCE | PIO_IT_RISE_EDGE}
#define SD_MMC_0_CD_ATTR   (PIO_PULLUP | PIO_DEBOUNCE | PIO_IT_EDGE)
#define SD_MMC_0_CD_DETECT_VALUE   0
#define SD_MMC_0_CD_DIR   (IOPORT_DIR_INPUT)
#define SD_MMC_0_CD_FLAGS   (PIO_INPUT | PIO_PULLUP)

Wrapper macros for IO1 SD, to ensure common naming across all Xplained Pro boards.

#define SD_MMC_0_CD_GPIO   (PIO_PA20_IDX)
#define SD_MMC_0_CD_ID   ID_PIOA
#define SD_MMC_0_CD_MASK   PIO_PA20
#define SD_MMC_0_CD_MODE   (IOPORT_MODE_PULLUP)
#define SD_MMC_0_CD_PIO   PIOA
#define SD_MMC_0_CD_PIO_ID   ID_PIOA
#define SD_MMC_0_CD_TYPE   PIO_INPUT
#define SD_MMC_SPI   SPI
#define SD_MMC_SPI_0_CS   0
#define SD_MMC_SPI_MEM_CNT   1
#define SPI_MISO_FLAGS   (IOPORT_MODE_MUX_A)
#define SPI_MISO_GPIO   (PIO_PA12_IDX)

SPI MISO pin definition.

#define SPI_MOSI_FLAGS   (IOPORT_MODE_MUX_A)
#define SPI_MOSI_GPIO   (PIO_PA13_IDX)

SPI MOSI pin definition.

#define SPI_NPCS0_FLAGS   (IOPORT_MODE_MUX_A)
#define SPI_NPCS0_GPIO   (PIO_PA11_IDX)

SPI chip select 0 pin definition.

#define SPI_NPCS1_FLAGS   (IOPORT_MODE_MUX_B)
#define SPI_NPCS1_GPIO   (PIO_PB2_IDX)

SPI chip select 1 pin definition.

#define SPI_SPCK_FLAGS   (IOPORT_MODE_MUX_A)
#define SPI_SPCK_GPIO   (PIO_PA14_IDX)

SPI SPCK pin definition.

#define SW0_ACTIVE   false
#define SW0_INACTIVE   !SW0_ACTIVE
#define SW0_PIN   IOPORT_CREATE_PIN(PIOA, 2)
#define SW0_SUPC_INPUT   2
#define TWI0_CLK_FLAGS   IOPORT_MODE_MUX_A
#define TWI0_CLK_GPIO   PIO_PA4_IDX
#define TWI0_DATA_FLAGS   IOPORT_MODE_MUX_A
#define TWI0_DATA_GPIO   PIO_PA3_IDX

TWI0 pin definitions.

#define TWI1_CLK_FLAGS   IOPORT_MODE_MUX_A
#define TWI1_CLK_GPIO   EXT3_PIN_12
#define TWI1_DATA_FLAGS   IOPORT_MODE_MUX_A
#define TWI1_DATA_GPIO   EXT3_PIN_11

TWI1 pin definitions.

#define TWI2_CLK_FLAGS   IOPORT_MODE_MUX_B
#define TWI2_CLK_GPIO   EXT1_PIN_12
#define TWI2_DATA_FLAGS   IOPORT_MODE_MUX_B
#define TWI2_DATA_GPIO   EXT1_PIN_11

TWI2 pin definitions.