Closed msquirogac closed 4 years ago
I've created a PR, you can test it with this code:
#include <avr/io.h>
#include "avr_debugger.h"
int main(void)
{
dbg_start();
DDRB |= _BV(5);
PORTB ^= _BV(5);
PORTB ^= _BV(5);
while(1)
{
dbg_breakpoint();
PORTB ^= _BV(5);
}
}
Thanks! I tested it and it works great! It's a good idea to have the avr_debugger header file.
These macros have the effect of removing, at compiling time, all the calls to the debug related functions when the firmware is built for release. This allows a fast and seamless transition from debug to release and has no negative effect over the system performance of firmware size. Fixes #15