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

View File

@ -5,6 +5,7 @@
#include <logger.h>
#include <mbusComm.h>
#include <PontCoopScheduler.h>
#include <utils.h>
#define HIGH GPIO_PIN_SET
#define LOW GPIO_PIN_RESET
@ -127,8 +128,7 @@ static void eepromHourlyUpdateDeviceStats(void *handle) {
// active waiting, use only during initialization!
static void eepromActiveDelay(uint8_t delay_ms) {
uint32_t startTime = HAL_GetTick();
while (startTime + delay_ms > HAL_GetTick());
activeDelay(delay_ms);
}
void eepromInit() {