Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
SAM4S Xplained Pro board

Modules

 Configuration
 Symbols to use for configuring the board and its initialization.
 
 Features
 Symbols that describe features and capabilities of the board.
 

Functions

void board_init (void)
 This function initializes the board target resources. More...
 

TWI

#define TWI0_DATA_GPIO   PIO_PA3_IDX
 TWI0 pin definitions. More...
 
#define TWI0_DATA_FLAGS   (PIO_PERIPH_A | PIO_PULLUP)
 
#define TWI0_CLK_GPIO   PIO_PA4_IDX
 
#define TWI0_CLK_FLAGS   (PIO_PERIPH_A | PIO_PULLUP)
 

OLED Xplained Pro LED definitions */

#define IO1_LED1_PIN   EXT3_PIN_7
 
#define IO1_LED1_ACTIVE   false
 
#define IO1_LED1_INACTIVE   !IO1_LED1_ACTIVE
 
#define IO1_LED2_PIN   EXT3_PIN_8
 
#define IO1_LED2_ACTIVE   false
 
#define IO1_LED2_INACTIVE   !IO1_LED2_ACTIVE
 
#define IO1_LED3_PIN   EXT3_PIN_6
 
#define IO1_LED3_ACTIVE   false
 
#define IO1_LED3_INACTIVE   !IO1_LED3_ACTIVE
 

OLED Xplained Pro button definitions */

#define PUSHBUTTON_1_NAME   "BUTTON 1"
 Push button #1 definition. More...
 
#define GPIO_PUSH_BUTTON_1   (PIO_PA0_IDX)
 
#define GPIO_PUSH_BUTTON_1_FLAGS   (PIO_INPUT | PIO_PULLUP | PIO_DEBOUNCE | PIO_IT_RISE_EDGE)
 
#define PIN_PUSHBUTTON_1   {PIO_PA0, PIOA, ID_PIOA, PIO_INPUT, PIO_PULLUP | PIO_DEBOUNCE | PIO_IT_RISE_EDGE}
 
#define PIN_PUSHBUTTON_1_MASK   PIO_PA0
 
#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)
 
#define PUSHBUTTON_2_NAME   "BUTTON 2"
 Push button #2 definition. More...
 
#define GPIO_PUSH_BUTTON_2   (PIO_PC29_IDX)
 
#define GPIO_PUSH_BUTTON_2_FLAGS   (PIO_INPUT | PIO_PULLUP | PIO_DEBOUNCE | PIO_IT_RISE_EDGE)
 
#define PIN_PUSHBUTTON_2   {PIO_PC29, PIOC, ID_PIOC, PIO_INPUT, PIO_PULLUP | PIO_DEBOUNCE | PIO_IT_RISE_EDGE}
 
#define PIN_PUSHBUTTON_2_MASK   PIO_PC29
 
#define PIN_PUSHBUTTON_2_PIO   PIOC
 
#define PIN_PUSHBUTTON_2_ID   ID_PIOC
 
#define PIN_PUSHBUTTON_2_TYPE   PIO_INPUT
 
#define PIN_PUSHBUTTON_2_ATTR   (PIO_PULLUP | PIO_DEBOUNCE | PIO_IT_RISE_EDGE)
 
#define PUSHBUTTON_3_NAME   "BUTTON 3"
 Push button #3 definition. More...
 
#define GPIO_PUSH_BUTTON_3   (PIO_PC30_IDX)
 
#define GPIO_PUSH_BUTTON_3_FLAGS   (PIO_INPUT | PIO_PULLUP | PIO_DEBOUNCE | PIO_IT_RISE_EDGE)
 
#define PIN_PUSHBUTTON_3   {PIO_PC30, PIOC, ID_PIOC, PIO_INPUT, PIO_PULLUP | PIO_DEBOUNCE | PIO_IT_RISE_EDGE}
 
#define PIN_PUSHBUTTON_3_MASK   PIO_PC30
 
#define PIN_PUSHBUTTON_3_PIO   PIOC
 
#define PIN_PUSHBUTTON_3_ID   ID_PIOC
 
#define PIN_PUSHBUTTON_3_TYPE   PIO_INPUT
 
