IR_CMD_Handler

This commit is contained in:
2024-08-25 20:27:17 +03:00
parent 55e8424f78
commit 148d748c20
17 changed files with 853 additions and 469 deletions

23
Core/Inc/SimpleTimer.h Normal file
View File

@ -0,0 +1,23 @@
/*
* SimpleTimer.h
*
* Created on: Aug 24, 2024
* Author: DashyFox
*/
#ifndef INC_SIMPLETIMER_H_
#define INC_SIMPLETIMER_H_
#include "stm32f1xx_hal.h"
#define forTimer(name, time) \
static uint32_t name##_previousMillis = 0; \
if (millis() - name##_previousMillis >= time)
#define resetForTimer(name) \
name##_previousMillis = millis();
uint32_t millis();
#endif /* INC_SIMPLETIMER_H_ */