Go to the documentation of this file.
27 #if (OSAL_ST_MODE != OSAL_ST_MODE_NONE) || defined(__DOXYGEN__)
45 #if (ST_LLD_NUM_ALARMS > 1) || defined(__DOXYGEN__)
46 st_callback_t st_callbacks[ST_LLD_NUM_ALARMS - 1];
65 #if ST_LLD_NUM_ALARMS > 1
68 for (i = 0U; i < (unsigned)ST_LLD_NUM_ALARMS - 1U; i++) {
69 st_callbacks[i] = NULL;
75 #if (OSAL_ST_MODE == OSAL_ST_MODE_FREERUNNING) || defined(__DOXYGEN__)
166 #if (ST_LLD_NUM_ALARMS > 1) || defined(__DOXYGEN__)
179 return st_lld_is_alarm_active_n(n);
197 osalDbgCheck((alarm > 0U) && (alarm < (
unsigned)ST_LLD_NUM_ALARMS));
200 st_callbacks[alarm - 1U] = cb;
201 st_lld_start_alarm_n(alarm, abstime);
215 osalDbgCheck((alarm > 0U) && (alarm < (
unsigned)ST_LLD_NUM_ALARMS));
217 st_callbacks[alarm - 1U] = NULL;
218 st_lld_stop_alarm_n(alarm);
233 osalDbgCheck((alarm > 0U) && (alarm < (
unsigned)ST_LLD_NUM_ALARMS));
236 st_lld_set_alarm_n(alarm, abstime);
251 osalDbgCheck((alarm > 0U) && (alarm < (
unsigned)ST_LLD_NUM_ALARMS));
254 return st_lld_get_alarm_n(alarm);
static void st_lld_start_alarm(systime_t abstime)
Starts the alarm.
void stStopAlarmN(unsigned alarm)
Stops an additional alarm.
systime_t stGetCounter(void)
Returns the time counter value.
void stSetAlarm(systime_t abstime)
Sets the alarm zero time.
systime_t stGetAlarmN(unsigned alarm)
Returns an additional alarm current time.
void stInit(void)
ST Driver initialization.
static systime_t st_lld_get_alarm(void)
Returns the current alarm time.
static systime_t st_lld_get_counter(void)
Returns the time counter value.
bool stIsAlarmActiveN(unsigned alarm)
Determines if the specified alarm is active.
static void st_lld_stop_alarm(void)
Stops the alarm interrupt.
void st_lld_init(void)
Low level ST driver initialization.
uint32_t systime_t
Type of system time counter.
void stStartAlarmN(unsigned alarm, systime_t abstime, st_callback_t cb)
Starts an additional alarm.
static void st_lld_set_alarm(systime_t abstime)
Sets the alarm time.
void stSetAlarmN(unsigned alarm, systime_t abstime)
Sets an additional alarm time.
static bool st_lld_is_alarm_active(void)
Determines if the alarm is active.
bool stIsAlarmActive(void)
Determines if the alarm zero is active.
#define osalDbgCheck(c)
Function parameters check.
void stStopAlarm(void)
Stops the alarm zero interrupt.
systime_t stGetAlarm(void)
Returns the alarm zero current time.
void stStartAlarm(systime_t abstime)
Starts the alarm zero.
#define osalDbgAssert(c, remark)
Condition assertion.