This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ESP32-S3 Microsecond Counters: 32/64-bit, read/write | |
| // 4 full 64bit usec counters (read/write) and one 32 bit freerunning counter | |
| // | |
| // Two ways to get a microsecond timestamp: | |
| // | |
| // 1. Very fast, but returns only the lower 32 bits | |
| // 2. Full 64-bit timestamp, slightly slower | |
| // | |
| // For simplicity, this example uses the Arduino framework. | |
| // |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Example for ESP32-S3: two ways to read a microsecond timestamp. | |
| // | |
| // 1. Very fast, but returns only the lower 32 bits | |
| // 2. Full 64-bit timestamp, slightly slower | |
| // | |
| // For simplicity, this example uses the Arduino framework. | |
| // | |
| // vvb333007@gmail.com | |
| // | |
| // |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Intercept DebugInterrupt and call a handler written in C (Xtensa, windowed ABI) | |
| // | |
| // Interrupt handlers for levels 4, 5, 6 and 7 must be written in assembly. | |
| // This is because the system does not invoke them like a regular C function. | |
| // This file contains an assembly adapter that calls regular C code. | |
| // | |
| #ifdef __XTENSA__ | |
| #include <xtensa/coreasm.h> |