22 lines
571 B
C++
22 lines
571 B
C++
|
#include "print.h"
|
||
|
#include "debug.h"
|
||
|
//////////////////////////////////////////////////////
|
||
|
/* Debug přes jednodrátové rozhraní WCH Link.
|
||
|
* Je to pomalé a divné, ale funguje to. Sice nevím jak,
|
||
|
* ale je to celkem jedno. Fakticky je to kompletně
|
||
|
* převzato z https://github.com/cnlohr/ch32v003fun.
|
||
|
* */
|
||
|
//////////////////////////////////////////////////////
|
||
|
static int n = 0;
|
||
|
int main () {
|
||
|
Print cout (DEC);
|
||
|
Debug debug;
|
||
|
cout += debug;
|
||
|
cout << "Begin tests ... \n";
|
||
|
for (;;) {
|
||
|
cout << "pass: " << n << "\n";
|
||
|
n += 1u;
|
||
|
}
|
||
|
return 0;
|
||
|
}
|