Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages

Symbols that describe features and capabilities of the board.

Macros

#define BOARD_NAME   "SAM4S_XPLAINED_PRO"
 Name string macro. More...
 
#define BUTTON_COUNT   1
 Number of on-board buttons. More...
 
#define CONSOLE_UART   UART1
 
#define CONSOLE_UART_ID   ID_UART1
 
#define LED_COUNT   1
 Number of on-board LEDs. More...
 
#define PINS_UART1   (PIO_PB2A_URXD1 | PIO_PB3A_UTXD1)
 UART1 pins (UTXD1 and URXD1) definitions, PB2,PB3. More...
 
#define PINS_UART1_FLAGS   (PIO_PERIPH_A | PIO_DEFAULT)
 
#define PINS_UART1_PIO   PIOB
 

Resonator definitions

#define BOARD_FREQ_SLCK_XTAL   (32768U)
 
#define BOARD_FREQ_SLCK_BYPASS   (32768U)
 
#define BOARD_FREQ_MAINCK_XTAL   (12000000U)
 
#define BOARD_FREQ_MAINCK_BYPASS   (12000000U)
 
#define BOARD_MCK   CHIP_FREQ_CPU_MAX
 
#define BOARD_OSC_STARTUP_US   15625
 

LED0 definitions

#define LED0_PIN   IOPORT_CREATE_PIN(PIOC, 23)
 
#define LED0_ACTIVE   false
 
#define LED0_INACTIVE   !LED0_ACTIVE
 
#define LED0   LED0_GPIO
 
#define LED0_GPIO   LED0_PIN
 

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
 
#define LED_0_INACTIVE   LED0_INACTIVE
 

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 GPIO_PUSH_BUTTON_0   BUTTON_0_PIN
 
#define PIN_PUSHBUTTON_0_MASK   PIO_PA2
 
#define PIN_PUSHBUTTON_0_PIO   PIOA
 
#define PIN_PUSHBUTTON_0_ID   ID_PIOA
 
#define PIN_PUSHBUTTON_0_TYPE   PIO_INPUT
 
#define PIN_PUSHBUTTON_0_ATTR   (PIO_PULLUP | PIO_DEBOUNCE | PIO_IT_RISE_EDGE)
 

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(PIOA, 24)
 
#define EXT1_PIN_6   IOPORT_CREATE_PIN(PIOA, 25)
 
#define EXT1_PIN_7   IOPORT_CREATE_PIN(PIOA, 23)
 
#define EXT1_PIN_8   IOPORT_CREATE_PIN(PIOA, 19)
 
#define EXT1_PIN_9   IOPORT_CREATE_PIN(PIOA, 1)
 
#define EXT1_PIN_10   IOPORT_CREATE_PIN(PIOA, 6)
 
#define EXT1_PIN_11   IOPORT_CREATE_PIN(PIOA, 3)
 
#define EXT1_PIN_12   IOPORT_CREATE_PIN(PIOA, 4)
 
#define EXT1_PIN_13   IOPORT_CREATE_PIN(PIOA, 21)
 
#define EXT1_PIN_14   IOPORT_CREATE_PIN(PIOA, 22)
 
#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_TWI_SDA   EXT1_PIN_11
 
#define EXT1_PIN_TWI_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   PWM
 
#define EXT1_PWM_CHANNEL   0
 

Extension header #1 IRQ/External interrupt definitions

#define EXT1_IRQ_MODULE   SUPC
 
#define EXT1_IRQ_INPUT   1
 

Extension header #1 TWI definitions

#define EXT1_TWI_MODULE   TWI0
 

Extension header #1 UART definitions

#define EXT1_UART_MODULE   USART1
 

Extension header #1 SPI definitions

#define EXT1_SPI_MODULE   SPI
 

Extension header #2 pin definitions

#define EXT2_PIN_3   IOPORT_CREATE_PIN(PIOB, 0)
 
#define EXT2_PIN_4   IOPORT_CREATE_PIN(PIOB, 1)
 
#define EXT2_PIN_5   IOPORT_CREATE_PIN(PIOC, 24)
 
