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... | |
#define AT86RFX_CPS EXT1_PIN_8 |
Referenced by board_init().
#define AT86RFX_CSD EXT1_PIN_5 |
Referenced by board_init().
#define AT86RFX_INTC_INIT | ( | ) |
Referenced by trx_spi_init().
#define AT86RFX_IRQ_PIN EXT1_PIN_9 |
Referenced by trx_spi_init().
#define AT86RFX_ISR | ( | ) | void at86rfx_isr(void) |
Referenced by trx_spi_init().
#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 |
Referenced by trx_aes_wrrd(), trx_frame_read(), trx_frame_write(), trx_reg_read(), trx_reg_write(), trx_spi_init(), trx_sram_read(), and trx_sram_write().
#define AT86RFX_SPI_CS 0 |
Referenced by trx_spi_init().
#define AT86RFX_SPI_CS_FLAGS MUX_PC03A_SPI_NPCS0 |
Referenced by board_init().
#define AT86RFX_SPI_CS_PIN EXT1_PIN_15 |
Referenced by board_init().
#define AT86RFX_SPI_MISO EXT1_PIN_17 |
Referenced by board_init().
#define AT86RFX_SPI_MISO_FLAGS MUX_PA21A_SPI_MISO |
Referenced by board_init().
#define AT86RFX_SPI_MOSI EXT1_PIN_16 |
Referenced by board_init().
#define AT86RFX_SPI_MOSI_FLAGS MUX_PA22A_SPI_MOSI |
Referenced by board_init().
#define AT86RFX_SPI_SCK EXT1_PIN_18 |
Referenced by board_init().
#define AT86RFX_SPI_SCK_FLAGS MUX_PC30B_SPI_SCK |
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); |
Referenced by switch_pll_on(), tal_generate_rand_seed(), and trx_aes_wrrd().
#define ioport_set_pin_peripheral_mode | ( | pin, | |
mode | |||
) |
Set peripheral mode for one single IOPORT pin.
It will configure port mode and disable pin mode (but enable peripheral).
pin | IOPORT pin to configure |
mode | Mode masks to configure for the specified pin (IOPORT Modes) |
Referenced by board_init().
#define LEAVE_TRX_REGION | ( | ) | gpio_enable_pin_interrupt(AT86RFX_IRQ_PIN) |
Referenced by switch_pll_on(), tal_generate_rand_seed(), and trx_aes_wrrd().
#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 | ) |
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.
References AT86RFX_CPS, AT86RFX_CSD, AT86RFX_RST_PIN, AT86RFX_SLP_PIN, AT86RFX_SPI_CS_FLAGS, AT86RFX_SPI_CS_PIN, AT86RFX_SPI_MISO, AT86RFX_SPI_MISO_FLAGS, AT86RFX_SPI_MOSI, AT86RFX_SPI_MOSI_FLAGS, AT86RFX_SPI_SCK, AT86RFX_SPI_SCK_FLAGS, BUTTON_0_EIC_PIN, BUTTON_0_EIC_PIN_MUX, BUTTON_0_PIN, COM_PORT_RX_MUX, COM_PORT_RX_PIN, COM_PORT_TX_MUX, COM_PORT_TX_PIN, DACC_VOUT_MUX, DACC_VOUT_PIN, EXT1_PIN_UART_RX, EXT1_PIN_UART_TX, EXT1_UART_RX_MUX, EXT1_UART_TX_MUX, IOPORT_DIR_INPUT, IOPORT_DIR_OUTPUT, ioport_init(), IOPORT_MODE_PULLUP, IOPORT_PIN_LEVEL_HIGH, ioport_set_pin_dir(), ioport_set_pin_level(), ioport_set_pin_mode(), ioport_set_pin_peripheral_mode, LCD_BL_GPIO, LCD_BL_INACTIVE_LEVEL, LED_0_PIN, SD_MMC_0_CD_GPIO, SPI_NPCS0_FLAGS, SPI_NPCS0_GPIO, UG_2832HSWEG04_DATA_CMD_GPIO, UG_2832HSWEG04_RESET_GPIO, USB_ID_PIN, USB_VBOF_INACTIVE_LEVEL, USB_VBOF_PIN, USB_VBUS_PIN, wdt_disable(), wdt_get_config_defaults(), and wdt_init().
Referenced by main().