#define PIN_PUSHBUTTON_3_ATTR   (PIO_PULLUP | PIO_DEBOUNCE | PIO_IT_RISE_EDGE)
 

Light Sensor

#define LIGHT_SENSOR_GPIO   PIO_PB0_IDX
 
#define LIGHT_SENSOR_FLAGS   PIO_INPUT
 

SD Card

#define SD_MMC_0_CD_GPIO   (PIO_PC12_IDX)
 
#define SD_MMC_0_CD_PIO_ID   ID_PIOC
 
#define SD_MMC_0_CD_FLAGS   (PIO_INPUT | PIO_PULLUP)
 
#define SD_MMC_0_CD_DETECT_VALUE   0
 
#define SD_MMC_0_CD   {PIO_PC12, PIOC, ID_PIOC, PIO_INPUT, PIO_PULLUP | PIO_DEBOUNCE | PIO_IT_RISE_EDGE}
 
#define SD_MMC_0_CD_MASK   PIO_PC12
 
#define SD_MMC_0_CD_PIO   PIOC
 
#define SD_MMC_0_CD_ID   ID_PIOC
 
#define SD_MMC_0_CD_TYPE   PIO_INPUT
 
#define SD_MMC_0_CD_ATTR   (PIO_PULLUP | PIO_DEBOUNCE | PIO_IT_EDGE)
 

Connections of the AT86RFX transceiver

void at86rfx_isr (uint32_t, uint32_t)
 
#define AT86RFX_SPI   SPI
 
#define AT86RFX_RST_PIN   EXT1_PIN_7
 
#define AT86RFX_IRQ_PIN   EXT1_PIN_9
 
#define AT86RFX_SLP_PIN   EXT1_PIN_10
 
#define AT86RFX_SPI_CS   0
 
#define AT86RFX_SPI_CS_PIN   SPI_NPCS0_GPIO
 
#define AT86RFX_SPI_CS_FLAGS   SPI_NPCS0_FLAGS
 
#define AT86RFX_SPI_MOSI   EXT1_PIN_16
 
#define AT86RFX_SPI_MISO   EXT1_PIN_17
 
#define AT86RFX_SPI_SCK   EXT1_PIN_18
 
#define AT86RFX_CSD   EXT1_PIN_5
 
#define AT86RFX_CPS   EXT1_PIN_8
 
#define AT86RFX_INTC_INIT()
 
#define AT86RFX_ISR()   void at86rfx_isr(uint32_t arg1, uint32_t arg2)
 
#define ENABLE_TRX_IRQ()   pio_enable_pin_interrupt(AT86RFX_IRQ_PIN)
 Enables the transceiver main interrupt. More...
 
#define DISABLE_TRX_IRQ()   pio_disable_pin_interrupt(AT86RFX_IRQ_PIN)
 Disables the transceiver main interrupt. More...
 
#define CLEAR_TRX_IRQ()   NVIC_ClearPendingIRQ(PIOA_IRQn);
 Clears the transceiver main interrupt. More...
 
#define ENTER_TRX_REGION()   pio_disable_pin_interrupt(AT86RFX_IRQ_PIN);
 
#define LEAVE_TRX_REGION()   pio_enable_pin_interrupt(AT86RFX_IRQ_PIN)
 

NandFlash

#define PIN_EBI_NANDOE   (PIO_PC9_IDX)
 NandFlash pins definition: OE. More...
 
#define PIN_EBI_NANDOE_FLAGS   (PIO_PERIPH_A | PIO_PULLUP)
 
#define PIN_EBI_NANDWE   (PIO_PC10_IDX)
 NandFlash pins definition: WE. More...
 
#define PIN_EBI_NANDWE_FLAGS   (PIO_PERIPH_A | PIO_PULLUP)
 
#define PIN_EBI_NANDCLE   (PIO_PC17_IDX)
 NandFlash pins definition: CLE. More...
 
#define PIN_EBI_NANDCLE_FLAGS   (PIO_PERIPH_A | PIO_PULLUP)
 
#define PIN_EBI_NANDALE   (PIO_PC16_IDX)
 NandFlash pins definition: ALE. More...
 
#define PIN_EBI_NANDALE_FLAGS   (PIO_PERIPH_A | PIO_PULLUP)
 
