add further boilerplate, missing functions for usb console

This commit is contained in:
true
2024-11-06 22:19:03 -08:00
parent 7beb6b8ac5
commit 5cd5005ae3
5 changed files with 21 additions and 14 deletions

View File

@@ -345,3 +345,14 @@ void CDC_DataRx_Process( void )
}
}
}
__attribute__((interrupt("WCH-Interrupt-fast")))
void TIM4_IRQHandler(void)
{
// uart timeout counts
Cdc.Rx_TimeOut++;
Cdc.USB_Up_TimeOut++;
// clear status
TIM4->INTFR = (uint16_t)~TIM_IT_Update;
}