ChibiOS/HAL
6.1.0
|
Generic System Tick Driver. More...
Generic System Tick Driver.
This module implements a system tick timer in order to support the underlying operating system.
Macro Functions | |
#define | stGetCounter() st_lld_get_counter() |
Returns the time counter value. More... | |
#define | stIsAlarmActive() st_lld_is_alarm_active() |
Determines if the alarm is active. More... | |
Functions | |
void | stInit (void) |
ST Driver initialization. More... | |
void | stStartAlarm (systime_t abstime) |
Starts the alarm. More... | |
void | stStopAlarm (void) |
Stops the alarm interrupt. More... | |
void | stSetAlarm (systime_t abstime) |
Sets the alarm time. More... | |
systime_t | stGetAlarm (void) |
Returns the current alarm time. More... | |
void | st_lld_init (void) |
Low level ST driver initialization. More... | |
static systime_t | st_lld_get_counter (void) |
Returns the time counter value. More... | |
static void | st_lld_start_alarm (systime_t abstime) |
Starts the alarm. More... | |
static void | st_lld_stop_alarm (void) |
Stops the alarm interrupt. More... | |
static void | st_lld_set_alarm (systime_t abstime) |
Sets the alarm time. More... | |
static systime_t | st_lld_get_alarm (void) |
Returns the current alarm time. More... | |
static bool | st_lld_is_alarm_active (void) |
Determines if the alarm is active. More... | |
#define stGetCounter | ( | ) | st_lld_get_counter() |
Returns the time counter value.
#define stIsAlarmActive | ( | ) | st_lld_is_alarm_active() |
Determines if the alarm is active.
false | if the alarm is not active. |
true | is the alarm is active |
Definition at line 76 of file hal_st.h.
Referenced by stGetAlarm(), stSetAlarm(), and stStartAlarm().
void stInit | ( | void | ) |
ST Driver initialization.
halInit()
, there is no need to explicitly initialize the driver.Definition at line 60 of file hal_st.c.
References st_lld_init().
Referenced by halInit().
void stStartAlarm | ( | systime_t | abstime | ) |
Starts the alarm.
[in] | abstime | the time to be set for the first alarm |
Definition at line 76 of file hal_st.c.
References osalDbgAssert, st_lld_start_alarm(), and stIsAlarmActive.
void stStopAlarm | ( | void | ) |
Stops the alarm interrupt.
Definition at line 90 of file hal_st.c.
References st_lld_stop_alarm().
void stSetAlarm | ( | systime_t | abstime | ) |
Sets the alarm time.
[in] | abstime | the time to be set for the next alarm |
Definition at line 104 of file hal_st.c.
References osalDbgAssert, st_lld_set_alarm(), and stIsAlarmActive.
systime_t stGetAlarm | ( | void | ) |
Returns the current alarm time.
Definition at line 120 of file hal_st.c.
References osalDbgAssert, st_lld_get_alarm(), and stIsAlarmActive.
void st_lld_init | ( | void | ) |
Low level ST driver initialization.
Definition at line 62 of file hal_st_lld.c.
Referenced by stInit().
|
inlinestatic |
Returns the time counter value.
Definition at line 73 of file hal_st_lld.h.
|
inlinestatic |
Starts the alarm.
[in] | abstime | the time to be set for the first alarm |
Definition at line 87 of file hal_st_lld.h.
Referenced by stStartAlarm().
|
inlinestatic |
Stops the alarm interrupt.
Definition at line 97 of file hal_st_lld.h.
Referenced by stStopAlarm().
|
inlinestatic |
Sets the alarm time.
[in] | abstime | the time to be set for the next alarm |
Definition at line 108 of file hal_st_lld.h.
Referenced by stSetAlarm().
|
inlinestatic |
Returns the current alarm time.
Definition at line 120 of file hal_st_lld.h.
Referenced by stGetAlarm().
|
inlinestatic |
Determines if the alarm is active.
false | if the alarm is not active. |
true | is the alarm is active |
Definition at line 134 of file hal_st_lld.h.