ChibiOS 21.11.4
hal_st.c File Reference

ST Driver code. More...

#include "hal.h"

Go to the source code of this file.

Functions

void stInit (void)
 ST Driver initialization.
void stBind (void)
 Enables an alarm interrupt on the invoking core.
systime_t stGetCounter (void)
 Returns the time counter value.
void stStartAlarm (systime_t abstime)
 Starts the alarm zero.
void stStopAlarm (void)
 Stops the alarm zero interrupt.
void stSetAlarm (systime_t abstime)
 Sets the alarm zero time.
systime_t stGetAlarm (void)
 Returns the alarm zero current time.
bool stIsAlarmActive (void)
 Determines if the alarm zero is active.
void stSetCallback (unsigned alarm, st_callback_t cb)
 Associates a callback to an alarm.
void stBindAlarmN (unsigned alarm)
 Enables an alarm interrupt on the invoking core.
void stStartAlarmN (unsigned alarm, systime_t abstime)
 Starts an additional alarm.
void stStopAlarmN (unsigned alarm)
 Stops an additional alarm.
void stSetAlarmN (unsigned alarm, systime_t abstime)
 Sets an additional alarm time.
systime_t stGetAlarmN (unsigned alarm)
 Returns an additional alarm current time.
bool stIsAlarmActiveN (unsigned alarm)
 Determines if the specified alarm is active.

Variables

st_callback_t st_callbacks [ST_LLD_NUM_ALARMS]
 Callback pointers for each alarm.

Detailed Description

ST Driver code.

Definition in file hal_st.c.