#define PIN_EBI_NANDIO_0   (PIO_PC0_IDX)
 NandFlash pins definition: DATA. More...
 
#define PIN_EBI_NANDIO_0_FLAGS   (PIO_PERIPH_A | PIO_PULLUP)
 
#define PIN_EBI_NANDIO_1   (PIO_PC1_IDX)
 
#define PIN_EBI_NANDIO_1_FLAGS   (PIO_PERIPH_A | PIO_PULLUP)
 
#define PIN_EBI_NANDIO_2   (PIO_PC2_IDX)
 
#define PIN_EBI_NANDIO_2_FLAGS   (PIO_PERIPH_A | PIO_PULLUP)
 
#define PIN_EBI_NANDIO_3   (PIO_PC3_IDX)
 
#define PIN_EBI_NANDIO_3_FLAGS   (PIO_PERIPH_A | PIO_PULLUP)
 
#define PIN_EBI_NANDIO_4   (PIO_PC4_IDX)
 
#define PIN_EBI_NANDIO_4_FLAGS   (PIO_PERIPH_A | PIO_PULLUP)
 
#define PIN_EBI_NANDIO_5   (PIO_PC5_IDX)
 
#define PIN_EBI_NANDIO_5_FLAGS   (PIO_PERIPH_A | PIO_PULLUP)
 
#define PIN_EBI_NANDIO_6   (PIO_PC6_IDX)
 
#define PIN_EBI_NANDIO_6_FLAGS   (PIO_PERIPH_A | PIO_PULLUP)
 
#define PIN_EBI_NANDIO_7   (PIO_PC7_IDX)
 
#define PIN_EBI_NANDIO_7_FLAGS   (PIO_PERIPH_A | PIO_PULLUP)
 
#define PIN_NF_CE_IDX   (PIO_PC14_IDX)
 Nandflash chip enable pin definition. More...
 
#define PIN_NF_CE_FLAGS   (PIO_TYPE_PIO_OUTPUT_1 | PIO_DEFAULT)
 
#define PIN_NF_RB_IDX   (PIO_PC13_IDX)
 Nandflash ready/busy pin definition. More...
 
#define PIN_NF_RB_FLAGS   (PIO_INPUT | PIO_PULLUP)
 
#define BOARD_NAND_CS   0
 
#define BOARD_NF_COMMAND_ADDR   0x60400000
 Address for transferring command bytes to the nandflash. More...
 
#define BOARD_NF_ADDRESS_ADDR   0x60200000
 Address for transferring address bytes to the nandflash. More...
 
#define BOARD_NF_DATA_ADDR   0x60000000
 Address for transferring data bytes to the nandflash. More...
 
#define CONF_NF_BUSWIDTH   8
 
#define CONF_NF_SETUP_TIMING
 
#define CONF_NF_PULSE_TIMING
 
#define CONF_NF_CYCLE_TIMING
 

HSMCI pins definition

#define SD_MMC_HSMCI_MEM_CNT   1
 
#define SD_MMC_HSMCI_SLOT_0_SIZE   4
 
#define PINS_HSMCI   {0x3fUL << 26, PIOA, ID_PIOA, PIO_PERIPH_C, PIO_PULLUP}
 
#define PIN_HSMCI_MCCDA_GPIO   (PIO_PA28_IDX)
 HSMCI MCCDA pin definition. More...
 
#define PIN_HSMCI_MCCDA_FLAGS   (PIO_PERIPH_C | PIO_DEFAULT)
 
#define PIN_HSMCI_MCCK_GPIO   (PIO_PA29_IDX)
 HSMCI MCCK pin definition. More...
 
#define PIN_HSMCI_MCCK_FLAGS   (PIO_PERIPH_C | PIO_DEFAULT)
 
#define PIN_HSMCI_MCDA0_GPIO   (PIO_PA30_IDX)
 HSMCI MCDA0 pin definition. More...
 
#define PIN_HSMCI_MCDA0_FLAGS   (PIO_PERIPH_C | PIO_DEFAULT)
 
#define PIN_HSMCI_MCDA1_GPIO   (PIO_PA31_IDX)
 HSMCI MCDA1 pin definition. More...
 
#define PIN_HSMCI_MCDA1_FLAGS   (PIO_PERIPH_C | PIO_DEFAULT)
 
#define PIN_HSMCI_MCDA2_GPIO   (PIO_PA26_IDX)
 HSMCI MCDA2 pin definition. More...
 
#define PIN_HSMCI_MCDA2_FLAGS   (PIO_PERIPH_C | PIO_DEFAULT)
 
#define PIN_HSMCI_MCDA3_GPIO   (PIO_PA27_IDX)
 HSMCI MCDA3 pin definition. More...
 
#define PIN_HSMCI_MCDA3_FLAGS   (PIO_PERIPH_C | PIO_DEFAULT)
 

"SAM4S-XPLAINED-PRO - Memories"

This page lists definitions related to internal & external on-board memories.

NandFlash

#define AT86RFX_CPS   EXT1_PIN_8
#define AT86RFX_CSD   EXT1_PIN_5
#define AT86RFX_INTC_INIT ( )
Value:
pio_set_debounce_filter(PIOA, PIO_PA1, 10);\
pio_handler_set(PIOA, ID_PIOA, PIO_PA1, PIO_IT_RISE_EDGE, at86rfx_isr);\
NVIC_EnableIRQ((IRQn_Type) ID_PIOA);\
pio_enable_interrupt(PIOA, PIO_PA1);
void at86rfx_isr(uint32_t, uint32_t)
void pio_set_debounce_filter(Pio *p_pio, const uint32_t ul_mask, const uint32_t ul_cut_off)
Configure Glitch or Debouncing filter for the specified input(s).
Definition: pio.c:87
#define PIO_IT_RISE_EDGE
Definition: pio.h:110
Definition: ioport.h:114
uint32_t pmc_enable_periph_clk(uint32_t ul_id)
Enable the specified peripheral clock.
Definition: pmc.c:682
void pio_enable_interrupt(Pio *p_pio, const uint32_t ul_mask)
Enable the given interrupt source.
Definition: pio.c:578
#define AT86RFX_IRQ_PIN
Definition: sam4s_xplained_pro.h:554
Definition: ioport.h:77
static void ioport_set_pin_dir(ioport_pin_t pin, enum ioport_direction dir)
Set direction for a single IOPORT pin.
Definition: ioport.h:263
static void ioport_set_pin_sense_mode(ioport_pin_t pin, enum ioport_sense pin_sense)
Set the pin sense mode of a single IOPORT pin.
Definition: ioport.h:350
uint32_t pio_handler_set(Pio *p_pio, uint32_t ul_id, uint32_t ul_mask, uint32_t ul_attr, void(*p_handler)(uint32_t, uint32_t))
Set an interrupt handler for the provided pins.
Definition: pio_handler.c:132
#define AT86RFX_IRQ_PIN   EXT1_PIN_9
#define AT86RFX_ISR ( )    void at86rfx_isr(uint32_t arg1, uint32_t arg2)
#define AT86RFX_RST_PIN   EXT1_PIN_7

Referenced by board_init().

#define AT86RFX_SLP_PIN   EXT1_PIN_10

Referenced by board_init().

#define AT86RFX_SPI   SPI
#define AT86RFX_SPI_CS   0
#define AT86RFX_SPI_CS_FLAGS   SPI_NPCS0_FLAGS

Referenced by board_init().

#define AT86RFX_SPI_CS_PIN   SPI_NPCS0_GPIO

Referenced by board_init().

#define AT86RFX_SPI_MISO   EXT1_PIN_17

Referenced by board_init().

#define AT86RFX_SPI_MOSI   EXT1_PIN_16

Referenced by board_init().

#define AT86RFX_SPI_SCK   EXT1_PIN_18

Referenced by board_init().

#define BOARD_NAND_CS   0
#define BOARD_NF_ADDRESS_ADDR   0x60200000

Address for transferring address bytes to the nandflash.

#define BOARD_NF_COMMAND_ADDR   0x60400000

Address for transferring command bytes to the nandflash.

#define BOARD_NF_DATA_ADDR   0x60000000

Address for transferring data bytes to the nandflash.

