mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-07-26 08:25:31 -04:00
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:
parent
0b75d25431
commit
46ef63ee2d
3 changed files with 59 additions and 64 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue