Programmable Clock with RTOS 0.0.1
Implementaiton of a programmable clock using RTOS with STM32GO microcontroller.
Loading...
Searching...
No Matches
app_clock.h
Go to the documentation of this file.
1
9
10#ifndef APP_CLOCK_H
11#define APP_CLOCK_H
12
13
17#ifdef UTEST
18#define STATIC
19#else
20#define STATIC static
21#endif
23
24#define TOTAL_CLOCK_STATES 4U
25
29#define RTC_INIT_PASYNC 127
30#define RTC_INIT_PSYNC 255
31#define RTC_INITIAL_HOUR 0x12
32#define RTC_INITIAL_MIN 0x00
33#define RTC_INITIAL_SEC 0x00
34#define RTC_INITIAL_SSEC 0x00
35#define RTC_INITIAL_MDAY 0x01
36#define RTC_INITIAL_YEAR 0x00
37#define RTC_INITIAL_YEARH 20
39
40#define TIMER_DISPLAY_ID (void *)(uint32_t)1
41
42#define ALARM_TRIGGERED 1U
43#define ALARM_DEACTIVATED 0U
44
45#define ACTIVE 1U
46#define INACTIVE 0U
47#define TICKS 0u
48
49void Clock_Init( void );
50void Clock_Task( void );
51
52
53#endif
void Clock_Task(void)
Run periodically. It allows to configure the clock.
Definition app_clock.c:105
void Clock_Init(void)
Use once to Initialize the clock.
Definition app_clock.c:62