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   "SAM4L Xplained Pro"
 Name string macro. More...
 
#define BUTTON_COUNT   1
 Number of on-board buttons. More...
 
#define LED_COUNT   1
 Number of on-board LEDs. More...
 
#define MCU_SOC_NAME   "ATSAM4LC4C"
 

Board oscillator definitions

#define FOSC0   (12000000UL)
 Osc frequency (Hz.) and startup time (RCOsc periods) More...
 
#define FOSC32   (32768UL)
 Osc32 frequency (Hz.) and startup time (RCOsc periods) More...
 
#define BOARD_OSC32_IS_XTAL   true
 OSC32 uses a crystal, not an external clock. More...
 
#define BOARD_OSC32_HZ   FOSC32
 Clock frequency of OSC32 in Hz. More...
 
#define BOARD_OSC32_STARTUP_US   (750000UL)
 Startup time of OSC32 in microseconds. More...
 
#define BOARD_OSC32_SELCURR   BSCIF_OSCCTRL32_SELCURR(10)
 Crystal current selection for OSC32. More...
 
#define BOARD_OSC0_IS_XTAL   true
 OSC0 uses a crystal, not an external clock. More...
 
#define BOARD_OSC0_HZ   FOSC0
 Clock frequency of OSC0 in Hz. More...
 
#define BOARD_OSC0_STARTUP_US   (6100UL)
 Startup time of OSC0 in microseconds. More...
 

LED0 definitions

#define LED0   PIN_PC07
 
#define LED0_PIN   PIN_PC07 /* Wrapper definition */
 
#define LED0_GPIO   PIN_PC07 /* Wrapper definition */
 
#define LED0_ACTIVE   false
 
#define LED0_INACTIVE   !LED0_ACTIVE
 

SW0 definitions

#define GPIO_PUSH_BUTTON_0   PIN_PC24 /* Wrapper definition */
 
#define SW0_PIN   PIN_PC24
 
#define SW0_ACTIVE   false
 
#define SW0_INACTIVE   !SW0_ACTIVE
 
#define SW0_EIC_PIN   PIN_PC24B_EIC_EXTINT1
 
#define SW0_EIC_PIN_MUX   MUX_PC24B_EIC_EXTINT1
 
#define SW0_EIC_LINE   1
 

TOUCH QTouch button definitions

#define QTOUCH_DISCHARGE_PIN   PIN_PC14
 
#define QTOUCH_DISCHARGE_MUX   MUX_PC14G_CATB_DIS
 
#define QTOUCH_SENSE_PIN   PIN_PC13
 
#define QTOUCH_SENSE_MUX   MUX_PC13G_CATB_SENSE15
 
#define QTOUCH_PINSEL_BUTTON   15
 

USB pin definitions

These are named according to the USBC driver's requirements.

#define USB_ID_PIN   PIN_PC10
 
#define USB_ID_FLAGS
 
#define USB_VBUS_PIN   PIN_PC11
 
#define USB_VBUS_FLAGS   IOPORT_MODE_GLITCH_FILTER
 
#define USB_VBOF_PIN   PIN_PC12
 
#define USB_VBOF_ACTIVE_LEVEL   1
 
#define USB_VBOF_INACTIVE_LEVEL   0
 

USART connections to GPIO for Virtual Com Port

#define COM_PORT_USART   USART1
 
#define COM_PORT_USART_ID   ID_USART1
 
#define COM_PORT_RX_PIN   PIN_PC26A_USART1_RXD
 
#define COM_PORT_RX_GPIO   GPIO_PC26A_USART1_RXD
 
#define COM_PORT_RX_MUX   MUX_PC26A_USART1_RXD
 
#define COM_PORT_TX_PIN   PIN_PC27A_USART1_TXD
 
#define COM_PORT_TX_GPIO   GPIO_PC27A_USART1_TXD
 
#define COM_PORT_TX_MUX   MUX_PC27A_USART1_TXD
 

Embedded debugger USART interface definitions

#define EDBG_UART_MODULE   USART3
 
#define EDBG_UART_MODULE   USART3
 
#define EDBG_UART_RX_PIN   PIN_PC28A_USART3_RXD
 
#define EDBG_UART_RX_PIN   PIN_PC28A_USART3_RXD
 
#define EDBG_UART_RX_MUX   MUX_PC28A_USART3_RXD
 
#define EDBG_UART_RX_MUX   MUX_PC28A_USART3_RXD
 
#define EDBG_UART_TX_PIN   PIN_PC29A_USART3_TXD
 
#define EDBG_UART_TX_PIN   PIN_PC29A_USART3_TXD
 
#define EDBG_UART_TX_MUX   MUX_PC29A_USART3_TXD
 
#define EDBG_UART_TX_MUX   MUX_PC29A_USART3_TXD
 
#define EDBG_UART_CLK_PIN   PIN_PC31A_USART3_CLK
 
#define EDBG_UART_CLK_PIN   PIN_PC31A_USART3_CLK
 
#define EDBG_UART_CLK_MUX   MUX_PC31A_USART3_CLK
 
#define EDBG_UART_CLK_MUX   MUX_PC31A_USART3_CLK
 

DACC pins

