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 | ( | ) |
#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 | |||
) |
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) |
#define SD_MMC_0_CD_DETECT_VALUE 0 |
Referenced by sd_mmc_select_slot().
#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 |
Referenced by sd_mmc_spi_adtc_start(), sd_mmc_spi_deselect_device(), sd_mmc_spi_init(), sd_mmc_spi_read_word(), sd_mmc_spi_select_device(), sd_mmc_spi_send_clock(), sd_mmc_spi_start_read_block(), sd_mmc_spi_start_read_blocks(), sd_mmc_spi_start_write_block(), sd_mmc_spi_start_write_blocks(), sd_mmc_spi_stop_multiwrite_block(), sd_mmc_spi_stop_read_block(), sd_mmc_spi_stop_write_block(), sd_mmc_spi_wait_busy(), and sd_mmc_spi_write_word().
#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_RST_PIN, AT86RFX_SLP_PIN, AT86RFX_SPI_MISO, AT86RFX_SPI_MOSI, AT86RFX_SPI_SCK, 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_15, 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, 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().