#define CLEAR_TRX_IRQ ( )    NVIC_ClearPendingIRQ(PIOA_IRQn);

Clears the transceiver main interrupt.

#define CONF_NF_BUSWIDTH   8
#define CONF_NF_CYCLE_TIMING
Value:
(SMC_CYCLE_NWE_CYCLE(4) \
| SMC_CYCLE_NRD_CYCLE(7))
#define CONF_NF_PULSE_TIMING
Value:
(SMC_PULSE_NWE_PULSE(2) \
| SMC_PULSE_NCS_WR_PULSE(3) \
| SMC_PULSE_NRD_PULSE(4) \
| SMC_PULSE_NCS_RD_PULSE(4))
#define CONF_NF_SETUP_TIMING
Value:
(SMC_SETUP_NWE_SETUP(0) \
| SMC_SETUP_NCS_WR_SETUP(1) \
| SMC_SETUP_NRD_SETUP(0) \
| SMC_SETUP_NCS_RD_SETUP(1))
#define DISABLE_TRX_IRQ ( )    pio_disable_pin_interrupt(AT86RFX_IRQ_PIN)

Disables the transceiver main interrupt.

#define ENABLE_TRX_IRQ ( )    pio_enable_pin_interrupt(AT86RFX_IRQ_PIN)

Enables the transceiver main interrupt.

#define ENTER_TRX_REGION ( )    pio_disable_pin_interrupt(AT86RFX_IRQ_PIN);
#define GPIO_PUSH_BUTTON_1   (PIO_PA0_IDX)
#define GPIO_PUSH_BUTTON_1_FLAGS   (PIO_INPUT | PIO_PULLUP | PIO_DEBOUNCE | PIO_IT_RISE_EDGE)
#define GPIO_PUSH_BUTTON_2   (PIO_PC29_IDX)
#define GPIO_PUSH_BUTTON_2_FLAGS   (PIO_INPUT | PIO_PULLUP | PIO_DEBOUNCE | PIO_IT_RISE_EDGE)
#define GPIO_PUSH_BUTTON_3   (PIO_PC30_IDX)
#define GPIO_PUSH_BUTTON_3_FLAGS   (PIO_INPUT | PIO_PULLUP | PIO_DEBOUNCE | PIO_IT_RISE_EDGE)
#define IO1_LED1_ACTIVE   false

Referenced by board_init().

#define IO1_LED1_INACTIVE   !IO1_LED1_ACTIVE
#define IO1_LED1_PIN   EXT3_PIN_7

Referenced by board_init().

#define IO1_LED2_ACTIVE   false

Referenced by board_init().

#define IO1_LED2_INACTIVE   !IO1_LED2_ACTIVE
#define IO1_LED2_PIN   EXT3_PIN_8

Referenced by board_init().

#define IO1_LED3_ACTIVE   false

Referenced by board_init().

#define IO1_LED3_INACTIVE   !IO1_LED3_ACTIVE
#define IO1_LED3_PIN   EXT3_PIN_6

Referenced by board_init().

#define LEAVE_TRX_REGION ( )    pio_enable_pin_interrupt(AT86RFX_IRQ_PIN)
#define LIGHT_SENSOR_FLAGS   PIO_INPUT
#define LIGHT_SENSOR_GPIO   PIO_PB0_IDX
#define PIN_EBI_NANDALE   (PIO_PC16_IDX)

NandFlash pins definition: ALE.

Referenced by board_init().

#define PIN_EBI_NANDALE_FLAGS   (PIO_PERIPH_A | PIO_PULLUP)

Referenced by board_init().

#define PIN_EBI_NANDCLE   (PIO_PC17_IDX)

NandFlash pins definition: CLE.

Referenced by board_init().

#define PIN_EBI_NANDCLE_FLAGS   (PIO_PERIPH_A | PIO_PULLUP)

Referenced by board_init().

#define PIN_EBI_NANDIO_0   (PIO_PC0_IDX)

NandFlash pins definition: DATA.

Referenced by board_init().

#define PIN_EBI_NANDIO_0_FLAGS   (PIO_PERIPH_A | PIO_PULLUP)

Referenced by board_init().

#define PIN_EBI_NANDIO_1   (PIO_PC1_IDX)