#define DACC_EXT_TRIG0_PIN   PIN_PB04E_DACC_EXT_TRIG0
 
#define DACC_EXT_TRIG0_GPIO   GPIO_PB04E_DACC_EXT_TRIG0
 
#define DACC_EXT_TRIG0_MUX   MUX_PB04E_DACC_EXT_TRIG0
 
#define DACC_VOUT_PIN   PIN_PA06A_DACC_VOUT
 
#define DACC_VOUT_GPIO   GPIO_PA06A_DACC_VOUT
 
#define DACC_VOUT_MUX   MUX_PA06A_DACC_VOUT
 

LED #0 definitions

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

#define LED_0_NAME   "LED0"
 
#define LED_0_PIN   LED0_PIN
 
#define LED_0_ACTIVE   LED0_ACTIVE
 
#define LED_0_INACTIVE   LED0_INACTIVE
 

LCD Backlight

#define LCD_BL   PC05
 
#define LCD_BL_GPIO   PIN_PC05
 
#define LCD_BL_GPIO_MASK   GPIO_PC05
 
#define LCD_BL_ACTIVE_LEVEL   IOPORT_PIN_LEVEL_HIGH
 
#define LCD_BL_INACTIVE_LEVEL   IOPORT_PIN_LEVEL_LOW
 

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_EIC_PIN   SW0_EIC_PIN
 
#define BUTTON_0_EIC_PIN_MUX   SW0_EIC_PIN_MUX
 
#define BUTTON_0_EIC_LINE   SW0_EIC_LINE
 
#define GPIO_PUSH_BUTTON_EIC_PIN   PIN_PC24B_EIC_EXTINT1
 
#define GPIO_PUSH_BUTTON_EIC_PIN_MASK   GPIO_PC24B_EIC_EXTINT1
 
#define GPIO_PUSH_BUTTON_EIC_PIN_MUX   MUX_PC24B_EIC_EXTINT1
 
#define GPIO_PUSH_BUTTON_EIC_LINE   1
 
#define GPIO_PUSH_BUTTON_EIC_IRQ   EIC_1_IRQn
 

Extension header #1 pin definitions

#define EXT1_PIN_3   PIN_PA04
 
#define EXT1_PIN_4   PIN_PA05
 
#define EXT1_PIN_5   PIN_PB12
 
#define EXT1_PIN_6   PIN_PC02
 
#define EXT1_PIN_7   PIN_PC00
 
#define EXT1_PIN_8   PIN_PC01
 
#define EXT1_PIN_9   PIN_PC25
 
#define EXT1_PIN_10   PIN_PB13
 
#define EXT1_PIN_11   PIN_PA23
 
#define EXT1_PIN_12   PIN_PA24
 
#define EXT1_PIN_13   PIN_PB00
 
#define EXT1_PIN_14   PIN_PB01
 
#define EXT1_PIN_15   PIN_PC03
 
#define EXT1_PIN_16   PIN_PA22
 
#define EXT1_PIN_17   PIN_PA21
 
#define EXT1_PIN_18   PIN_PC30
 

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   ADCIFE
 
#define EXT1_ADC_0_CHANNEL   0
 
#define EXT1_ADC_0_MUX   MUX_PA04A_ADCIFE_AD0
 
#define EXT1_ADC_1_CHANNEL   1
 
#define EXT1_ADC_1_MUX   MUX_PA05A_ADCIFE_AD1
 

Extension header #1 PWM definitions

#define EXT1_PWM_MODULE   TC1
 
#define EXT1_PWM_CHANNEL   0
 
#define EXT1_PWM_0_MUX   MUX_PC00D_TC1_A0
 
#define EXT1_PWM_1_MUX   MUX_PC01D_TC1_B0
 

Extension header #1 IRQ/External interrupt definitions

#define EXT1_IRQ_MODULE   EIC
 
#define EXT1_IRQ_MUX   MUX_PC25B_EIC_EXTINT2
 
#define EXT1_IRQ_MASK   EIC_IMR_INT2
 

Extension header #1 TWI definitions

#define EXT1_TWI_MODULE   TWIM0
 
#define EXT1_TWI_SDA_MUX   MUX_PA23B_TWIMS0_TWD
 
#define EXT1_TWI_SCL_MUX   MUX_PA24B_TWIMS0_TWCK
 

Extension header #1 UART definitions

#define EXT1_UART_MODULE   USART0
 
#define EXT1_UART_RX_MUX   MUX_PB00B_USART0_RXD
 
#define EXT1_UART_TX_MUX   MUX_PB01B_USART0_TXD
 

Extension header #1 SPI definitions

#define EXT1_SPI_MODULE   SPI
 
#define EXT1_SPI_SS_1_MUX   MUX_PB13B_SPI_NPCS1
 
#define EXT1_SPI_SS_0_MUX   MUX_PC03A_SPI_NPCS0
 
#define EXT1_SPI_SS_MOSI   MUX_PA22A_SPI_MOSI
 
#define EXT1_SPI_SS_MISO   MUX_PA21A_SPI_MISO
 
#define EXT1_SPI_SS_SCK   MUX_PC30B_SPI_SCK
 

Extension header #2 pin definitions

#define EXT2_PIN_3   PIN_PA07
 
#define EXT2_PIN_4   PIN_PB02
 
