ch552: Misc. fixes and cleanup

- Move copying of TKEYCTRL data from UartRxBuf to TkeyCtrlRxBuf to align
  with previous code.

- Remove obsolete UartRxBufOverflow variable.

- Add missing Endpoint4 handling for USB bus reset.

- Fix more robust uart_byte_count() calculation.

- Fix baudrate fast mode calculation to get rid of compiler warning.

- Fix assignment of bUD_PD_DIS to UDEV_CTRL.

- Cleanup comments.
This commit is contained in:
Jonas Thörnblad 2025-02-25 14:40:26 +01:00
parent 0b75d25431
commit 46ef63ee2d
No known key found for this signature in database
GPG key ID: 2D318AD00A326F95
3 changed files with 59 additions and 64 deletions

View file

@ -254,13 +254,13 @@ void gpio_init_p1_5_out()
// 1 = Pull-up resistor enabled
}
// Set p1.5 high
// Set pin 1.5 high
void gpio_p1_5_set(void)
{
P1 |= 0x20; // p1.4
P1 |= 0x20;
}
// Set p1.5 low
// Set pin 1.5 low
void gpio_p1_5_unset(void)
{
P1 &= ~0x20;