XMEGA_RF212B_ZIGBIT board header file.
This file contains definitions and services related to the features of the XMEGA_RF212B_ZIGBIT board.
To use this board define BOARD=XMEGA_RF212B_ZIGBIT
Copyright (c) 2013-2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | MCU_SOC_NAME "ATxmega256A3U" |
Miscellaneous data | |
#define | COMMON_SENSOR_PLATFORM |
Validate board support for the common sensor service. More... | |
LEDs | |
LED0 and LED1 are single yellow LEDs that are active low. LED2 and LED3 are inside one package (Led red and green close to USB connector) but can be controlled individually. LED2 has a red color and is active low. This LED can be used for general purposes. LED3 has a green color and is active high. By default this LED is on since it shall indicate that power is applied to the board. By pulling the gate of a N-FET low it is possible to turn off the LED if needed. | |
#define | BOARD_NAME "ATZB-X-212B-XPRO" |
#define | LED0_GPIO IOPORT_CREATE_PIN(PORTA, 6) |
#define | LED1_GPIO IOPORT_CREATE_PIN(PORTA, 7) |
#define | LED2_GPIO IOPORT_CREATE_PIN(PORTA, 5) |
#define | LED0 LED0_GPIO |
#define | LED1 LED1_GPIO |
#define | LED2 LED2_GPIO |
#define | LED_COUNT 3 |
Number of LEDs. More... | |
#define | GPIO_PUSH_BUTTON_0 IOPORT_CREATE_PIN(PORTF, 2) |
Communication interfaces on header J1 | |
#define | TWID_SDA IOPORT_CREATE_PIN(PORTD, 0) |
#define | TWID_SCL IOPORT_CREATE_PIN(PORTD, 1) |
#define | USARTD0_RXD IOPORT_CREATE_PIN(PORTD, 2) |
#define | USARTD0_TXD IOPORT_CREATE_PIN(PORTD, 3) |
#define | SPID_SS IOPORT_CREATE_PIN(PORTD, 4) |
#define | SPID_MOSI IOPORT_CREATE_PIN(PORTD, 5) |
#define | SPID_MISO IOPORT_CREATE_PIN(PORTD, 6) |
#define | SPID_SCK IOPORT_CREATE_PIN(PORTD, 7) |
Connections of the AT86RFX transceiver | |
#define | AT86RFX_SPI &SPIC |
#define | AT86RFX_RST_PIN IOPORT_CREATE_PIN(PORTC, 0) |
#define | AT86RFX_MISC_PIN IOPORT_CREATE_PIN(PORTC, 1) |
#define | AT86RFX_IRQ_PIN IOPORT_CREATE_PIN(PORTC, 2) |
#define | AT86RFX_SLP_PIN IOPORT_CREATE_PIN(PORTC, 3) |
#define | AT86RFX_SPI_CS IOPORT_CREATE_PIN(PORTC, 4) |
#define | AT86RFX_SPI_MOSI IOPORT_CREATE_PIN(PORTC, 5) |
#define | AT86RFX_SPI_MISO IOPORT_CREATE_PIN(PORTC, 6) |
#define | AT86RFX_SPI_SCK IOPORT_CREATE_PIN(PORTC, 7) |
#define | AT86RFX_INTC_INIT() |
#define | AT86RFX_ISR() ISR(PORTC_INT0_vect) |
#define | ENABLE_TRX_IRQ() (PORTC.INTCTRL |= PORT_INT0LVL_gm) |
Enables the transceiver main interrupt. More... | |
#define | DISABLE_TRX_IRQ() (PORTC.INTCTRL &= ~PORT_INT0LVL_gm) |
Disables the transceiver main interrupt. More... | |
#define | CLEAR_TRX_IRQ() (PORTC.INTFLAGS = PORT_INT0IF_bm) |
Clears the transceiver main interrupt. More... | |
#define | ENTER_TRX_REGION() { uint8_t irq_mask = PORTC.INTCTRL; PORTC.INTCTRL &= ~PORT_INT0LVL_gm |
#define | LEAVE_TRX_REGION() PORTC.INTCTRL = irq_mask; } |
Initialization | |
| |
#define | CONF_BOARD_ENABLE_USARTD0 |
Initialize IO pins for USART 0 on port D. More... | |
#define MCU_SOC_NAME "ATxmega256A3U" |