#define EXT2_PIN_6   IOPORT_CREATE_PIN(PIOC, 25)
 
#define EXT2_PIN_7   IOPORT_CREATE_PIN(PIOC, 19)
 
#define EXT2_PIN_8   IOPORT_CREATE_PIN(PIOA, 20)
 
#define EXT2_PIN_9   IOPORT_CREATE_PIN(PIOC, 26)
 
#define EXT2_PIN_10   IOPORT_CREATE_PIN(PIOC, 27)
 
#define EXT2_PIN_11   IOPORT_CREATE_PIN(PIOA, 3)
 
#define EXT2_PIN_12   IOPORT_CREATE_PIN(PIOA, 4)
 
#define EXT2_PIN_13   IOPORT_CREATE_PIN(PIOA, 21)
 
#define EXT2_PIN_14   IOPORT_CREATE_PIN(PIOA, 22)
 
#define EXT2_PIN_15   IOPORT_CREATE_PIN(PIOA, 9)
 
#define EXT2_PIN_16   IOPORT_CREATE_PIN(PIOA, 13)
 
#define EXT2_PIN_17   IOPORT_CREATE_PIN(PIOA, 12)
 
#define EXT2_PIN_18   IOPORT_CREATE_PIN(PIOA, 14)
 

Extension header #2 pin definitions by function

#define EXT2_PIN_ADC_0   EXT2_PIN_3
 
#define EXT2_PIN_ADC_1   EXT2_PIN_4
 
#define EXT2_PIN_GPIO_0   EXT2_PIN_5
 
#define EXT2_PIN_GPIO_1   EXT2_PIN_6
 
#define EXT2_PIN_PWM_0   EXT2_PIN_7
 
#define EXT2_PIN_PWM_1   EXT2_PIN_8
 
#define EXT2_PIN_TWI_SDA   EXT2_PIN_11
 
#define EXT2_PIN_TWI_SCL   EXT2_PIN_12
 
#define EXT2_PIN_UART_RX   EXT2_PIN_13
 
#define EXT2_PIN_UART_TX   EXT2_PIN_14
 
#define EXT2_PIN_SPI_SS_1   EXT2_PIN_10
 
#define EXT2_PIN_SPI_SS_0   EXT2_PIN_15
 
#define EXT2_PIN_SPI_MOSI   EXT2_PIN_16
 
#define EXT2_PIN_SPI_MISO   EXT2_PIN_17
 
#define EXT2_PIN_SPI_SCK   EXT2_PIN_18
 

Extension header #2 ADC definitions

#define EXT2_ADC_MODULE   ADC
 
#define EXT2_ADC_0_CHANNEL   4
 
#define EXT2_ADC_1_CHANNEL   5
 

Extension header #2 PWM definitions

#define EXT2_PWM_MODULE   PWM
 
#define EXT2_PWM_CHANNEL   1
 

Extension header #2 TWI definitions

#define EXT2_TWI_MODULE   TWI0
 

Extension header #2 UART definitions

#define EXT2_UART_MODULE   USART1
 

Extension header #2 SPI definitions

#define EXT2_SPI_MODULE   SPI
 

Extension header #3 pin definitions

#define EXT3_PIN_3   IOPORT_CREATE_PIN(PIOC, 29)
 
#define EXT3_PIN_4   IOPORT_CREATE_PIN(PIOC, 30)
 
#define EXT3_PIN_5   IOPORT_CREATE_PIN(PIOC, 21)
 
#define EXT3_PIN_6   IOPORT_CREATE_PIN(PIOC, 22)
 
#define EXT3_PIN_7   IOPORT_CREATE_PIN(PIOC, 20)
 
#define EXT3_PIN_8   IOPORT_CREATE_PIN(PIOA, 16)
 
#define EXT3_PIN_9   IOPORT_CREATE_PIN(PIOA, 0)
 
#define EXT3_PIN_10   IOPORT_CREATE_PIN(PIOC, 31)
 
#define EXT3_PIN_11   IOPORT_CREATE_PIN(PIOB, 4)
 
#define EXT3_PIN_12   IOPORT_CREATE_PIN(PIOB, 5)
 
