Stacey Sheldon
f0e0c2e79e
console: add debug console via USB CDC/VCP interface
...
The USB VCP Port has a new DebugConsole setting that
routes all output destined for PIOS_COM_DEBUG to the
emulated serial port.
To enable this in your build, you'll have to build like:
- make fw_coptercontrol_clean
- make fw_coptercontrol ENABLE_DEBUG_CONSOLE=YES
You can then output formatted text to the console
like this:
#if defined(PIOS_INCLUDE_DEBUG_CONSOLE)
PIOS_COM_SendFormattedString(PIOS_COM_DEBUG,
"foo is %u\r\n",
foo);
#endif /* PIOS_INCLUDE_DEBUG_CONSOLE */
Please ensure that all of your debug output is
wrapped with these macros so that your debug
code doesn't bloat the firmware image.
2012-10-11 00:51:09 -04:00
..
2012-05-03 17:00:41 -05:00
2012-04-21 11:59:14 -07:00
2012-04-21 11:59:14 -07:00
2012-04-21 11:59:14 -07:00
2012-06-04 15:38:57 -07:00
2012-05-03 17:00:41 -05:00
2012-02-08 09:42:10 -06:00
2012-05-03 17:00:41 -05:00
2012-04-21 11:59:14 -07:00
2012-04-21 11:59:14 -07:00
2012-07-09 15:21:20 +01:00
2012-04-21 11:59:14 -07:00
2012-04-21 11:59:14 -07:00
2012-04-21 11:59:14 -07:00
2012-09-17 17:08:15 +01:00
2012-04-21 11:59:14 -07:00
2012-04-21 11:59:14 -07:00
2012-04-21 11:59:14 -07:00
2012-04-21 11:59:14 -07:00
2012-04-21 11:59:14 -07:00
2012-09-10 10:52:05 -05:00
2011-01-22 17:38:43 +00:00
2012-06-09 10:54:07 -07:00
2012-04-21 11:59:14 -07:00
2011-02-12 22:19:38 +00:00
2011-01-22 17:38:43 +00:00
2012-08-22 05:11:28 +10:00
2011-02-27 00:38:59 +00:00
2012-07-19 20:48:35 +02:00
2012-05-05 09:40:44 -07:00
2012-07-09 15:21:20 +01:00
2012-05-03 17:00:41 -05:00
2012-07-10 23:06:42 +02:00
2012-10-11 00:51:09 -04:00
2011-02-27 00:38:59 +00:00
2012-07-09 15:21:20 +01:00
2012-04-21 11:59:14 -07:00
2012-09-04 10:43:04 -05:00
2012-09-08 14:41:55 +09:30
2012-03-27 10:06:27 -05:00
2012-05-05 09:40:44 -07:00
2012-06-02 10:23:27 -05:00
2012-02-07 09:13:26 -06:00
2012-06-01 19:14:50 +01:00
2012-06-30 10:06:28 -07:00
2012-06-04 21:18:13 -07:00
2012-05-05 09:40:44 -07:00
2012-05-05 09:40:44 -07:00
2011-01-22 17:38:43 +00:00
2012-04-21 11:59:14 -07:00
2012-09-24 22:47:18 +01:00
2012-08-24 23:06:41 -05:00
2012-05-03 17:00:41 -05:00
2012-07-09 15:21:20 +01:00
2012-08-03 09:37:45 -05:00
2012-09-11 12:29:38 -05:00
2012-07-31 11:07:07 +09:30
2012-07-07 15:42:31 -04:00
2012-05-05 09:40:44 -07:00
2012-09-27 13:49:34 -05:00
2012-05-28 12:48:55 +03:00
2012-05-05 09:40:44 -07:00
2012-05-05 09:40:44 -07:00
2011-01-22 17:38:43 +00:00
2012-06-01 19:14:50 +01:00
2012-06-01 19:14:50 +01:00