Referenced by board_init().

#define PIN_EBI_NANDIO_1_FLAGS   (PIO_PERIPH_A | PIO_PULLUP)

Referenced by board_init().

#define PIN_EBI_NANDIO_2   (PIO_PC2_IDX)

Referenced by board_init().

#define PIN_EBI_NANDIO_2_FLAGS   (PIO_PERIPH_A | PIO_PULLUP)

Referenced by board_init().

#define PIN_EBI_NANDIO_3   (PIO_PC3_IDX)

Referenced by board_init().

#define PIN_EBI_NANDIO_3_FLAGS   (PIO_PERIPH_A | PIO_PULLUP)

Referenced by board_init().

#define PIN_EBI_NANDIO_4   (PIO_PC4_IDX)

Referenced by board_init().

#define PIN_EBI_NANDIO_4_FLAGS   (PIO_PERIPH_A | PIO_PULLUP)

Referenced by board_init().

#define PIN_EBI_NANDIO_5   (PIO_PC5_IDX)

Referenced by board_init().

#define PIN_EBI_NANDIO_5_FLAGS   (PIO_PERIPH_A | PIO_PULLUP)

Referenced by board_init().

#define PIN_EBI_NANDIO_6   (PIO_PC6_IDX)

Referenced by board_init().

#define PIN_EBI_NANDIO_6_FLAGS   (PIO_PERIPH_A | PIO_PULLUP)

Referenced by board_init().

#define PIN_EBI_NANDIO_7   (PIO_PC7_IDX)

Referenced by board_init().

#define PIN_EBI_NANDIO_7_FLAGS   (PIO_PERIPH_A | PIO_PULLUP)

Referenced by board_init().

#define PIN_EBI_NANDOE   (PIO_PC9_IDX)

NandFlash pins definition: OE.

Referenced by board_init().

#define PIN_EBI_NANDOE_FLAGS   (PIO_PERIPH_A | PIO_PULLUP)

Referenced by board_init().

#define PIN_EBI_NANDWE   (PIO_PC10_IDX)

NandFlash pins definition: WE.

Referenced by board_init().

#define PIN_EBI_NANDWE_FLAGS   (PIO_PERIPH_A | PIO_PULLUP)

Referenced by board_init().

#define PIN_HSMCI_MCCDA_FLAGS   (PIO_PERIPH_C | PIO_DEFAULT)

Referenced by board_init().

#define PIN_HSMCI_MCCDA_GPIO   (PIO_PA28_IDX)

HSMCI MCCDA pin definition.

Referenced by board_init().

#define PIN_HSMCI_MCCK_FLAGS   (PIO_PERIPH_C | PIO_DEFAULT)

Referenced by board_init().

#define PIN_HSMCI_MCCK_GPIO   (PIO_PA29_IDX)

HSMCI MCCK pin definition.

Referenced by board_init().

#define PIN_HSMCI_MCDA0_FLAGS   (PIO_PERIPH_C | PIO_DEFAULT)

Referenced by board_init().

#define PIN_HSMCI_MCDA0_GPIO   (PIO_PA30_IDX)

HSMCI MCDA0 pin definition.

Referenced by board_init().

#define PIN_HSMCI_MCDA1_FLAGS   (PIO_PERIPH_C | PIO_DEFAULT)

Referenced by board_init().

#define PIN_HSMCI_MCDA1_GPIO   (PIO_PA31_IDX)

HSMCI MCDA1 pin definition.

Referenced by board_init().

#define PIN_HSMCI_MCDA2_FLAGS   (PIO_PERIPH_C | PIO_DEFAULT)

Referenced by board_init().

#define PIN_HSMCI_MCDA2_GPIO   (PIO_PA26_IDX)

HSMCI MCDA2 pin definition.

Referenced by board_init().

#define PIN_HSMCI_MCDA3_FLAGS   (PIO_PERIPH_C | PIO_DEFAULT)

Referenced by board_init().

#define PIN_HSMCI_MCDA3_GPIO   (PIO_PA27_IDX)

HSMCI MCDA3 pin definition.

Referenced by board_init().

#define PIN_NF_CE_FLAGS   (PIO_TYPE_PIO_OUTPUT_1 | PIO_DEFAULT)

