#include <FreeRTOS.h>
#include <semphr.h>
#include <stdint.h>
#include <stdbool.h>
#include <hal.h>
Go to the source code of this file.
|
#define | RTC_ALREDY_INITED 1 |
|
#define | rtc_lock(u, w, e) |
|
#define | rtc_unlock(u, e) |
|
#define | RTC_ADDDEV(ns, p) HAL_ADDDEV(rtc, ns, p) |
|
#define | RTC_GET_DEV(index) HAL_GET_DEV(rtc, index) |
|
#define | RTC_OPS(ns) |
|
#define | RTC_INIT_DEV(ns) |
|
#define | RTC_INIT(ns, index) struct rtc *rtc_init(uint32_t index) |
|
#define | RTC_DEINIT(ns, p) int32_t rtc_deinit(struct rtc *p) |
|
#define | RTC_ADJUST(ns, p, offset, waitime) int32_t rtc_adjust(struct rtc *p, struct timespec *offset, TickType_t waittime) |
|
#define | RTC_GET_TIME(ns, p, time, waittime) int32_t rtc_getTime(struct rtc *p, struct timespec *time, TickType_t waittime) |
|
#define | RTC_SET_TIME(ns, p, time, waittime) int32_t rtc_setTime(struct rtc *p, struct timespec *time, TickType_t waittime) |
|
#define | RTC_ADJUST_ISR(ns, p, offset) int32_t rtc_adjustISR(struct rtc *p, struct timespec *offset) |
|
#define | RTC_GET_TIME_ISR(ns, p, time) int32_t rtc_getTimeISR(struct rtc *p, struct timespec *time) |
|
#define | RTC_SET_TIME_ISR(ns, p, time) int32_t rtc_setTimeISR(struct rtc *p, struct timespec *time) |
|
◆ RTC_ADDDEV
#define RTC_ADDDEV |
( |
|
ns, |
|
|
|
p |
|
) |
| HAL_ADDDEV(rtc, ns, p) |
◆ RTC_ADJUST
#define RTC_ADJUST |
( |
|
ns, |
|
|
|
p, |
|
|
|
offset, |
|
|
|
waitime |
|
) |
| int32_t rtc_adjust(struct rtc *p, struct timespec *offset, TickType_t waittime) |
◆ RTC_ADJUST_ISR
◆ RTC_ALREDY_INITED
#define RTC_ALREDY_INITED 1 |
◆ RTC_DEINIT
#define RTC_DEINIT |
( |
|
ns, |
|
|
|
p |
|
) |
| int32_t rtc_deinit(struct rtc *p) |
◆ RTC_GET_DEV
◆ RTC_GET_TIME
#define RTC_GET_TIME |
( |
|
ns, |
|
|
|
p, |
|
|
|
time, |
|
|
|
waittime |
|
) |
| int32_t rtc_getTime(struct rtc *p, struct timespec *time, TickType_t waittime) |
◆ RTC_GET_TIME_ISR
◆ RTC_INIT
#define RTC_INIT |
( |
|
ns, |
|
|
|
index |
|
) |
| struct rtc *rtc_init(uint32_t index) |
◆ RTC_INIT_DEV
#define RTC_INIT_DEV |
( |
|
ns | ) |
|
◆ rtc_lock
#define rtc_lock |
( |
|
u, |
|
|
|
w, |
|
|
|
e |
|
) |
| |
◆ RTC_OPS
◆ RTC_SET_TIME
#define RTC_SET_TIME |
( |
|
ns, |
|
|
|
p, |
|
|
|
time, |
|
|
|
waittime |
|
) |
| int32_t rtc_setTime(struct rtc *p, struct timespec *time, TickType_t waittime) |
◆ RTC_SET_TIME_ISR
◆ rtc_unlock
#define rtc_unlock |
( |
|
u, |
|
|
|
e |
|
) |
| |
◆ HAL_DEFINE_GLOBAL_ARRAY()
HAL_DEFINE_GLOBAL_ARRAY |
( |
rtc |
| ) |
|
◆ rtc_genericInit()
int32_t rtc_genericInit |
( |
struct rtc * |
rtc | ) |
|