Microchip® Advanced Software Framework

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Feature definitions

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 MCU_SOC_NAME   "ATxmega256A3U"
 
#define BOARD_NAME   "ATZB-X-233-USB"
 
#define LED0_GPIO   IOPORT_CREATE_PIN(PORTA, 4)
 
#define LED1_GPIO   IOPORT_CREATE_PIN(PORTA, 5)
 
#define LED0   LED0_GPIO
 
#define LED1   LED1_GPIO
 
#define LED_COUNT   2
 Number of LEDs. More...
 

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; }
 

#define AT86RFX_INTC_INIT ( )
Value:
PORTC.PIN2CTRL = PORT_ISC0_bm; \
PORTC.INT0MASK = PIN2_bm; \
PORTC.INTFLAGS = PORT_INT0IF_bm;
static void ioport_configure_pin(port_pin_t pin, port_pin_flags_t flags)
Select the port function for a single pin.
Definition: ioport_compat.h:172
Definition: ioport.h:77
#define AT86RFX_IRQ_PIN
Definition: xmega_rf233_zigbit.h:134

Referenced by trx_spi_init().

#define AT86RFX_IRQ_PIN   IOPORT_CREATE_PIN(PORTC, 2)

Referenced by trx_spi_init().

#define AT86RFX_ISR ( )    ISR(PORTC_INT0_vect)

Referenced by trx_spi_init().

#define AT86RFX_MISC_PIN   IOPORT_CREATE_PIN(PORTC, 1)
#define AT86RFX_RST_PIN   IOPORT_CREATE_PIN(PORTC, 0)

Referenced by board_init().

#define AT86RFX_SLP_PIN   IOPORT_CREATE_PIN(PORTC, 3)

Referenced by board_init().

#define AT86RFX_SPI_CS   IOPORT_CREATE_PIN(PORTC, 4)

Referenced by board_init(), and trx_spi_init().

#define AT86RFX_SPI_MISO   IOPORT_CREATE_PIN(PORTC, 6)

Referenced by board_init().

#define AT86RFX_SPI_MOSI   IOPORT_CREATE_PIN(PORTC, 5)

Referenced by board_init().

#define AT86RFX_SPI_SCK   IOPORT_CREATE_PIN(PORTC, 7)

Referenced by board_init().

#define BOARD_NAME   "ATZB-X-233-USB"
#define CLEAR_TRX_IRQ ( )    (PORTC.INTFLAGS = PORT_INT0IF_bm)

Clears the transceiver main interrupt.

#define COMMON_SENSOR_PLATFORM

Validate board support for the common sensor service.

#define DISABLE_TRX_IRQ ( )    (PORTC.INTCTRL &= ~PORT_INT0LVL_gm)

Disables the transceiver main interrupt.

#define ENABLE_TRX_IRQ ( )    (PORTC.INTCTRL |= PORT_INT0LVL_gm)

Enables the transceiver main interrupt.

#define ENTER_TRX_REGION ( )    { uint8_t irq_mask = PORTC.INTCTRL; PORTC.INTCTRL &= ~PORT_INT0LVL_gm

Referenced by trx_aes_wrrd().

#define LEAVE_TRX_REGION ( )    PORTC.INTCTRL = irq_mask; }

Referenced by trx_aes_wrrd().

#define LED0   LED0_GPIO
#define LED0_GPIO   IOPORT_CREATE_PIN(PORTA, 4)

Referenced by board_init().

#define LED1   LED1_GPIO
#define LED1_GPIO   IOPORT_CREATE_PIN(PORTA, 5)

Referenced by board_init().

#define LED_COUNT   2

Number of LEDs.

Referenced by appDataInd().

#define MCU_SOC_NAME   "ATxmega256A3U"