Referenced by board_init().

#define PIN_NF_CE_IDX   (PIO_PC14_IDX)

Nandflash chip enable pin definition.

Referenced by board_init().

#define PIN_NF_RB_FLAGS   (PIO_INPUT | PIO_PULLUP)

Referenced by board_init().

#define PIN_NF_RB_IDX   (PIO_PC13_IDX)

Nandflash ready/busy pin definition.

Referenced by board_init().

#define PIN_PUSHBUTTON_1   {PIO_PA0, 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_PA0
#define PIN_PUSHBUTTON_1_PIO   PIOA
#define PIN_PUSHBUTTON_1_TYPE   PIO_INPUT
#define PIN_PUSHBUTTON_2   {PIO_PC29, PIOC, ID_PIOC, PIO_INPUT, PIO_PULLUP | PIO_DEBOUNCE | PIO_IT_RISE_EDGE}
#define PIN_PUSHBUTTON_2_ATTR   (PIO_PULLUP | PIO_DEBOUNCE | PIO_IT_RISE_EDGE)
#define PIN_PUSHBUTTON_2_ID   ID_PIOC
#define PIN_PUSHBUTTON_2_MASK   PIO_PC29
#define PIN_PUSHBUTTON_2_PIO   PIOC
#define PIN_PUSHBUTTON_2_TYPE   PIO_INPUT
#define PIN_PUSHBUTTON_3   {PIO_PC30, PIOC, ID_PIOC, PIO_INPUT, PIO_PULLUP | PIO_DEBOUNCE | PIO_IT_RISE_EDGE}
#define PIN_PUSHBUTTON_3_ATTR   (PIO_PULLUP | PIO_DEBOUNCE | PIO_IT_RISE_EDGE)
#define PIN_PUSHBUTTON_3_ID   ID_PIOC
#define PIN_PUSHBUTTON_3_MASK   PIO_PC30
#define PIN_PUSHBUTTON_3_PIO   PIOC
#define PIN_PUSHBUTTON_3_TYPE   PIO_INPUT
#define PINS_HSMCI   {0x3fUL << 26, PIOA, ID_PIOA, PIO_PERIPH_C, PIO_PULLUP}
#define PUSHBUTTON_1_NAME   "BUTTON 1"

Push button #1 definition.

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

#define PUSHBUTTON_2_NAME   "BUTTON 2"

Push button #2 definition.

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

#define PUSHBUTTON_3_NAME   "BUTTON 3"

Push button #3 definition.

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

#define SD_MMC_0_CD   {PIO_PC12, PIOC, ID_PIOC, 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_FLAGS   (PIO_INPUT | PIO_PULLUP)

Referenced by board_init().

#define SD_MMC_0_CD_GPIO   (PIO_PC12_IDX)

Referenced by board_init().

#define SD_MMC_0_CD_ID   ID_PIOC
#define SD_MMC_0_CD_MASK   PIO_PC12
#define SD_MMC_0_CD_PIO   PIOC
#define SD_MMC_0_CD_PIO_ID   ID_PIOC
#define SD_MMC_0_CD_TYPE   PIO_INPUT
#define SD_MMC_HSMCI_MEM_CNT   1

Number of slot connected on HSMCI interface

#define SD_MMC_HSMCI_SLOT_0_SIZE   4
#define TWI0_CLK_FLAGS   (PIO_PERIPH_A | PIO_PULLUP)

Referenced by board_init().

#define TWI0_CLK_GPIO   PIO_PA4_IDX

Referenced by board_init().

#define TWI0_DATA_FLAGS   (PIO_PERIPH_A | PIO_PULLUP)

Referenced by board_init().

#define TWI0_DATA_GPIO   PIO_PA3_IDX

TWI0 pin definitions.

Referenced by board_init().

void at86rfx_isr ( uint32_t  ,
uint32_t   
)
void board_init ( void  )

This function initializes the board target resources.

This function should be called to ensure proper initialization of the target board hardware connected to the part.

For NPCS 1, 2, and 3, different PINs can be used to access the same NPCS line. Depending on the application requirements, the default PIN may not be available. Hence a different PIN should be selected using the CONF_BOARD_SPI_NPCS_GPIO and CONF_BOARD_SPI_NPCS_FLAGS macros.