#define EXT3_PIN_13   IOPORT_CREATE_PIN(PIOB, 2)
 
#define EXT3_PIN_14   IOPORT_CREATE_PIN(PIOB, 3)
 
#define EXT3_PIN_15   IOPORT_CREATE_PIN(PIOA, 10)
 
#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_GPIO_1   EXT3_PIN_6
 
#define EXT3_PIN_PWM_0   EXT3_PIN_7
 
#define EXT3_PIN_PWM_1   EXT3_PIN_8
 
#define EXT3_PIN_IRQ   EXT3_PIN_9
 
#define EXT3_PIN_TWI_SDA   EXT3_PIN_11
 
#define EXT3_PIN_TWI_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   13
 
#define EXT3_ADC_1_CHANNEL   14
 

Extension header #3 PWM definitions

#define EXT3_PWM_MODULE   PWM
 
#define EXT3_PWM_CHANNEL   2
 

Extension header #3 IRQ/External interrupt definitions

#define EXT3_IRQ_MODULE   SUPC
 
#define EXT3_IRQ_INPUT   0
 

Extension header #3 TWI definitions

#define EXT3_TWI_MODULE   TWI1
 

Extension header #3 UART definitions

#define EXT3_UART_MODULE   UART1
 

Extension header #3 SPI definitions

#define EXT3_SPI_MODULE   SPI
 

Embedded debugger GPIO interface definitions

#define EDBG_GPIO0_PIN   IOPORT_CREATE_PIN(PIOA, 6)
 
#define EDBG_GPIO1_PIN   IOPORT_CREATE_PIN(PIOC, 22)
 
#define EDBG_GPIO2_PIN   IOPORT_CREATE_PIN(PIOC, 24)
 
#define EDBG_GPIO3_PIN   IOPORT_CREATE_PIN(PIOC, 25)
 

Embedded debugger USART interface definitions

#define EDBG_UART_MODULE   UART1
 

Embedded debugger TWI interface definitions

#define EDBG_TWI_MODULE   TWI0
 

Embedded debugger SPI interface definitions

#define EDBG_SPI_MODULE   SPI
 

SPI

#define SPI_MISO_GPIO   (PIO_PA12_IDX)
 SPI MISO pin definition. More...
 
#define SPI_MISO_FLAGS   (PIO_PERIPH_A | PIO_PULLUP)
 
#define SPI_MOSI_GPIO   (PIO_PA13_IDX)
 SPI MOSI pin definition. More...
 
#define SPI_MOSI_FLAGS   (PIO_PERIPH_A | PIO_PULLUP)
 
#define SPI_SPCK_GPIO   (PIO_PA14_IDX)
 SPI SPCK pin definition. More...
 
#define SPI_SPCK_FLAGS   (PIO_PERIPH_A | PIO_PULLUP)
 
#define SPI_NPCS0_GPIO   (PIO_PA11_IDX)
 SPI chip select 0 pin definition. More...
 
#define SPI_NPCS0_FLAGS   (PIO_PERIPH_A | PIO_DEFAULT)
 
#define SPI_NPCS1_PA9_GPIO   (PIO_PA9_IDX)
 SPI chip select 1 pin definition. More...
 
#define SPI_NPCS1_PA9_FLAGS   (PIO_PERIPH_B | PIO_DEFAULT)
 
#define SPI_NPCS1_PA31_GPIO   (PIO_PA31_IDX)
 
#define SPI_NPCS1_PA31_FLAGS   (PIO_PERIPH_A | PIO_DEFAULT)
 
#define SPI_NPCS1_PB14_GPIO   (PIO_PB14_IDX)
 
#define SPI_NPCS1_PB14_FLAGS   (PIO_PERIPH_A | PIO_DEFAULT)
 
#define SPI_NPCS1_PC4_GPIO   (PIO_PC4_IDX)
 
#define SPI_NPCS1_PC4_FLAGS   (PIO_PERIPH_B | PIO_DEFAULT)
 
#define SPI_NPCS2_PA10_GPIO   (PIO_PA10_IDX)
 SPI chip select 2 pin definition. More...
 
