diff options
Diffstat (limited to 'projects/hsm/hsm.c')
-rw-r--r-- | projects/hsm/hsm.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/projects/hsm/hsm.c b/projects/hsm/hsm.c index f71e2c2..6fcdee4 100644 --- a/projects/hsm/hsm.c +++ b/projects/hsm/hsm.c @@ -117,6 +117,10 @@ void hal_ks_lock(void) { osMutexWait(ks_mutex, osWaitForever); } void hal_ks_unlock(void) { osMutexRelease(ks_mutex); } #endif +/* Sleep for specified number of seconds. + */ +void hal_sleep(const unsigned seconds) { osDelay(seconds * 1000); } + /* A ring buffer for the UART DMA receiver. In theory, it should get at most * 92 characters per 1ms tick, but we're going to up-size it for safety. */ |