References AT86RFX_RST_PIN, AT86RFX_SLP_PIN, AT86RFX_SPI_CS_FLAGS, AT86RFX_SPI_CS_PIN, AT86RFX_SPI_MISO, AT86RFX_SPI_MOSI, AT86RFX_SPI_SCK, BUTTON_0_ACTIVE, BUTTON_0_PIN, gpio_configure_group, gpio_configure_pin, IO1_LED1_ACTIVE, IO1_LED1_PIN, IO1_LED2_ACTIVE, IO1_LED2_PIN, IO1_LED3_ACTIVE, IO1_LED3_PIN, IOPORT_DIR_INPUT, IOPORT_DIR_OUTPUT, ioport_init(), IOPORT_MODE_PULLDOWN, IOPORT_MODE_PULLUP, IOPORT_PIN_LEVEL_HIGH, ioport_set_pin_dir(), ioport_set_pin_level(), ioport_set_pin_mode(), LED_0_ACTIVE, LED_0_PIN, PIN_EBI_NANDALE, PIN_EBI_NANDALE_FLAGS, PIN_EBI_NANDCLE, PIN_EBI_NANDCLE_FLAGS, PIN_EBI_NANDIO_0, PIN_EBI_NANDIO_0_FLAGS, PIN_EBI_NANDIO_1, PIN_EBI_NANDIO_1_FLAGS, PIN_EBI_NANDIO_2, PIN_EBI_NANDIO_2_FLAGS, PIN_EBI_NANDIO_3, PIN_EBI_NANDIO_3_FLAGS, PIN_EBI_NANDIO_4, PIN_EBI_NANDIO_4_FLAGS, PIN_EBI_NANDIO_5, PIN_EBI_NANDIO_5_FLAGS, PIN_EBI_NANDIO_6, PIN_EBI_NANDIO_6_FLAGS, PIN_EBI_NANDIO_7, PIN_EBI_NANDIO_7_FLAGS, PIN_EBI_NANDOE, PIN_EBI_NANDOE_FLAGS, PIN_EBI_NANDWE, PIN_EBI_NANDWE_FLAGS, PIN_HSMCI_MCCDA_FLAGS, PIN_HSMCI_MCCDA_GPIO, PIN_HSMCI_MCCK_FLAGS, PIN_HSMCI_MCCK_GPIO, PIN_HSMCI_MCDA0_FLAGS, PIN_HSMCI_MCDA0_GPIO, PIN_HSMCI_MCDA1_FLAGS, PIN_HSMCI_MCDA1_GPIO, PIN_HSMCI_MCDA2_FLAGS, PIN_HSMCI_MCDA2_GPIO, PIN_HSMCI_MCDA3_FLAGS, PIN_HSMCI_MCDA3_GPIO, PIN_NF_CE_FLAGS, PIN_NF_CE_IDX, PIN_NF_RB_FLAGS, PIN_NF_RB_IDX, PINS_UART1, PINS_UART1_FLAGS, PINS_UART1_PIO, SD_MMC_0_CD_FLAGS, SD_MMC_0_CD_GPIO, SPI_MISO_FLAGS, SPI_MISO_GPIO, SPI_MOSI_FLAGS, SPI_MOSI_GPIO, SPI_NPCS0_FLAGS, SPI_NPCS0_GPIO, SPI_NPCS1_PA9_FLAGS, SPI_NPCS1_PA9_GPIO, SPI_NPCS2_PA10_FLAGS, SPI_NPCS2_PA10_GPIO, SPI_NPCS3_PA22_FLAGS, SPI_NPCS3_PA22_GPIO, SPI_SPCK_FLAGS, SPI_SPCK_GPIO, TWI0_CLK_FLAGS, TWI0_CLK_GPIO, TWI0_DATA_FLAGS, TWI0_DATA_GPIO, UG_2832HSWEG04_DATA_CMD_FLAGS, UG_2832HSWEG04_DATA_CMD_GPIO, UG_2832HSWEG04_RESET_FLAGS, UG_2832HSWEG04_RESET_GPIO, and wdt_disable().

Referenced by main().