#define SPI_NPCS2_PA10_FLAGS   (PIO_PERIPH_B | PIO_PULLUP)
 
#define SPI_NPCS2_PA30_GPIO   (PIO_PA30_IDX)
 
#define SPI_NPCS2_PA30_FLAGS   (PIO_PERIPH_B | PIO_DEFAULT)
 
#define SPI_NPCS2_PB2_GPIO   (PIO_PB2_IDX)
 
#define SPI_NPCS2_PB2_FLAGS   (PIO_PERIPH_B | PIO_DEFAULT)
 
#define SPI_NPCS3_PA3_GPIO   (PIO_PA3_IDX)
 SPI chip select 3 pin definition. More...
 
#define SPI_NPCS3_PA3_FLAGS   (PIO_PERIPH_B | PIO_DEFAULT)
 
#define SPI_NPCS3_PA5_GPIO   (PIO_PA5_IDX)
 
#define SPI_NPCS3_PA5_FLAGS   (PIO_PERIPH_B | PIO_DEFAULT)
 
#define SPI_NPCS3_PA22_GPIO   (PIO_PA22_IDX)
 
#define SPI_NPCS3_PA22_FLAGS   (PIO_PERIPH_B | PIO_DEFAULT)
 

OLED

#define UG_2832HSWEG04_DATA_CMD_GPIO   (PIO_PC21_IDX)
 
#define UG_2832HSWEG04_DATA_CMD_FLAGS   (PIO_OUTPUT_1 | PIO_PULLUP)
 
#define UG_2832HSWEG04_RESET_GPIO   (PIO_PC31_IDX)
 
#define UG_2832HSWEG04_RESET_FLAGS   (PIO_OUTPUT_1 | PIO_PULLUP)
 
#define UG_2832HSWEG04_SS   2
 
#define UG_2832HSWEG04_BAUDRATE   5000000
 

OLED dimensions

#define LCD_WIDTH_PIXELS   (128)
 
#define LCD_HEIGHT_PIXELS   (32)
 

#define BOARD_FREQ_MAINCK_BYPASS   (12000000U)

Referenced by osc_get_rate().

#define BOARD_FREQ_MAINCK_XTAL   (12000000U)

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   "SAM4S_XPLAINED_PRO"

Name string macro.

#define BOARD_OSC_STARTUP_US   15625

Referenced by osc_enable().

#define BUTTON_0_ACTIVE   SW0_ACTIVE

Referenced by board_init().

#define BUTTON_0_INACTIVE   SW0_INACTIVE
#define BUTTON_0_NAME   "SW0"
#define BUTTON_0_PIN   SW0_PIN

Referenced by board_init().

#define BUTTON_0_SUPC_INPUT   SW0_SUPC_INPUT
#define BUTTON_COUNT   1

Number of on-board buttons.

#define CONSOLE_UART   UART1
#define CONSOLE_UART_ID   ID_UART1

Referenced by configure_console().

