Analog Devices Wi-Fi Software Reference Manual
Release 1.0.0
|
Timestamp Interface. More...
Macros | |
#define | INIT_TIME() adi_RTCInit() |
#define | GET_TIME() adi_GetRTCTime() |
#define | ADI_RTC_DEVICE_NUM (1u) |
#define | ADI_RTC_PRESCALAR (5u) |
Functions | |
void | adi_RTCInit (void) |
Initialize RTC. More... | |
uint32_t | adi_GetRTCTime (void) |
Get the current RTC timestamp. More... | |
Timestamp Interface.
Abstraction layer for timestamp implementation.
#define ADI_RTC_DEVICE_NUM (1u) |
RTC device number
#define ADI_RTC_PRESCALAR (5u) |
The RTC prescalar can be caluculated using the equation: 1/(32768/2^Prescalar). Set prescalar to 5u for .97 ms precision
#define GET_TIME | ( | ) | adi_GetRTCTime() |
Get the current timestamp valu.e
#define INIT_TIME | ( | ) | adi_RTCInit() |
Initialize the timestamp. In the no os case this will configure the RTC for ~1ms ticks.
uint32_t adi_GetRTCTime | ( | void | ) |
Get the current RTC timestamp.
void adi_RTCInit | ( | void | ) |
Initialize RTC.
This API is used to initialize the RTC to .97 ms per tick.