PlatformIO package of the Teensy core framework compatible with GCC 10 & C++20
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #ifndef MsTimer2_h
- #define MsTimer2_h
-
- #ifdef __AVR__
- #include <avr/interrupt.h>
- #elif defined(__arm__) && defined(TEENSYDUINO)
- #include <Arduino.h>
- #else
- #error MsTimer2 library only works on AVR architecture
- #endif
-
- namespace MsTimer2 {
- extern unsigned long msecs;
- extern void (*func)();
- extern volatile unsigned long count;
- extern volatile char overflowing;
- extern volatile unsigned int tcnt2;
-
- void set(unsigned long ms, void (*f)());
- void start();
- void stop();
- void _overflow();
- }
-
- #endif
|