#define EDBG_GPIO0_PIN   IOPORT_CREATE_PIN(PIOA, 6)
#define EDBG_GPIO1_PIN   IOPORT_CREATE_PIN(PIOC, 22)
#define EDBG_GPIO2_PIN   IOPORT_CREATE_PIN(PIOC, 24)
#define EDBG_GPIO3_PIN   IOPORT_CREATE_PIN(PIOC, 25)
#define EDBG_SPI_MODULE   SPI
#define EDBG_TWI_MODULE   TWI0
#define EDBG_UART_MODULE   UART1
#define EXT1_ADC_0_CHANNEL   0
#define EXT1_ADC_1_CHANNEL   1
#define EXT1_ADC_MODULE   ADC
#define EXT1_IRQ_INPUT   1
#define EXT1_IRQ_MODULE   SUPC
#define EXT1_PIN_10   IOPORT_CREATE_PIN(PIOA, 6)
#define EXT1_PIN_11   IOPORT_CREATE_PIN(PIOA, 3)
#define EXT1_PIN_12   IOPORT_CREATE_PIN(PIOA, 4)
#define EXT1_PIN_13   IOPORT_CREATE_PIN(PIOA, 21)
#define EXT1_PIN_14   IOPORT_CREATE_PIN(PIOA, 22)
#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(PIOA, 24)
#define EXT1_PIN_6   IOPORT_CREATE_PIN(PIOA, 25)
#define EXT1_PIN_7   IOPORT_CREATE_PIN(PIOA, 23)
#define EXT1_PIN_8   IOPORT_CREATE_PIN(PIOA, 19)
#define EXT1_PIN_9   IOPORT_CREATE_PIN(PIOA, 1)
#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_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_TWI_SCL   EXT1_PIN_12
#define EXT1_PIN_TWI_SDA   EXT1_PIN_11
#define EXT1_PIN_UART_RX   EXT1_PIN_13
#define EXT1_PIN_UART_TX   EXT1_PIN_14
#define EXT1_PWM_CHANNEL   0
#define EXT1_PWM_MODULE   PWM
#define EXT1_SPI_MODULE   SPI
#define EXT1_TWI_MODULE   TWI0
#define EXT1_UART_MODULE   USART1
#define EXT2_ADC_0_CHANNEL   4
#define EXT2_ADC_1_CHANNEL   5
#define EXT2_ADC_MODULE   ADC
#define EXT2_PIN_10   IOPORT_CREATE_PIN(PIOC, 27)
#define EXT2_PIN_11   IOPORT_CREATE_PIN(PIOA, 3)
#define EXT2_PIN_12   IOPORT_CREATE_PIN(PIOA, 4)
#define EXT2_PIN_13   IOPORT_CREATE_PIN(PIOA, 21)
#define EXT2_PIN_14   IOPORT_CREATE_PIN(PIOA, 22)
#define EXT2_PIN_15   IOPORT_CREATE_PIN(PIOA, 9)
#define EXT2_PIN_16   IOPORT_CREATE_PIN(PIOA, 13)
#define EXT2_PIN_17   IOPORT_CREATE_PIN(PIOA, 12)
#define EXT2_PIN_18   IOPORT_CREATE_PIN(PIOA, 14)
#define EXT2_PIN_3   IOPORT_CREATE_PIN(PIOB, 0)
#define EXT2_PIN_4   IOPORT_CREATE_PIN(PIOB, 1)
#define EXT2_PIN_5   IOPORT_CREATE_PIN(PIOC, 24)
#define EXT2_PIN_6   IOPORT_CREATE_PIN(PIOC, 25)
#define EXT2_PIN_7   IOPORT_CREATE_PIN(PIOC, 19)
#define EXT2_PIN_8   IOPORT_CREATE_PIN(PIOA, 20)
#define EXT2_PIN_9   IOPORT_CREATE_PIN(PIOC, 26)
#define EXT2_PIN_ADC_0   EXT2_PIN_3
#define EXT2_PIN_ADC_1   EXT2_PIN_4
#define EXT2_PIN_GPIO_0   EXT2_PIN_5
#define EXT2_PIN_GPIO_1   EXT2_PIN_6
#define EXT2_PIN_PWM_0   EXT2_PIN_7
#define EXT2_PIN_PWM_1   EXT2_PIN_8
#define EXT2_PIN_SPI_MISO   EXT2_PIN_17
#define EXT2_PIN_SPI_MOSI   EXT2_PIN_16
#define EXT2_PIN_SPI_SCK   EXT2_PIN_18
#define EXT2_PIN_SPI_SS_0   EXT2_PIN_15
#define EXT2_PIN_SPI_SS_1   EXT2_PIN_10
#define EXT2_PIN_TWI_SCL   EXT2_PIN_12
#define EXT2_PIN_TWI_SDA   EXT2_PIN_11
#define EXT2_PIN_UART_RX   EXT2_PIN_13
#define EXT2_PIN_UART_TX   EXT2_PIN_14
#define EXT2_PWM_CHANNEL   1
#define EXT2_PWM_MODULE   PWM
#define EXT2_SPI_MODULE   SPI
#define EXT2_TWI_MODULE   TWI0
#define EXT2_UART_MODULE   USART1
#define EXT3_ADC_0_CHANNEL   13
#define EXT3_ADC_1_CHANNEL   14
#define EXT3_ADC_MODULE   ADC
#define EXT3_IRQ_INPUT   0
#define EXT3_IRQ_MODULE   SUPC
#define EXT3_PIN_10   IOPORT_CREATE_PIN(PIOC, 31)
#define EXT3_PIN_11   IOPORT_CREATE_PIN(PIOB, 4)
#define EXT3_PIN_12   IOPORT_CREATE_PIN(PIOB, 5)
#define EXT3_PIN_13   IOPORT_CREATE_PIN(PIOB, 2)
#define EXT3_PIN_14   IOPORT_CREATE_PIN(PIOB, 3)
#define EXT3_PIN_15   IOPORT_CREATE_PIN(PIOA, 10)
#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(PIOC, 29)
#define EXT3_PIN_4   IOPORT_CREATE_PIN(PIOC, 30)
#define EXT3_PIN_5   IOPORT_CREATE_PIN(PIOC, 21)
#define EXT3_PIN_6   IOPORT_CREATE_PIN(PIOC, 22)
#define EXT3_PIN_7   IOPORT_CREATE_PIN(PIOC, 20)
#define EXT3_PIN_8   IOPORT_CREATE_PIN(PIOA, 16)
#define EXT3_PIN_9   IOPORT_CREATE_PIN(PIOA, 0)
#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_GPIO_1   EXT3_PIN_6
#define EXT3_PIN_IRQ   EXT3_PIN_9
#define EXT3_PIN_PWM_0   EXT3_PIN_7
#define EXT3_PIN_PWM_1   EXT3_PIN_8
#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_TWI_SCL   EXT3_PIN_12
#define EXT3_PIN_TWI_SDA   EXT3_PIN_11
#define EXT3_PIN_UART_RX   EXT3_PIN_13
#define EXT3_PIN_UART_TX   EXT3_PIN_14
#define EXT3_PWM_CHANNEL   2
#define EXT3_PWM_MODULE   PWM
#define EXT3_SPI_MODULE   SPI
#define EXT3_TWI_MODULE   TWI1
#define EXT3_UART_MODULE   UART1
#define GPIO_PUSH_BUTTON_0   BUTTON_0_PIN
#define LCD_HEIGHT_PIXELS   (32)
#define LCD_WIDTH_PIXELS   (128)
#define LED0   LED0_GPIO
#define LED0_ACTIVE   false
#define LED0_GPIO   LED0_PIN
#define LED0_INACTIVE   !LED0_ACTIVE
#define LED0_PIN   IOPORT_CREATE_PIN(PIOC, 23)
#define LED_0_ACTIVE   LED0_ACTIVE

