Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
SAM4L8 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.
 

Macros

#define ioport_set_pin_peripheral_mode(pin, mode)
 Set peripheral mode for one single IOPORT pin. More...
 

Functions

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

Connections of the AT86RFX transceiver

void at86rfx_isr (void)
 
#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_MOSI   EXT1_PIN_16
 
#define AT86RFX_SPI_MISO   EXT1_PIN_17
 
#define AT86RFX_SPI_SCK   EXT1_PIN_18
 
#define AT86RFX_INTC_INIT()
 
#define AT86RFX_ISR()   void at86rfx_isr(void)
 
#define ENABLE_TRX_IRQ()   gpio_enable_pin_interrupt(AT86RFX_IRQ_PIN)
 Enables the transceiver main interrupt. More...
 
#define DISABLE_TRX_IRQ()   gpio_disable_pin_interrupt(AT86RFX_IRQ_PIN)
 Disables the transceiver main interrupt. More...
 
#define CLEAR_TRX_IRQ()   gpio_clear_pin_interrupt_flag(AT86RFX_IRQ_PIN)
 Clears the transceiver main interrupt. More...
 
#define ENTER_TRX_REGION()   gpio_disable_pin_interrupt(AT86RFX_IRQ_PIN);
 
#define LEAVE_TRX_REGION()   gpio_enable_pin_interrupt(AT86RFX_IRQ_PIN)
 
#define SD_MMC_SPI_MEM_CNT   1
 Defines required by SD MMC Stack. More...
 
#define SD_MMC_0_CD_GPIO   (PIN_PB13)
 
#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 SPI_NPCS0_GPIO   (PIN_PC03A_SPI_NPCS0)
 
#define SPI_NPCS0_FLAGS   (MUX_PC03A_SPI_NPCS0)
 
#define SPI_MISO_GPIO   (PIN_PA21A_SPI_MISO)
 
#define SPI_MISO_FLAGS   (MUX_PA21A_SPI_MISO)
 
#define SPI_MOSI_GPIO   (PIN_PA22A_SPI_MOSI)
 
#define SPI_MOSI_FLAGS   (MUX_PA22A_SPI_MOSI)
 
#define SPI_SPCK_GPIO   (PIN_PC30B_SPI_SCK)
 
#define SPI_SPCK_FLAGS   (MUX_PC30B_SPI_SCK)
 

#define AT86RFX_INTC_INIT ( )
Value:
gpio_set_pin_callback(AT86RFX_IRQ_PIN, at86rfx_isr, 1);
#define AT86RFX_IRQ_PIN
Definition: sam4l8_xplained_pro.h:620
Definition: ioport.h:114
void at86rfx_isr(void)
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
#define AT86RFX_IRQ_PIN   EXT1_PIN_9
#define AT86RFX_ISR ( )    void at86rfx_isr(void)
#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_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 CLEAR_TRX_IRQ ( )    gpio_clear_pin_interrupt_flag(AT86RFX_IRQ_PIN)

Clears the transceiver main interrupt.

#define DISABLE_TRX_IRQ ( )    gpio_disable_pin_interrupt(AT86RFX_IRQ_PIN)

Disables the transceiver main interrupt.

#define ENABLE_TRX_IRQ ( )    gpio_enable_pin_interrupt(AT86RFX_IRQ_PIN)

Enables the transceiver main interrupt.

#define ENTER_TRX_REGION ( )    gpio_disable_pin_interrupt(AT86RFX_IRQ_PIN);
#define ioport_set_pin_peripheral_mode (   pin,
  mode 
)
Value:
do {\
} while (0)
static void ioport_set_pin_mode(ioport_pin_t pin, ioport_mode_t mode)
Set pin mode for one single IOPORT pin.
Definition: ioport.h:217
static void ioport_disable_pin(ioport_pin_t pin)
Disable IOPORT pin, based on a pin created with IOPORT_CREATE_PIN().
Definition: ioport.h:179

Set peripheral mode for one single IOPORT pin.

It will configure port mode and disable pin mode (but enable peripheral).

Parameters
pinIOPORT pin to configure
modeMode masks to configure for the specified pin (IOPORT Modes)

Referenced by board_init().

#define LEAVE_TRX_REGION ( )    gpio_enable_pin_interrupt(AT86RFX_IRQ_PIN)
#define SD_MMC_0_CD_DETECT_VALUE   0
#define SD_MMC_0_CD_DIR   (IOPORT_DIR_INPUT)
#define SD_MMC_0_CD_GPIO   (PIN_PB13)

Referenced by board_init().

#define SD_MMC_0_CD_MODE   (IOPORT_MODE_PULLUP)
#define SD_MMC_SPI   SPI
#define SD_MMC_SPI_0_CS   0
#define SD_MMC_SPI_MEM_CNT   1

Defines required by SD MMC Stack.

#define SPI_MISO_FLAGS   (MUX_PA21A_SPI_MISO)
#define SPI_MISO_GPIO   (PIN_PA21A_SPI_MISO)
#define SPI_MOSI_FLAGS   (MUX_PA22A_SPI_MOSI)
#define SPI_MOSI_GPIO   (PIN_PA22A_SPI_MOSI)
#define SPI_NPCS0_FLAGS   (MUX_PC03A_SPI_NPCS0)

Referenced by board_init().

#define SPI_NPCS0_GPIO   (PIN_PC03A_SPI_NPCS0)

Referenced by board_init().

#define SPI_SPCK_FLAGS   (MUX_PC30B_SPI_SCK)
#define SPI_SPCK_GPIO   (PIN_PC30B_SPI_SCK)

void at86rfx_isr ( void  )