Jim Cooper
/
simple_debug
Simple sample of using a debug class and macros.
main.cpp@0:885c11431d59, 2015-08-30 (annotated)
- Committer:
- jimcooper
- Date:
- Sun Aug 30 00:05:14 2015 +0000
- Revision:
- 0:885c11431d59
Simple example of using a debug object and macros.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
jimcooper | 0:885c11431d59 | 1 | #include "mbed.h" |
jimcooper | 0:885c11431d59 | 2 | #include "debug.h" |
jimcooper | 0:885c11431d59 | 3 | |
jimcooper | 0:885c11431d59 | 4 | |
jimcooper | 0:885c11431d59 | 5 | |
jimcooper | 0:885c11431d59 | 6 | int main() |
jimcooper | 0:885c11431d59 | 7 | { |
jimcooper | 0:885c11431d59 | 8 | Serial g_console(USBTX, USBRX); |
jimcooper | 0:885c11431d59 | 9 | |
jimcooper | 0:885c11431d59 | 10 | g_console.printf("I Rule!!\n\n"); |
jimcooper | 0:885c11431d59 | 11 | } |
jimcooper | 0:885c11431d59 | 12 |