Hardware Abstraction Layer for FreeRTOS
rtc_prv.h File Reference
#include <FreeRTOS.h>
#include <semphr.h>
#include <stdint.h>
#include <stdbool.h>
#include <hal.h>
Include dependency graph for rtc_prv.h:

Go to the source code of this file.

Macros

#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)
 

Functions

int32_t rtc_genericInit (struct rtc *rtc)
 
 HAL_DEFINE_GLOBAL_ARRAY (rtc)
 

Macro Definition Documentation

◆ RTC_ADDDEV

#define RTC_ADDDEV (   ns,
 
)    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

#define RTC_ADJUST_ISR (   ns,
  p,
  offset 
)    int32_t rtc_adjustISR(struct rtc *p, struct timespec *offset)

◆ RTC_ALREDY_INITED

#define RTC_ALREDY_INITED   1

◆ RTC_DEINIT

#define RTC_DEINIT (   ns,
 
)    int32_t rtc_deinit(struct rtc *p)

◆ RTC_GET_DEV

#define RTC_GET_DEV (   index)    HAL_GET_DEV(rtc, index)

◆ 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

#define RTC_GET_TIME_ISR (   ns,
  p,
  time 
)    int32_t rtc_getTimeISR(struct rtc *p, struct timespec *time)

◆ 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,
 
)

◆ RTC_OPS

#define RTC_OPS (   ns)

◆ 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

#define RTC_SET_TIME_ISR (   ns,
  p,
  time 
)    int32_t rtc_setTimeISR(struct rtc *p, struct timespec *time)

◆ rtc_unlock

#define rtc_unlock (   u,
 
)

Function Documentation

◆ HAL_DEFINE_GLOBAL_ARRAY()

HAL_DEFINE_GLOBAL_ARRAY ( rtc  )

◆ rtc_genericInit()

int32_t rtc_genericInit ( struct rtc *  rtc)