Teensy 4.1 core updated for C++20
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

123456789101112131415161718192021222324252627
  1. // uncommenting the line below will enable the debug printf statements in cores\teensy4
  2. // by default it will print to the Serial4 TX pin at baud rate of 115200
  3. //#define PRINT_DEBUG_STUFF
  4. // uncommenting the line below will switch to doing outputs to USB Serial or SEREMU instead of Serial4
  5. // However some of the earlier print statements that happen before USB is initialized will be lost
  6. // if you need those outputs, better to use Serial 4.
  7. //#define PRINT_DEBUG_USING_USB // if both defined will try to direct stuff out USB Serial or SEREMU
  8. #ifdef PRINT_DEBUG_STUFF
  9. // defining printf this way breaks things like Serial.printf() in C++ :(
  10. #define printf(...) printf_debug(__VA_ARGS__)
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. void printf_debug_init(void);
  15. void printf_debug(const char *format, ...);
  16. #ifdef __cplusplus
  17. }
  18. #endif
  19. #else
  20. #define printf_init()
  21. #define printf(...)
  22. #define printf_debug_init()
  23. #endif