diff options
Diffstat (limited to 'src/stm32l4xx_it.c')
-rw-r--r-- | src/stm32l4xx_it.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/stm32l4xx_it.c b/src/stm32l4xx_it.c index f643db3..e54a192 100644 --- a/src/stm32l4xx_it.c +++ b/src/stm32l4xx_it.c @@ -12,12 +12,12 @@ void serial_puts(const char *s) void perror(const char *s)
{
- extern task_t *current;
+ //extern task_t *current;
serial_puts(s);
- char buf[200];
- snprintf(buf, 200, "xPSR: %x\r\nPC: %x\r\nLR: %x\r\n", current->sp[0],
- current->sp[1], current->sp[2]);
- serial_puts(buf);
+ //char buf[200];
+ //snprintf(buf, 200, "xPSR: %x\r\nPC: %x\r\nLR: %x\r\n", current->sp[0],
+ // current->sp[1], current->sp[2]);
+ //serial_puts(buf);
}
__attribute__ ((naked))
@@ -27,7 +27,7 @@ __attribute__ ((naked)) void HardFault_Handler(void)
{
GPIOA->BSRR |= (1 << 5);
- //perror("Hard Fault!");
+ perror("Hard Fault!");
while (1);
}
|