Referenced by board_init().

#define LED_0_INACTIVE   LED0_INACTIVE
#define LED_0_NAME   "LED0 (yellow)"
#define LED_0_PIN   LED0_PIN

Referenced by board_init().

#define LED_COUNT   1

Number of on-board LEDs.

#define PIN_PUSHBUTTON_0_ATTR   (PIO_PULLUP | PIO_DEBOUNCE | PIO_IT_RISE_EDGE)
#define PIN_PUSHBUTTON_0_ID   ID_PIOA
#define PIN_PUSHBUTTON_0_MASK   PIO_PA2
#define PIN_PUSHBUTTON_0_PIO   PIOA
#define PIN_PUSHBUTTON_0_TYPE   PIO_INPUT
#define PINS_UART1   (PIO_PB2A_URXD1 | PIO_PB3A_UTXD1)

UART1 pins (UTXD1 and URXD1) definitions, PB2,PB3.

Referenced by board_init().

#define PINS_UART1_FLAGS   (PIO_PERIPH_A | PIO_DEFAULT)

Referenced by board_init().

#define PINS_UART1_PIO   PIOB

Referenced by board_init().

#define SPI_MISO_FLAGS   (PIO_PERIPH_A | PIO_PULLUP)

Referenced by board_init().

#define SPI_MISO_GPIO   (PIO_PA12_IDX)

SPI MISO pin definition.

Referenced by board_init().

