Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Crealab.h
- Revision:
- 0:0e577ce96b2f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Crealab.h Sat Feb 08 09:48:46 2020 +0000 @@ -0,0 +1,16 @@ +#include "mbed.h" +#include "CreaBot.h" + +// --- USB Debug Port ----------- + +// #define DEBUG(...) { pc_uart.printf(__VA_ARGS__); bt_uart.printf(__VA_ARGS__);} +#define DEBUG(...) { __disable_irq();bt_uart.printf(__VA_ARGS__); pc_uart.printf(__VA_ARGS__);__enable_irq();} + +//#define DEBUG(...) { pc_uart.printf(__VA_ARGS__); } +//#define DEBUG(...) { bt_uart.printf(__VA_ARGS__); } + +#define CATCH_BUTTON(button, func) button.fall(&func) + +#define CASE(letter, text, commands) case letter: DEBUG("\t%c : %s\n\r", letter,text);if(!flaghelp) {commands;break;}; + +