Microchip® Advanced Software Framework

wireless/lorawan/hal/inc/sys.h File Reference
#include <stdint.h>
#include "asf.h"

Macros

#define EEDATA_MAX_ADDR   0x4000
 
#define EXTERN_MAX_ADDR   0x8000
 
#define INTERRUPT_GlobalInterruptDisable   Disable_global_interrupt
 
#define INTERRUPT_GlobalInterruptEnable   Enable_global_interrupt
 
#define MAX_EEPROM_PARAM_INDEX   0x18AU
 
#define UNIQUE_ID_OFFSET   0x80F8
 
#define USER_MEM_BASE   0x0300
 
#define USER_MEM_SIZE   0x0100
 

Functions

uint16_t System_GetAnalogReading (uint8_t channel)
 
void System_GetExternalEui (uint8_t *id)
 
void SystemBlockingWaitMs (uint32_t ms)
 Performs a blocking delay. More...
 

#define EEDATA_MAX_ADDR   0x4000
#define EXTERN_MAX_ADDR   0x8000
#define INTERRUPT_GlobalInterruptDisable   Disable_global_interrupt

Referenced by INTERRUPT_GetDioStatus().

#define INTERRUPT_GlobalInterruptEnable   Enable_global_interrupt

Referenced by INTERRUPT_GetDioStatus().

#define MAX_EEPROM_PARAM_INDEX   0x18AU
#define UNIQUE_ID_OFFSET   0x80F8
#define USER_MEM_BASE   0x0300
#define USER_MEM_SIZE   0x0100

uint16_t System_GetAnalogReading ( uint8_t  channel)
void System_GetExternalEui ( uint8_t *  id)
void SystemBlockingWaitMs ( uint32_t  ms)

Performs a blocking delay.

Parameters
[in]msDelay time in milliseconds
Note
: This function should allow interrupts to happen (unless it was called from an interrupt itself) and keep its timing accurate. Ideally it should do the waiting with the MCU in sleep. Find out how long it takes the MCU to go to and wake up from sleep to see if it makes sense to go to sleep at all

References delay_ms.

Referenced by RADIO_ReadRandom(), RADIO_Reset(), and Radio_WriteMode().