Naze32 clone with Frysky receiver
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.

main.h 734B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Main / Debug Stuff
  3. */
  4. #ifndef _MAIN_H
  5. #define _MAIN_H
  6. #ifdef DEBUG
  7. #include "serial.h"
  8. //#define DEBUG_UART_MENU
  9. #define debugChar(x) serialWrite(0, x)
  10. #define debugWrite(x) serialWriteString(0, x)
  11. #define debugHex(x) serialWriteHex(0, x)
  12. #define debugUnsigned8(x) serialWriteUnsigned8(0, x)
  13. #define debugUnsigned16(x) serialWriteUnsigned16(0, x)
  14. #define debugUnsigned32(x) serialWriteUnsigned32(0, x)
  15. #define debugUnsigned64(x) serialWriteUnsigned64(0, x)
  16. #ifdef DEBUG_UART_MENU
  17. void uartMenu(void);
  18. #endif
  19. #else // DEBUG
  20. #define debugChar(x)
  21. #define debugWrite(x)
  22. #define debugHex(x)
  23. #define debugUnsigned8(x)
  24. #define debugUnsigned16(x)
  25. #define debugUnsigned32(x)
  26. #define debugUnsigned64(x)
  27. #endif // DEBUG
  28. #endif