GlobLib
HAL and API libraries for MCUs and hardware.
stm32f103cb_rtc.h File Reference

Header file for stm32f103cb real time clock (RTC) More...

#include "stm32f103cb_debug.h"
#include "stm32f103cb_systick.h"
#include <libopencm3/stm32/rtc.h>
#include <stdint.h>

Go to the source code of this file.

Functions

mcu_error RTC_setup (uint32_t resolution)
 Initialize the Real time clock. More...
 
mcu_error RTC_calibrate (uint32_t resolution)
 Calibrate the RTC to a given resolution in milliseconds. More...
 
mcu_error RTC_setPrescaler (uint32_t resolution)
 Set the raw prescaler value of the RTC. More...
 
uint8_t RTC_isAlarmEnabled (void)
 Determine if the alarm interrupt is enabled. More...
 
uint8_t RTC_isOverflowEnabled (void)
 Determine if the overflow interrupt is enabled. More...
 
uint8_t RTC_isResolutionEnabled (void)
 Determine if the resolution (second) interrupt is enabled. More...
 
uint32_t RTC_getCount (void)
 Get the current count value. More...
 
void RTC_setCount (uint32_t count)
 Set the current count value. More...
 
void RTC_enableResolutionISR (void(*res_isr)(void))
 Enables the resolution ISR. More...
 
void RTC_enableAlarmISR (uint32_t count, void(*al_isr)(void))
 Enables the alarm ISR. More...
 
void RTC_enableOverflowISR (void(*ov_isr)(void))
 Enables the overflow ISR. More...
 
void RTC_disableResolutionISR (void)
 disables the resolution ISR.
 
void RTC_disableAlarmISR (void)
 disables the alarm ISR.
 
void RTC_disableOverflowISR (void)
 disables the overflow ISR.
 
void RTC_clockEnable (void)
 Enable the RTC clock. More...
 

Detailed Description

Header file for stm32f103cb real time clock (RTC)

Definition in file stm32f103cb_rtc.h.