add (very simple) example for dbg.h
This commit is contained in:
12
samples/debug.c
Normal file
12
samples/debug.c
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user