#define EXT2_PIN_5   PIN_PC08
 
#define EXT2_PIN_6   PIN_PB10
 
#define EXT2_PIN_7   PIN_PC04
 
#define EXT2_PIN_8   PIN_PC05
 
#define EXT2_PIN_9   PIN_PC06
 
#define EXT2_PIN_10   PIN_PC09
 
#define EXT2_PIN_11   PIN_PB14
 
#define EXT2_PIN_12   PIN_PB15
 
#define EXT2_PIN_13   PIN_PC26
 
#define EXT2_PIN_14   PIN_PC27
 
#define EXT2_PIN_15   PIN_PB11
 
#define EXT2_PIN_16   PIN_PA22
 
#define EXT2_PIN_17   PIN_PA21
 
#define EXT2_PIN_18   PIN_PC30
 

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_IRQ   EXT2_PIN_9
 
#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   ADCIFE
 
#define EXT2_ADC_0_CHANNEL   2
 
#define EXT2_ADC_0_MUX   MUX_PA07A_ADCIFE_AD2
 
#define EXT2_ADC_1_CHANNEL   3
 
#define EXT2_ADC_1_MUX   MUX_PB02A_ADCIFE_AD3
 

Extension header #2 PWM definitions

#define EXT2_PWM_MODULE   TC1
 
#define EXT2_PWM_CHANNEL   2
 
#define EXT2_PWM_0_MUX   MUX_PC04D_TC1_A2
 
#define EXT2_PWM_1_MUX   MUX_PC05D_TC1_B2
 

Extension header #2 IRQ/External interrupt definitions

#define EXT2_IRQ_MODULE   EIC
 
#define EXT2_IRQ_MUX   MUX_PC06B_EIC_EXTINT8
 
#define EXT2_IRQ_MASK   EIC_IMR_INT8
 

Extension header #2 TWI definitions

#define EXT2_TWI_MODULE   TWIM3
 
#define EXT2_TWI_SDA_MUX   MUX_PB14C_TWIMS3_TWD
 
#define EXT2_TWI_SCL_MUX   MUX_PB15C_TWIMS3_TWCK
 

Extension header #2 UART definitions

#define EXT2_UART_MODULE   USART1
 
#define EXT2_UART_RX_MUX   MUX_PC26A_USART1_RXD
 
#define EXT2_UART_TX_MUX   MUX_PC27A_USART1_TXD
 

Extension header #2 SPI definitions

#define EXT2_SPI_MODULE   SPI
 
#define EXT2_SPI_SS_0_MUX   MUX_PB11B_SPI_NPCS2
 
#define EXT2_SPI_SS_MOSI   MUX_PA22A_SPI_MOSI
 
#define EXT2_SPI_SS_MISO   MUX_PA21A_SPI_MISO
 
#define EXT2_SPI_SS_SCK   MUX_PC30B_SPI_SCK
 

Extension header #3 pin definitions

#define EXT3_PIN_3   PIN_PB03
 
#define EXT3_PIN_4   PIN_PB04
 
#define EXT3_PIN_5   PIN_PC15
 
#define EXT3_PIN_6   PIN_PC16
 
#define EXT3_PIN_7   PIN_PA08
 
#define EXT3_PIN_8   PIN_PA09
 
#define EXT3_PIN_9   PIN_PA06
 
#define EXT3_PIN_10   PIN_PA10
 
#define EXT3_PIN_11   PIN_PB14
 
#define EXT3_PIN_12   PIN_PB15
 
#define EXT3_PIN_13   PIN_PC26
 
#define EXT3_PIN_14   PIN_PC27
 
#define EXT3_PIN_15   PIN_PA17
 
#define EXT3_PIN_16   PIN_PA20
 
#define EXT3_PIN_17   PIN_PA19
 
#define EXT3_PIN_18   PIN_PA18
 

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   ADCIFE
 
#define EXT3_ADC_0_CHANNEL   4
 
#define EXT3_ADC_0_MUX   MUX_PB03A_ADCIFE_AD4
 
#define EXT3_ADC_1_CHANNEL   5
 
#define EXT3_ADC_1_MUX   MUX_PB04A_ADCIFE_AD5
 

Extension header #3 PWM definitions

#define EXT3_PWM_MODULE   TC0
 
#define EXT3_PWM_CHANNEL   0
 
#define EXT3_PWM_0_MUX   MUX_PA08B_TC0_A0
 
#define EXT3_PWM_1_MUX   MUX_PA09B_TC0_B0
 

Extension header #3 IRQ/External interrupt definitions

#define EXT3_IRQ_MODULE   EIC
 
#define EXT3_IRQ_MUX   MUX_PA06C_EIC_EXTINT1
 
#define EXT3_IRQ_MASK   EIC_IMR_INT1
 

Extension header #3 TWI definitions

#define EXT3_TWI_MODULE   TWIM3
 
#define EXT3_TWI_SDA_MUX   MUX_PB14C_TWIMS3_TWD
 
#define EXT3_TWI_SCL_MUX   MUX_PB15C_TWIMS3_TWCK
 

Extension header #3 UART definitions

#define EXT3_UART_MODULE   USART1
 
#define EXT3_UART_RX_MUX   MUX_PC26A_USART1_RXD
 
#define EXT3_UART_TX_MUX   MUX_PC27A_USART1_TXD
 

Extension header #3 SPI definitions

#define EXT3_SPI_MODULE   USART2
 
#define EXT3_SPI_SS_MOSI   MUX_PA20A_USART2_TXD
 
#define EXT3_SPI_SS_MISO   MUX_PA19A_USART2_RXD
 
#define EXT3_SPI_SS_SCK   MUX_PA18A_USART2_CLK
 

Extension header #4 pin definitions

#define EXT4_PIN_3   PIN_PB05
 
#define EXT4_PIN_4   PIN_PC10
 
#define EXT4_PIN_5   PIN_PC17
 
#define EXT4_PIN_6   PIN_PC18
 
#define EXT4_PIN_7   PIN_PA12
 
#define EXT4_PIN_8   PIN_PA13
 
#define EXT4_PIN_9   PIN_PA16
 
#define EXT4_PIN_10   PIN_PA15
 
#define EXT4_PIN_11   PIN_PB14
 
#define EXT4_PIN_12   PIN_PB15
 
#define EXT4_PIN_13   PIN_PB00
 
#define EXT4_PIN_14   PIN_PB01
 
#define EXT4_PIN_15   PIN_PA11
 
#define EXT4_PIN_16   PIN_PA20
 
#define EXT4_PIN_17   PIN_PA19
 
#define EXT4_PIN_18   PIN_PA18
 

Extension header #4 pin definitions by function

#define EXT4_PIN_ADC_0   EXT4_PIN_3
 
#define EXT4_PIN_ADC_1   EXT4_PIN_4
 
#define EXT4_PIN_GPIO_0   EXT4_PIN_5
 
#define EXT4_PIN_GPIO_1   EXT4_PIN_6
 
#define EXT4_PIN_PWM_0   EXT4_PIN_7
 
#define EXT4_PIN_PWM_1   EXT4_PIN_8
 
#define EXT4_PIN_IRQ   EXT4_PIN_9
 
#define EXT4_PIN_TWI_SDA   EXT4_PIN_11
 
#define EXT4_PIN_TWI_SCL   EXT4_PIN_12
 
#define EXT4_PIN_UART_RX   EXT4_PIN_13
 
#define EXT4_PIN_UART_TX   EXT4_PIN_14
 
#define EXT4_PIN_SPI_SS_1   EXT4_PIN_10
 
#define EXT4_PIN_SPI_SS_0   EXT4_PIN_15
 
#define EXT4_PIN_SPI_MOSI   EXT4_PIN_16
 
#define EXT4_PIN_SPI_MISO   EXT4_PIN_17
 
#define EXT4_PIN_SPI_SCK   EXT4_PIN_18
 

Extension header #4 ADC definitions

#define EXT4_ADC_MODULE   ADCIFE
 
#define EXT4_ADC_0_CHANNEL   6
 
#define EXT4_ADC_0_MUX   MUX_PB05A_ADCIFE_AD6
 
#define EXT4_ADC_1_CHANNEL   10
 
#define EXT4_ADC_1_MUX   MUX_PC10A_ADCIFE_AD10
 

Extension header #4 PWM definitions

#define EXT4_PWM_MODULE   TC0
 
#define EXT4_PWM_CHANNEL   2
 
#define EXT4_PWM_0_MUX   MUX_PA12B_TC0_A2
 
#define EXT4_PWM_1_MUX   MUX_PA13B_TC0_B2
 

Extension header #4 IRQ/External interrupt definitions

#define EXT4_IRQ_MODULE   EIC
 
#define EXT4_IRQ_MUX   MUX_PA16C_EIC_EXTINT1
 
#define EXT4_IRQ_MASK   EIC_IMR_INT1
 

Extension header #4 TWI definitions

#define EXT4_TWI_MODULE   TWIM3
 
#define EXT4_TWI_SDA_MUX   MUX_PB14C_TWIMS3_TWD
 
#define EXT4_TWI_SCL_MUX   MUX_PB15C_TWIMS3_TWCK
 

Extension header #4 UART definitions

#define EXT4_UART_MODULE   USART0
 
#define EXT4_UART_RX_MUX   MUX_PB00B_USART0_RXD
 
#define EXT4_UART_TX_MUX   MUX_PB01B_USART0_TXD
 

Extension header #4 SPI definitions

#define EXT4_SPI_MODULE   USART2
 
#define EXT4_SPI_SS_MOSI   MUX_PA20A_USART2_TXD
 
#define EXT4_SPI_SS_MISO   MUX_PA19A_USART2_RXD
 
#define EXT4_SPI_SS_SCK   MUX_PA18A_USART2_CLK
 

Embedded debugger GPIO interface definitions

#define EDBG_GPIO0_PIN   PIN_PB05
 
#define EDBG_GPIO1_PIN   PIN_PB10
 
#define EDBG_GPIO2_PIN   PIN_PB06
 
#define EDBG_GPIO3_PIN   PIN_PB07
 

Embedded debugger TWI interface definitions

#define EDBG_TWI_MODULE   TWIM0
 
#define EDBG_TWI_SDA_PIN   PIN_PA23B_TWIMS0_TWD
 
#define EDBG_TWI_SDA_MUX   MUX_PA23B_TWIMS0_TWD
 
#define EDBG_TWI_SCL_PIN   PIN_PA24B_TWIMS0_TWCK
 
#define EDBG_TWI_SCL_MUX   MUX_PA24B_TWIMS0_TWCK
 

OLED

#define UG_2832HSWEG04_DATA_CMD_GPIO   (EXT2_PIN_5)
 OLED command/data select pin. More...
 
#define UG_2832HSWEG04_RESET_GPIO   (EXT2_PIN_10)
 OLED reset pin. More...
 
#define UG_2832HSWEG04_SS   2
 OLED SPI configuration. More...
 
#define UG_2832HSWEG04_BAUDRATE   5000000
 

OLED dimensions

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

#define BOARD_NAME   "SAM4L Xplained Pro"

Name string macro.

#define BOARD_OSC0_HZ   FOSC0

Clock frequency of OSC0 in Hz.

Referenced by dfll_priv_get_source_hz(), main(), osc_get_rate(), and sysclk_get_main_hz().

#define BOARD_OSC0_IS_XTAL   true

OSC0 uses a crystal, not an external clock.

#define BOARD_OSC0_STARTUP_US   (6100UL)

Startup time of OSC0 in microseconds.

#define BOARD_OSC32_HZ   FOSC32

Clock frequency of OSC32 in Hz.

Referenced by dfll_priv_get_source_hz(), and osc_get_rate().

#define BOARD_OSC32_IS_XTAL   true

OSC32 uses a crystal, not an external clock.

#define BOARD_OSC32_SELCURR   BSCIF_OSCCTRL32_SELCURR(10)

Crystal current selection for OSC32.

If not defined, the recommended value (300nA) are used.

#define BOARD_OSC32_STARTUP_US   (750000UL)

Startup time of OSC32 in microseconds.

#define BUTTON_0_ACTIVE   SW0_ACTIVE
#define BUTTON_0_EIC_LINE   SW0_EIC_LINE
#define BUTTON_0_EIC_PIN   SW0_EIC_PIN

Referenced by board_init().

#define BUTTON_0_EIC_PIN_MUX   SW0_EIC_PIN_MUX

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_COUNT   1

Number of on-board buttons.

#define COM_PORT_RX_GPIO   GPIO_PC26A_USART1_RXD
#define COM_PORT_RX_MUX   MUX_PC26A_USART1_RXD

Referenced by board_init().

#define COM_PORT_RX_PIN   PIN_PC26A_USART1_RXD

Referenced by board_init().

#define COM_PORT_TX_GPIO   GPIO_PC27A_USART1_TXD
#define COM_PORT_TX_MUX   MUX_PC27A_USART1_TXD

Referenced by board_init().

#define COM_PORT_TX_PIN   PIN_PC27A_USART1_TXD

Referenced by board_init().

#define COM_PORT_USART   USART1
#define COM_PORT_USART_ID   ID_USART1
#define DACC_EXT_TRIG0_GPIO   GPIO_PB04E_DACC_EXT_TRIG0
#define DACC_EXT_TRIG0_MUX   MUX_PB04E_DACC_EXT_TRIG0
#define DACC_EXT_TRIG0_PIN   PIN_PB04E_DACC_EXT_TRIG0
#define DACC_VOUT_GPIO   GPIO_PA06A_DACC_VOUT
#define DACC_VOUT_MUX   MUX_PA06A_DACC_VOUT

Referenced by board_init().

#define DACC_VOUT_PIN   PIN_PA06A_DACC_VOUT

Referenced by board_init().

