Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

28 rindas
918B

  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