STM32 RTC Scheduler
RTC-based scheduler for ultra-low power applications
|
Go to the documentation of this file.
47 assert_param(period > 0U);
48 assert_param(callback != NULL);
87 uint8_t isScheduleNextJob = 0U;
98 isScheduleNextJob = 1U;
103 isScheduleNextJob = 0U;
109 isScheduleNextJob = 1U;
113 if(isScheduleNextJob != 0U)
116 uint8_t indexOfNextJob = 0;
void SchedulerStop(void)
Stop the scheduler.
Job_t jobs[MAX_NUM_OF_JOBS]
void SchedulerExecutePendingJobs(void)
Execute the pending jobs.
This file contains the RTC-based scheduler definitions, structures and function prototypes.
uint8_t RtcSetAlarmFromEpoch(const uint32_t epoch)
Set an RTC alarm at a given time specified by an epoch.
uint8_t SchedulerAddJob(const uint32_t period, const Callback_t callback)
Add a new job to the scheduler.
void RtcDeactivateAlarm(void)
Deactivate a previously set RTC alarm.
uint32_t RtcGetEpoch(void)
Get the current epoch.
void Scheduler_ProcessRemainingTime(const uint32_t elapsedTime)
This function calculates the remaining time for each job.
void SchedulerProcess(void)
Process the scheduler.
This file contains the RTC-specific function prototypes.
void SchedulerInit(void)
Initialize the scheduler by setting its structure values to zero.