Microchip® Advanced Software Framework

conf_at86rfx.h File Reference

AT86RFX configuration.

Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.

#include "gpio.h"
#include "main.h"
#include "cycle_counter.h"
#include "sysclk.h"

Macros

#define DELAY_US(delay)
 
#define ENTER_CRITICAL_REGION()   AVR32_ENTER_CRITICAL_REGION( )
 
#define ENTER_TRX_REGION()   DISABLE_TRX_IRQ()
 This macro saves the trx interrupt status and disables the trx interrupt. More...
 
#define LEAVE_CRITICAL_REGION()   AVR32_LEAVE_CRITICAL_REGION( )
 
#define LEAVE_TRX_REGION()   ENABLE_TRX_IRQ()
 This macro restores the transceiver interrupt status. More...
 
#define nop()   do { __asm__ __volatile__ ("nop"); } while (0)
 
#define PAL_WAIT_1_US()
 
#define SHORTENUM   __attribute__((packed))
 
#define WAIT_65_NS()   {nop(); nop();}
 
Macros for IRQ and AT86RFX accessing GPIO
#define EXT_INT   (AVR32_PIN_PA20)
 
#define EXT_INT_ISR_GROUP   2
 
#define EXT_INT_ISR_PRIORITY   1
 
#define TRX_RST   (AVR32_PIN_PA17)
 RESET pin of transceiver. More...
 
#define SLP_TR   (AVR32_PIN_PA19)
 Sleep Transceiver pin. More...
 
#define AT86RFX_RX_NOTIFY(frame)   at86rfx_tal_rx_frame_cb(frame)
 AT86RFX Module Callbacks definitions (Optional) More...
 
#define AT86RFX_TX_STATUS_NOTIFY(status)   at86rfx_tal_tx_status_cb(status)
 

#define AT86RFX_RX_NOTIFY (   frame)    at86rfx_tal_rx_frame_cb(frame)

AT86RFX Module Callbacks definitions (Optional)

Referenced by at86rfx_task().

#define AT86RFX_TX_STATUS_NOTIFY (   status)    at86rfx_tal_tx_status_cb(status)

Referenced by tx_end_handling().

#define DELAY_US (   delay)
Value:
do { \
} while (0)
static __always_inline void cpu_delay_us(unsigned long delay, unsigned long fcpu_hz)
Waits during at least the specified delay (in microsecond) before returning.
Definition: cycle_counter.h:249
static uint32_t sysclk_get_cpu_hz(void)
Return the current rate in Hz of the CPU clock.
Definition: uc3a3_a4/sysclk.h:523

Referenced by switch_pll_on(), trx_init(), and trx_reset().

#define ENTER_CRITICAL_REGION ( )    AVR32_ENTER_CRITICAL_REGION( )
#define ENTER_TRX_REGION ( )    DISABLE_TRX_IRQ()

This macro saves the trx interrupt status and disables the trx interrupt.

Referenced by generate_rand_seed().

#define EXT_INT   (AVR32_PIN_PA20)

Referenced by pal_trx_init().

#define EXT_INT_ISR_GROUP   2
#define EXT_INT_ISR_PRIORITY   1

Referenced by pal_trx_init().

#define LEAVE_CRITICAL_REGION ( )    AVR32_LEAVE_CRITICAL_REGION( )
#define LEAVE_TRX_REGION ( )    ENABLE_TRX_IRQ()

This macro restores the transceiver interrupt status.

Referenced by generate_rand_seed().

#define nop ( )    do { __asm__ __volatile__ ("nop"); } while (0)
#define PAL_WAIT_1_US ( )
Value:
do { \
} while (0)
static __always_inline void cpu_delay_us(unsigned long delay, unsigned long fcpu_hz)
Waits during at least the specified delay (in microsecond) before returning.
Definition: cycle_counter.h:249
static uint32_t sysclk_get_cpu_hz(void)
Return the current rate in Hz of the CPU clock.
Definition: uc3a3_a4/sysclk.h:523

Referenced by set_trx_state().

#define SHORTENUM   __attribute__((packed))
#define SLP_TR   (AVR32_PIN_PA19)

Sleep Transceiver pin.

Referenced by pal_trx_init().

#define TRX_RST   (AVR32_PIN_PA17)

RESET pin of transceiver.

Referenced by pal_trx_init().

#define WAIT_65_NS ( )    {nop(); nop();}

Referenced by tx_frame_config().