Search found 4 matches
- Tue Apr 07, 2020 9:17 am
- Forum: ESP32 Arduino
- Topic: interrupt timer not work with library
- Replies: 5
- Views: 7891
SOLVED: interrupt timer not work with library
SOLVED: i manage to not use class and everithing work fine. Thanks
- Thu Apr 02, 2020 2:34 pm
- Forum: ESP32 Arduino
- Topic: interrupt timer not work with library
- Replies: 5
- Views: 7891
Re: interrupt timer not work with library
Thanks for the answer,
could you please provide an example ?
could you please provide an example ?
- Thu Apr 02, 2020 1:18 pm
- Forum: ESP32 Arduino
- Topic: interrupt timer not work with library
- Replies: 5
- Views: 7891
Re: interrupt timer not work with library
Of course! for be more precise i posted also the: .h file #ifndef int_lib #define int_lib #include "Arduino.h" class InterruptLibrary { public: void interrupt_setup(); void IRAM_ATTR onTimer0(); hw_timer_t * timer0 = NULL; portMUX_TYPE timerMux0 = portMUX_INITIALIZER_UNLOCKED; }; #endif .cpp file #i...
- Wed Apr 01, 2020 9:59 pm
- Forum: ESP32 Arduino
- Topic: interrupt timer not work with library
- Replies: 5
- Views: 7891
interrupt timer not work with library
Hello everyone, I want to put this code, that i used for generate a precise interrupt into a library: hw_timer_t * timer0 = NULL; portMUX_TYPE timerMux0 = portMUX_INITIALIZER_UNLOCKED; void IRAM_ATTR onTimer0(){ portENTER_CRITICAL_ISR(&timerMux0); //Code portEXIT_CRITICAL_ISR(&timerMux0); } void set...