feat: Include watchdog register
Also shorten error messages
This commit is contained in:
Родитель
b8684d8370
Коммит
53de6b5c8d
2
jacdac-c
2
jacdac-c
|
@ -1 +1 @@
|
|||
Subproject commit 315e7eb95d44f6685ffabfe7fb4e37a36f79c042
|
||||
Subproject commit 4d17c9bdf347956e3edc81a7f3a029f5d758068c
|
|
@ -345,7 +345,7 @@ static void init_lookup(void) {
|
|||
|
||||
// this is only enabled for error events
|
||||
void IRQHandler(void) {
|
||||
DMESG("SPI handler!");
|
||||
ERROR("SPI");
|
||||
}
|
||||
|
||||
void DMA_Handler(void) {
|
||||
|
|
|
@ -211,7 +211,7 @@ void rtc_init() {
|
|||
|
||||
int tmp = US_TO_TICKS(RTC_SECOND_IN_US);
|
||||
uint32_t h_ms = US_TO_TICKS(100000);
|
||||
DMESG("rtc: 100ms = %d ticks; ctx->presc=%d", h_ms, tmp);
|
||||
DMESG("rtc: 100ms=%d ticks; presc=%d", h_ms, tmp);
|
||||
// we're expecting around 4000, but there's large drift possible
|
||||
if (!(3000 <= h_ms && h_ms <= 5000))
|
||||
jd_panic();
|
||||
|
|
|
@ -75,10 +75,10 @@ void DMA_Handler(void) {
|
|||
uart_disable();
|
||||
if (isr & DMA_ISR_TCIF5) {
|
||||
// overrun?
|
||||
DMESG("USARTx RX OK, but how?!");
|
||||
// DMESG("USARTx RX OK, but how?!");
|
||||
jd_rx_completed(-1);
|
||||
} else {
|
||||
DMESG("USARTx RX Error");
|
||||
// DMESG("USARTx RX Error");
|
||||
jd_rx_completed(-2);
|
||||
}
|
||||
}
|
||||
|
@ -105,7 +105,7 @@ void DMA_Handler(void) {
|
|||
;
|
||||
#endif
|
||||
} else {
|
||||
DMESG("USARTx TX Error");
|
||||
ERROR("TX err");
|
||||
errCode = -1;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче