mirror of https://github.com/rusefi/bldc.git
Added sleep_ticks to C interface
This commit is contained in:
parent
d0ed43709c
commit
28bb9ceb70
|
@ -620,6 +620,7 @@ typedef struct {
|
|||
// Use ts_to_age_s to get the age of a timestamp in
|
||||
// seconds. ts_to_age_s should hanlde overflows.
|
||||
systime_t (*system_time_ticks)(void);
|
||||
void (*sleep_ticks)(systime_t ticks);
|
||||
|
||||
// FOC Audio
|
||||
bool (*foc_beep)(float freq, float time, float voltage);
|
||||
|
|
|
@ -934,6 +934,7 @@ lbm_value ext_load_native_lib(lbm_value *args, lbm_uint argn) {
|
|||
|
||||
// System time
|
||||
cif.cif.system_time_ticks = chVTGetSystemTimeX;
|
||||
cif.cif.sleep_ticks = chThdSleep;
|
||||
|
||||
// FOC Audio
|
||||
cif.cif.foc_beep = mcpwm_foc_beep;
|
||||
|
|
|
@ -115,7 +115,6 @@ typedef struct {
|
|||
lbm_uint pin_hw_2;
|
||||
#endif
|
||||
|
||||
|
||||
// Settings
|
||||
lbm_uint l_current_min;
|
||||
lbm_uint l_current_max;
|
||||
|
|
Loading…
Reference in New Issue