mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-05-08 00:44:58 -04:00
ch552: Misc. cleanup
- Merge Makefile and Makefile.include into Makefile - Format structure - Remove unused variables, targets etc. - Add missing check if it is ok to send data to the FPGA. - Remove 'baud rate calculator.ods' - Update encode_usb_strings.py to generate strings for CdcCtrlInterfaceDesc, CdcDataInterfaceDesc, FidoHidInterfaceDesc, TkeyCtrlInterfaceDesc. Also store generated strings in UTF-16 instead of hex. - Update usb_strings.h to match new encode_usb_strings.py output. - Remove unused struct SetupReqBuf.
This commit is contained in:
parent
33f14122ad
commit
8d8f4c7faf
7 changed files with 126 additions and 130 deletions
|
@ -186,6 +186,8 @@ inline uint8_t CH554UART1RcvByte( )
|
|||
*******************************************************************************/
|
||||
inline void CH554UART1SendByte(uint8_t SendDat)
|
||||
{
|
||||
while(gpio_p1_4_get() == 0)
|
||||
;
|
||||
SBUF1 = SendDat; // Query sending, the interrupt mode does not need the following two statements, but TI=0 is required before sending
|
||||
while (U1TI == 0)
|
||||
;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue