no-OS
maxim_rtc.h
Go to the documentation of this file.
1 /***************************************************************************/
34 #ifndef MAXIM_RTC_H_
35 #define MAXIM_RTC_H_
36 
37 #include <stdint.h>
38 #include "no_os_rtc.h"
39 
40 #define MAX_RTC_MAX_VALUE (0xFFFFF)
41 
42 #endif
maxim_rtc.h
Header file of RTC driver.
no_os_alloc.h
no_os_rtc_set_cnt
int32_t no_os_rtc_set_cnt(struct no_os_rtc_desc *dev, uint32_t tmr_cnt)
Set the current count for the real time clock.
Definition: maxim_rtc.c:154
no_os_irq.h
Header file of IRQ interface.
maxim_rtc.h
Header file of RTC driver.
no_os_rtc_init_param
Structure holding RTC initialization parameters.
Definition: no_os_rtc.h:66
device
Definition: ad9361_util.h:69
no_os_calloc
void * no_os_calloc(size_t nitems, size_t size)
Allocate memory and return a pointer to it, set memory to 0.
Definition: chibios_alloc.c:54
maxim_rtc.h
Header file of RTC driver.
no_os_rtc_desc::extra
void * extra
Definition: no_os_rtc.h:59
no_os_rtc_desc::load
uint32_t load
Definition: no_os_rtc.h:57
no_os_rtc_set_irq_time
int32_t no_os_rtc_set_irq_time(struct no_os_rtc_desc *dev, uint32_t irq_time)
Set the current count for the real time clock.
Definition: maxim_rtc.c:187
no_os_rtc_get_cnt
int32_t no_os_rtc_get_cnt(struct no_os_rtc_desc *dev, uint32_t *tmr_cnt)
Get the current count for the real time clock.
Definition: maxim_rtc.c:141
no_os_rtc_desc
Structure holding RTC descriptor.
Definition: no_os_rtc.h:51
no_os_rtc_init
int32_t no_os_rtc_init(struct no_os_rtc_desc **device, struct no_os_rtc_init_param *init_param)
Initialize the RTC peripheral.
Definition: maxim_rtc.c:61
maxim_rtc.h
Header file of RTC driver.
no_os_rtc.h
Header of the RTC interface.
no_os_rtc_stop
int32_t no_os_rtc_stop(struct no_os_rtc_desc *dev)
Stop the real time clock.
Definition: maxim_rtc.c:127
no_os_free
void no_os_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:69
maxim_rtc.h
Header file of RTC driver.
init_param
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:113
maxim_rtc.h
Header file of RTC driver.
no_os_rtc_remove
int32_t no_os_rtc_remove(struct no_os_rtc_desc *dev)
Free the resources allocated by no_os_rtc_init().
Definition: maxim_rtc.c:99
no_os_rtc_start
int32_t no_os_rtc_start(struct no_os_rtc_desc *dev)
Start the real time clock.
Definition: maxim_rtc.c:114
no_os_util.h
Header file of utility functions.
maxim_rtc.h
Header file of RTC driver.
errno.h
Error macro definition for ARM Compiler.
no_os_rtc_desc::id
uint8_t id
Definition: no_os_rtc.h:53
no_os_rtc_desc::freq
uint32_t freq
Definition: no_os_rtc.h:55