add (very simple) example for dbg.h

This commit is contained in:
mrdudz
2025-07-11 21:56:34 +02:00
parent e973483cc8
commit 0d30d8b4ae
2 changed files with 23 additions and 0 deletions

12
samples/debug.c Normal file
View File

@@ -0,0 +1,12 @@
#include <dbg.h>
int main(void)
{
/* DbgInit has to be called once, to install the BRK handler */
DbgInit(0);
/* now to break into the debugger, use the BREAK macro */
BREAK();
return 0;
}