wiznet stuff

This commit is contained in:
2020-11-08 15:56:14 +01:00
parent d033412bdf
commit 65690775fb
8 changed files with 73 additions and 10 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());
}