Debugging tool for mbed enabled microcontrollers, especially for NUCLEO-F303RE and STM32F042F6P6.
Diff: Debug.h
- Revision:
- 2:478ba8b83e3f
- Parent:
- 1:dbb9fcc20d07
- Child:
- 3:3d7837ae4a37
--- a/Debug.h Mon May 06 00:29:00 2019 +0000 +++ b/Debug.h Mon May 06 00:32:53 2019 +0000 @@ -54,6 +54,7 @@ * while(1){ * pc.breakpoint(__LINE__,name(var),var); * pc.printf("insert character\n\r"); + * while (!pc.readable()){} * character = pc.getc(); * pc.printf("you have inserted %c\n\r",character); * var++; @@ -131,6 +132,10 @@ * @returns character written as an unsigned char cast to an int */ int getc(); + + bool readable(); + bool writable(); + private: int break_line[3]; //store number of lines of three previous breakpoints char var[3][50]; //store variables of three previous breakpoints @@ -294,6 +299,7 @@ int getc(); bool readable(); + bool writable(); protected: // objects: