Microchip® Advanced Software Framework

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

Modules

 Features
 Symbols that describe features and capabilities of the board.
 

Macros

#define LED_Off(led_gpio)   port_pin_set_output_level(led_gpio,true)
 Turns off the specified LEDs. More...
 
#define LED_On(led_gpio)   port_pin_set_output_level(led_gpio,false)
 Turns on the specified LEDs. More...
 
#define LED_Toggle(led_gpio)   port_pin_toggle_output_level(led_gpio)
 Toggles the specified LEDs. More...
 

Functions

void system_board_init (void)
 

802.15.4 TRX Interface definitions

#define AT86RFX_SPI   EXT1_SPI_MODULE
 
#define AT86RFX_RST_PIN   EXT1_PIN_7
 
#define AT86RFX_MISC_PIN   EXT1_PIN_12
 
#define AT86RFX_IRQ_PIN   EXT1_PIN_9
 
#define AT86RFX_SLP_PIN   EXT1_PIN_10
 
#define AT86RFX_SPI_CS   EXT1_PIN_15
 
#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_SPI_SERCOM_MUX_SETTING   EXT1_SPI_SERCOM_MUX_SETTING
 
#define AT86RFX_SPI_SERCOM_PINMUX_PAD0   EXT1_SPI_SERCOM_PINMUX_PAD0
 
#define AT86RFX_SPI_SERCOM_PINMUX_PAD1   PINMUX_UNUSED
 
#define AT86RFX_SPI_SERCOM_PINMUX_PAD2   EXT1_SPI_SERCOM_PINMUX_PAD2
 
#define AT86RFX_SPI_SERCOM_PINMUX_PAD3   EXT1_SPI_SERCOM_PINMUX_PAD3
 
#define AT86RFX_IRQ_CHAN   EXT1_IRQ_INPUT
 
#define AT86RFX_IRQ_PINMUX   EXT1_IRQ_PINMUX
 
#define ENABLE_TRX_IRQ()   extint_chan_enable_callback(AT86RFX_IRQ_CHAN, EXTINT_CALLBACK_TYPE_DETECT)
 Enables the transceiver main interrupt. More...
 
#define DISABLE_TRX_IRQ()   extint_chan_disable_callback(AT86RFX_IRQ_CHAN, EXTINT_CALLBACK_TYPE_DETECT)
 Disables the transceiver main interrupt. More...
 
#define CLEAR_TRX_IRQ()   extint_chan_clear_detected(AT86RFX_IRQ_CHAN);
 Clears the transceiver main interrupt. More...
 
#define ENTER_TRX_REGION()   { extint_chan_disable_callback(AT86RFX_IRQ_CHAN, EXTINT_CALLBACK_TYPE_DETECT)
 
#define LEAVE_TRX_REGION()   extint_chan_enable_callback(AT86RFX_IRQ_CHAN, EXTINT_CALLBACK_TYPE_DETECT); }
 

#define AT86RFX_CPS   EXT1_PIN_8
#define AT86RFX_CSD   EXT1_PIN_5
#define AT86RFX_IRQ_CHAN   EXT1_IRQ_INPUT
#define AT86RFX_IRQ_PIN   EXT1_PIN_9
#define AT86RFX_IRQ_PINMUX   EXT1_IRQ_PINMUX
#define AT86RFX_MISC_PIN   EXT1_PIN_12
#define AT86RFX_RST_PIN   EXT1_PIN_7
#define AT86RFX_SLP_PIN   EXT1_PIN_10
#define AT86RFX_SPI   EXT1_SPI_MODULE
#define AT86RFX_SPI_CS   EXT1_PIN_15
#define AT86RFX_SPI_MISO   EXT1_PIN_17
#define AT86RFX_SPI_MOSI   EXT1_PIN_16
#define AT86RFX_SPI_SCK   EXT1_PIN_18
#define AT86RFX_SPI_SERCOM_MUX_SETTING   EXT1_SPI_SERCOM_MUX_SETTING
#define AT86RFX_SPI_SERCOM_PINMUX_PAD0   EXT1_SPI_SERCOM_PINMUX_PAD0
#define AT86RFX_SPI_SERCOM_PINMUX_PAD1   PINMUX_UNUSED
#define AT86RFX_SPI_SERCOM_PINMUX_PAD2   EXT1_SPI_SERCOM_PINMUX_PAD2
#define AT86RFX_SPI_SERCOM_PINMUX_PAD3   EXT1_SPI_SERCOM_PINMUX_PAD3
#define CLEAR_TRX_IRQ ( )    extint_chan_clear_detected(AT86RFX_IRQ_CHAN);

Clears the transceiver main interrupt.

#define DISABLE_TRX_IRQ ( )    extint_chan_disable_callback(AT86RFX_IRQ_CHAN, EXTINT_CALLBACK_TYPE_DETECT)

Disables the transceiver main interrupt.

#define ENABLE_TRX_IRQ ( )    extint_chan_enable_callback(AT86RFX_IRQ_CHAN, EXTINT_CALLBACK_TYPE_DETECT)

Enables the transceiver main interrupt.

#define ENTER_TRX_REGION ( )    { extint_chan_disable_callback(AT86RFX_IRQ_CHAN, EXTINT_CALLBACK_TYPE_DETECT)
#define LEAVE_TRX_REGION ( )    extint_chan_enable_callback(AT86RFX_IRQ_CHAN, EXTINT_CALLBACK_TYPE_DETECT); }
#define LED_Off (   led_gpio)    port_pin_set_output_level(led_gpio,true)

Turns off the specified LEDs.

Parameters
led_gpioLED to turn off (LEDx_GPIO).
Note
The pins of the specified LEDs are set to GPIO output mode.
#define LED_On (   led_gpio)    port_pin_set_output_level(led_gpio,false)

Turns on the specified LEDs.

Parameters
led_gpioLED to turn on (LEDx_GPIO).
Note
The pins of the specified LEDs are set to GPIO output mode.
#define LED_Toggle (   led_gpio)    port_pin_toggle_output_level(led_gpio)

Toggles the specified LEDs.

Parameters
led_gpioLED to toggle (LEDx_GPIO).
Note
The pins of the specified LEDs are set to GPIO output mode.

void system_board_init ( void  )

Referenced by system_init().