Skip to content

Commit

Permalink
Add debug breakpoint helper
Browse files Browse the repository at this point in the history
  • Loading branch information
danngreen committed Oct 7, 2024
1 parent bb8e147 commit ee4f657
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions firmware/src/medium/debug_raw.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,5 @@ static inline void DebugPin0Low() {
volatile uint32_t *GPIOB_BSRR = (volatile uint32_t *)(0x50003018);
*GPIOB_BSRR = (1 << (10 + 16));
}

#define HARDWARE_BKPT() asm volatile("bkpt")

0 comments on commit ee4f657

Please sign in to comment.