#define SPI_MOSI_FLAGS   (PIO_PERIPH_A | PIO_PULLUP)

Referenced by board_init().

#define SPI_MOSI_GPIO   (PIO_PA13_IDX)

SPI MOSI pin definition.

Referenced by board_init().

#define SPI_NPCS0_FLAGS   (PIO_PERIPH_A | PIO_DEFAULT)

Referenced by board_init().

#define SPI_NPCS0_GPIO   (PIO_PA11_IDX)

SPI chip select 0 pin definition.

(Only one configuration is possible)

Referenced by board_init().

#define SPI_NPCS1_PA31_FLAGS   (PIO_PERIPH_A | PIO_DEFAULT)
#define SPI_NPCS1_PA31_GPIO   (PIO_PA31_IDX)
#define SPI_NPCS1_PA9_FLAGS   (PIO_PERIPH_B | PIO_DEFAULT)

Referenced by board_init().

#define SPI_NPCS1_PA9_GPIO   (PIO_PA9_IDX)

SPI chip select 1 pin definition.

(multiple configurations are possible)

Referenced by board_init().

#define SPI_NPCS1_PB14_FLAGS   (PIO_PERIPH_A | PIO_DEFAULT)
#define SPI_NPCS1_PB14_GPIO   (PIO_PB14_IDX)
#define SPI_NPCS1_PC4_FLAGS   (PIO_PERIPH_B | PIO_DEFAULT)
#define SPI_NPCS1_PC4_GPIO   (PIO_PC4_IDX)
#define SPI_NPCS2_PA10_FLAGS   (PIO_PERIPH_B | PIO_PULLUP)

Referenced by board_init().

#define SPI_NPCS2_PA10_GPIO   (PIO_PA10_IDX)

SPI chip select 2 pin definition.

(multiple configurations are possible)

Referenced by board_init().

#define SPI_NPCS2_PA30_FLAGS   (PIO_PERIPH_B | PIO_DEFAULT)
#define SPI_NPCS2_PA30_GPIO   (PIO_PA30_IDX)
#define SPI_NPCS2_PB2_FLAGS   (PIO_PERIPH_B | PIO_DEFAULT)
#define SPI_NPCS2_PB2_GPIO   (PIO_PB2_IDX)
#define SPI_NPCS3_PA22_FLAGS   (PIO_PERIPH_B | PIO_DEFAULT)

Referenced by board_init().

#define SPI_NPCS3_PA22_GPIO   (PIO_PA22_IDX)

Referenced by board_init().

#define SPI_NPCS3_PA3_FLAGS   (PIO_PERIPH_B | PIO_DEFAULT)
#define SPI_NPCS3_PA3_GPIO   (PIO_PA3_IDX)

SPI chip select 3 pin definition.

(multiple configurations are possible)

#define SPI_NPCS3_PA5_FLAGS   (PIO_PERIPH_B | PIO_DEFAULT)
#define SPI_NPCS3_PA5_GPIO   (PIO_PA5_IDX)
#define SPI_SPCK_FLAGS   (PIO_PERIPH_A | PIO_PULLUP)

Referenced by board_init().

#define SPI_SPCK_GPIO   (PIO_PA14_IDX)

SPI SPCK pin definition.

Referenced by board_init().

#define SW0_ACTIVE   false
#define SW0_INACTIVE   !SW0_ACTIVE
#define SW0_PIN   IOPORT_CREATE_PIN(PIOA, 2)
#define SW0_SUPC_INPUT   2
#define UG_2832HSWEG04_BAUDRATE   5000000
#define UG_2832HSWEG04_DATA_CMD_FLAGS   (PIO_OUTPUT_1 | PIO_PULLUP)

Referenced by board_init().

#define UG_2832HSWEG04_DATA_CMD_GPIO   (PIO_PC21_IDX)

Referenced by board_init().

#define UG_2832HSWEG04_RESET_FLAGS   (PIO_OUTPUT_1 | PIO_PULLUP)

Referenced by board_init().

#define UG_2832HSWEG04_RESET_GPIO   (PIO_PC31_IDX)

Referenced by board_init().

#define UG_2832HSWEG04_SS   2