//#pragma once #ifndef TIMER_SETUP_H #define TIMER_SETUP_H #include #include #include #include extern hw_timer_t * timer; extern volatile SemaphoreHandle_t timerSemaphore; extern portMUX_TYPE timerMux; extern volatile uint32_t isrCounter; extern volatile uint32_t lastIsrAt; void IRAM_ATTR onTimer(); void setupTimer(); #endif