#define EDBG_GPIO0_PIN   PIN_PB05
#define EDBG_GPIO1_PIN   PIN_PB10
#define EDBG_GPIO2_PIN   PIN_PB06
#define EDBG_GPIO3_PIN   PIN_PB07
#define EDBG_TWI_MODULE   TWIM0
#define EDBG_TWI_SCL_MUX   MUX_PA24B_TWIMS0_TWCK
#define EDBG_TWI_SCL_PIN   PIN_PA24B_TWIMS0_TWCK
#define EDBG_TWI_SDA_MUX   MUX_PA23B_TWIMS0_TWD
#define EDBG_TWI_SDA_PIN   PIN_PA23B_TWIMS0_TWD
#define EDBG_UART_CLK_MUX   MUX_PC31A_USART3_CLK
#define EDBG_UART_CLK_MUX   MUX_PC31A_USART3_CLK
#define EDBG_UART_CLK_PIN   PIN_PC31A_USART3_CLK
#define EDBG_UART_CLK_PIN   PIN_PC31A_USART3_CLK
#define EDBG_UART_MODULE   USART3
#define EDBG_UART_MODULE   USART3
#define EDBG_UART_RX_MUX   MUX_PC28A_USART3_RXD
#define EDBG_UART_RX_MUX   MUX_PC28A_USART3_RXD
#define EDBG_UART_RX_PIN   PIN_PC28A_USART3_RXD
#define EDBG_UART_RX_PIN   PIN_PC28A_USART3_RXD
#define EDBG_UART_TX_MUX   MUX_PC29A_USART3_TXD
#define EDBG_UART_TX_MUX   MUX_PC29A_USART3_TXD
#define EDBG_UART_TX_PIN   PIN_PC29A_USART3_TXD
#define EDBG_UART_TX_PIN   PIN_PC29A_USART3_TXD
#define EXT1_ADC_0_CHANNEL   0
#define EXT1_ADC_0_MUX   MUX_PA04A_ADCIFE_AD0
#define EXT1_ADC_1_CHANNEL   1
#define EXT1_ADC_1_MUX   MUX_PA05A_ADCIFE_AD1
#define EXT1_ADC_MODULE   ADCIFE
#define EXT1_IRQ_MASK   EIC_IMR_INT2
#define EXT1_IRQ_MODULE   EIC
#define EXT1_IRQ_MUX   MUX_PC25B_EIC_EXTINT2
#define EXT1_PIN_10   PIN_PB13
#define EXT1_PIN_11   PIN_PA23
#define EXT1_PIN_12   PIN_PA24
#define EXT1_PIN_13   PIN_PB00
#define EXT1_PIN_14   PIN_PB01
#define EXT1_PIN_15   PIN_PC03
#define EXT1_PIN_16   PIN_PA22
#define EXT1_PIN_17   PIN_PA21
#define EXT1_PIN_18   PIN_PC30
#define EXT1_PIN_3   PIN_PA04
#define EXT1_PIN_4   PIN_PA05
#define EXT1_PIN_5   PIN_PB12
#define EXT1_PIN_6   PIN_PC02
#define EXT1_PIN_7   PIN_PC00
#define EXT1_PIN_8   PIN_PC01
#define EXT1_PIN_9   PIN_PC25
#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

Referenced by board_init().

#define EXT1_PIN_UART_TX   EXT1_PIN_14

Referenced by board_init().

#define EXT1_PWM_0_MUX   MUX_PC00D_TC1_A0
#define EXT1_PWM_1_MUX   MUX_PC01D_TC1_B0
#define EXT1_PWM_CHANNEL   0
#define EXT1_PWM_MODULE   TC1
#define EXT1_SPI_MODULE   SPI
#define EXT1_SPI_SS_0_MUX   MUX_PC03A_SPI_NPCS0
#define EXT1_SPI_SS_1_MUX   MUX_PB13B_SPI_NPCS1
#define EXT1_SPI_SS_MISO   MUX_PA21A_SPI_MISO
#define EXT1_SPI_SS_MOSI   MUX_PA22A_SPI_MOSI
#define EXT1_SPI_SS_SCK   MUX_PC30B_SPI_SCK
#define EXT1_TWI_MODULE   TWIM0
#define EXT1_TWI_SCL_MUX   MUX_PA24B_TWIMS0_TWCK
#define EXT1_TWI_SDA_MUX   MUX_PA23B_TWIMS0_TWD
#define EXT1_UART_MODULE   USART0
#define EXT1_UART_RX_MUX   MUX_PB00B_USART0_RXD

Referenced by board_init().

#define EXT1_UART_TX_MUX   MUX_PB01B_USART0_TXD

Referenced by board_init().

#define EXT2_ADC_0_CHANNEL   2
#define EXT2_ADC_0_MUX   MUX_PA07A_ADCIFE_AD2
#define EXT2_ADC_1_CHANNEL   3
#define EXT2_ADC_1_MUX   MUX_PB02A_ADCIFE_AD3
#define EXT2_ADC_MODULE   ADCIFE
#define EXT2_IRQ_MASK   EIC_IMR_INT8
#define EXT2_IRQ_MODULE   EIC
#define EXT2_IRQ_MUX   MUX_PC06B_EIC_EXTINT8
#define EXT2_PIN_10   PIN_PC09
#define EXT2_PIN_11   PIN_PB14
#define EXT2_PIN_12   PIN_PB15
#define EXT2_PIN_13   PIN_PC26
#define EXT2_PIN_14   PIN_PC27
#define EXT2_PIN_15   PIN_PB11
#define EXT2_PIN_16   PIN_PA22
#define EXT2_PIN_17   PIN_PA21
#define EXT2_PIN_18   PIN_PC30
#define EXT2_PIN_3   PIN_PA07
#define EXT2_PIN_4   PIN_PB02
#define EXT2_PIN_5   PIN_PC08
#define EXT2_PIN_6   PIN_PB10
#define EXT2_PIN_7   PIN_PC04
#define EXT2_PIN_8   PIN_PC05
#define EXT2_PIN_9   PIN_PC06
#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_IRQ   EXT2_PIN_9
#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_0_MUX   MUX_PC04D_TC1_A2
#define EXT2_PWM_1_MUX   MUX_PC05D_TC1_B2
#define EXT2_PWM_CHANNEL   2
#define EXT2_PWM_MODULE   TC1
#define EXT2_SPI_MODULE   SPI
#define EXT2_SPI_SS_0_MUX   MUX_PB11B_SPI_NPCS2
#define EXT2_SPI_SS_MISO   MUX_PA21A_SPI_MISO
#define EXT2_SPI_SS_MOSI   MUX_PA22A_SPI_MOSI
#define EXT2_SPI_SS_SCK   MUX_PC30B_SPI_SCK
#define EXT2_TWI_MODULE   TWIM3
#define EXT2_TWI_SCL_MUX   MUX_PB15C_TWIMS3_TWCK
#define EXT2_TWI_SDA_MUX   MUX_PB14C_TWIMS3_TWD
#define EXT2_UART_MODULE   USART1
#define EXT2_UART_RX_MUX   MUX_PC26A_USART1_RXD
#define EXT2_UART_TX_MUX   MUX_PC27A_USART1_TXD
#define EXT3_ADC_0_CHANNEL   4
#define EXT3_ADC_0_MUX   MUX_PB03A_ADCIFE_AD4
#define EXT3_ADC_1_CHANNEL   5
#define EXT3_ADC_1_MUX   MUX_PB04A_ADCIFE_AD5
#define EXT3_ADC_MODULE   ADCIFE
#define EXT3_IRQ_MASK   EIC_IMR_INT1
#define EXT3_IRQ_MODULE   EIC
#define EXT3_IRQ_MUX   MUX_PA06C_EIC_EXTINT1
#define EXT3_PIN_10   PIN_PA10
#define EXT3_PIN_11   PIN_PB14
#define EXT3_PIN_12   PIN_PB15
#define EXT3_PIN_13   PIN_PC26
#define EXT3_PIN_14   PIN_PC27
#define EXT3_PIN_15   PIN_PA17
#define EXT3_PIN_16   PIN_PA20
#define EXT3_PIN_17   PIN_PA19
#define EXT3_PIN_18   PIN_PA18
#define EXT3_PIN_3   PIN_PB03
#define EXT3_PIN_4   PIN_PB04
#define EXT3_PIN_5   PIN_PC15
#define EXT3_PIN_6   PIN_PC16
#define EXT3_PIN_7   PIN_PA08
#define EXT3_PIN_8   PIN_PA09
#define EXT3_PIN_9   PIN_PA06
#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_0_MUX   MUX_PA08B_TC0_A0
#define EXT3_PWM_1_MUX   MUX_PA09B_TC0_B0
#define EXT3_PWM_CHANNEL   0
#define EXT3_PWM_MODULE   TC0
#define EXT3_SPI_MODULE   USART2
#define EXT3_SPI_SS_MISO   MUX_PA19A_USART2_RXD
#define EXT3_SPI_SS_MOSI   MUX_PA20A_USART2_TXD
#define EXT3_SPI_SS_SCK   MUX_PA18A_USART2_CLK
#define EXT3_TWI_MODULE   TWIM3
#define EXT3_TWI_SCL_MUX   MUX_PB15C_TWIMS3_TWCK
#define EXT3_TWI_SDA_MUX   MUX_PB14C_TWIMS3_TWD
#define EXT3_UART_MODULE   USART1
#define EXT3_UART_RX_MUX   MUX_PC26A_USART1_RXD
#define EXT3_UART_TX_MUX   MUX_PC27A_USART1_TXD
#define EXT4_ADC_0_CHANNEL   6
#define EXT4_ADC_0_MUX   MUX_PB05A_ADCIFE_AD6
#define EXT4_ADC_1_CHANNEL   10
#define EXT4_ADC_1_MUX   MUX_PC10A_ADCIFE_AD10
#define EXT4_ADC_MODULE   ADCIFE
#define EXT4_IRQ_MASK   EIC_IMR_INT1
#define EXT4_IRQ_MODULE   EIC
#define EXT4_IRQ_MUX   MUX_PA16C_EIC_EXTINT1
#define EXT4_PIN_10   PIN_PA15
#define EXT4_PIN_11   PIN_PB14
#define EXT4_PIN_12   PIN_PB15
#define EXT4_PIN_13   PIN_PB00
#define EXT4_PIN_14   PIN_PB01
#define EXT4_PIN_15   PIN_PA11
#define EXT4_PIN_16   PIN_PA20
#define EXT4_PIN_17   PIN_PA19
#define EXT4_PIN_18   PIN_PA18
#define EXT4_PIN_3   PIN_PB05
#define EXT4_PIN_4   PIN_PC10
#define EXT4_PIN_5   PIN_PC17
#define EXT4_PIN_6   PIN_PC18
#define EXT4_PIN_7   PIN_PA12
#define EXT4_PIN_8   PIN_PA13
#define EXT4_PIN_9   PIN_PA16
#define EXT4_PIN_ADC_0   EXT4_PIN_3
#define EXT4_PIN_ADC_1   EXT4_PIN_4
#define EXT4_PIN_GPIO_0   EXT4_PIN_5
#define EXT4_PIN_GPIO_1   EXT4_PIN_6
#define EXT4_PIN_IRQ   EXT4_PIN_9
#define EXT4_PIN_PWM_0   EXT4_PIN_7
#define EXT4_PIN_PWM_1   EXT4_PIN_8
#define EXT4_PIN_SPI_MISO   EXT4_PIN_17
#define EXT4_PIN_SPI_MOSI   EXT4_PIN_16
#define EXT4_PIN_SPI_SCK   EXT4_PIN_18
#define EXT4_PIN_SPI_SS_0   EXT4_PIN_15
#define EXT4_PIN_SPI_SS_1   EXT4_PIN_10
#define EXT4_PIN_TWI_SCL   EXT4_PIN_12
#define EXT4_PIN_TWI_SDA   EXT4_PIN_11
#define EXT4_PIN_UART_RX   EXT4_PIN_13
#define EXT4_PIN_UART_TX   EXT4_PIN_14
#define EXT4_PWM_0_MUX   MUX_PA12B_TC0_A2
#define EXT4_PWM_1_MUX   MUX_PA13B_TC0_B2
#define EXT4_PWM_CHANNEL   2
#define EXT4_PWM_MODULE   TC0
#define EXT4_SPI_MODULE   USART2
#define EXT4_SPI_SS_MISO   MUX_PA19A_USART2_RXD
#define EXT4_SPI_SS_MOSI   MUX_PA20A_USART2_TXD
#define EXT4_SPI_SS_SCK   MUX_PA18A_USART2_CLK
#define EXT4_TWI_MODULE   TWIM3
#define EXT4_TWI_SCL_MUX   MUX_PB15C_TWIMS3_TWCK
#define EXT4_TWI_SDA_MUX   MUX_PB14C_TWIMS3_TWD
#define EXT4_UART_MODULE   USART0
#define EXT4_UART_RX_MUX   MUX_PB00B_USART0_RXD
#define EXT4_UART_TX_MUX   MUX_PB01B_USART0_TXD
#define FOSC0   (12000000UL)

Osc frequency (Hz.) and startup time (RCOsc periods)

#define FOSC32   (32768UL)

Osc32 frequency (Hz.) and startup time (RCOsc periods)

#define GPIO_PUSH_BUTTON_0   PIN_PC24 /* Wrapper definition */
#define GPIO_PUSH_BUTTON_EIC_IRQ   EIC_1_IRQn
#define GPIO_PUSH_BUTTON_EIC_LINE   1
#define GPIO_PUSH_BUTTON_EIC_PIN   PIN_PC24B_EIC_EXTINT1
#define GPIO_PUSH_BUTTON_EIC_PIN_MASK   GPIO_PC24B_EIC_EXTINT1
#define GPIO_PUSH_BUTTON_EIC_PIN_MUX   MUX_PC24B_EIC_EXTINT1
#define LCD_BL   PC05
#define LCD_BL_ACTIVE_LEVEL   IOPORT_PIN_LEVEL_HIGH
#define LCD_BL_GPIO   PIN_PC05

Referenced by board_init().

#define LCD_BL_GPIO_MASK   GPIO_PC05
#define LCD_BL_INACTIVE_LEVEL   IOPORT_PIN_LEVEL_LOW

Referenced by board_init().

#define LCD_HEIGHT_PIXELS   (32)
#define LCD_WIDTH_PIXELS   (128)
#define LED0   PIN_PC07
#define LED0_ACTIVE   false
#define LED0_GPIO   PIN_PC07 /* Wrapper definition */
#define LED0_INACTIVE   !LED0_ACTIVE
#define LED0_PIN   PIN_PC07 /* Wrapper definition */
#define LED_0_ACTIVE   LED0_ACTIVE
#define LED_0_INACTIVE   LED0_INACTIVE
#define LED_0_NAME   "LED0"
#define LED_0_PIN   LED0_PIN

Referenced by board_init().

#define LED_COUNT   1

Number of on-board LEDs.

#define MCU_SOC_NAME   "ATSAM4LC4C"
#define QTOUCH_DISCHARGE_MUX   MUX_PC14G_CATB_DIS
#define QTOUCH_DISCHARGE_PIN   PIN_PC14
#define QTOUCH_PINSEL_BUTTON   15
#define QTOUCH_SENSE_MUX   MUX_PC13G_CATB_SENSE15
#define QTOUCH_SENSE_PIN   PIN_PC13
#define SW0_ACTIVE   false
#define SW0_EIC_LINE   1
#define SW0_EIC_PIN   PIN_PC24B_EIC_EXTINT1
#define SW0_EIC_PIN_MUX   MUX_PC24B_EIC_EXTINT1
#define SW0_INACTIVE   !SW0_ACTIVE
#define SW0_PIN   PIN_PC24
#define UG_2832HSWEG04_BAUDRATE   5000000
#define UG_2832HSWEG04_DATA_CMD_GPIO   (EXT2_PIN_5)

OLED command/data select pin.

Referenced by board_init().

#define UG_2832HSWEG04_RESET_GPIO   (EXT2_PIN_10)

OLED reset pin.

Referenced by board_init().

#define UG_2832HSWEG04_SS   2

OLED SPI configuration.

#define USB_ID_FLAGS
Value:
#define IOPORT_MODE_PULLUP
Definition: ioport_gpio.h:76
#define IOPORT_MODE_GLITCH_FILTER
Definition: ioport_gpio.h:78
#define USB_ID_PIN   PIN_PC10

Referenced by board_init().

#define USB_VBOF_ACTIVE_LEVEL   1
#define USB_VBOF_INACTIVE_LEVEL   0

Referenced by board_init().

#define USB_VBOF_PIN   PIN_PC12

Referenced by board_init().

#define USB_VBUS_FLAGS   IOPORT_MODE_GLITCH_FILTER
#define USB_VBUS_PIN   PIN_PC11

Referenced by board_init().