mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-08-11 16:10:20 -04:00
ch552: Raise UART IRQ priority and tune USB polling period
Set UART1 IRQ to high priority to not miss any incoming bytes and tune USB polling period (bInterval).
This commit is contained in:
parent
c0482b7237
commit
524e5b4494
2 changed files with 5 additions and 4 deletions
|
@ -151,6 +151,7 @@ inline void UART1Setup()
|
|||
// Should correct for rounding in SBAUD1 calculation
|
||||
SBAUD1 = 256 - FREQ_SYS/16/UART1_BAUD; // Calculation for Fast mode
|
||||
IE_UART1 = 1; // Enable UART1 interrupt
|
||||
IP_EX = bIP_UART1; // Serial port IRQ has high priority
|
||||
}
|
||||
|
||||
/*******************************************************************************
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue