no-OS
maxim_rtc.h
Go to the documentation of this file.
1 /***************************************************************************/
40 #ifndef MAXIM_RTC_H_
41 #define MAXIM_RTC_H_
42 
43 #include <stdint.h>
44 #include "no_os_rtc.h"
45 
46 #define MAX_RTC_MAX_VALUE (0xFFFFF)
47 
48 #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:160
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:72
device
Definition: ad9361_util.h:75
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:60
maxim_rtc.h
Header file of RTC driver.
no_os_rtc_desc::extra
void * extra
Definition: no_os_rtc.h:65
no_os_rtc_desc::load
uint32_t load
Definition: no_os_rtc.h:63
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:193
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:147
no_os_rtc_desc
Structure holding RTC descriptor.
Definition: no_os_rtc.h:57
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:67
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:133
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:75
maxim_rtc.h
Header file of RTC driver.
init_param
struct ad7616_init_param init_param
Definition: ad7616_sdz.c:119
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:105
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:120
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:59
no_os_rtc_desc::freq
uint32_t freq
Definition: no_os_rtc.h:61