This commit is contained in:
2021-01-09 22:01:21 +01:00
commit 4b3e3a3710
38 changed files with 3231 additions and 0 deletions

10
cube/User/Src/utils.c Normal file
View File

@ -0,0 +1,10 @@
#include <utils.h>
#include <main.h>
#include <stdint.h>
// active waiting, use only during initialization!
void activeDelay(uint8_t delay_ms) {
uint32_t startTime = HAL_GetTick();
while (startTime + delay_ms > HAL_GetTick());
}