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:
Jonas Thörnblad 2025-03-13 14:32:59 +01:00
parent 33f14122ad
commit 8d8f4c7faf
No known key found for this signature in database
GPG key ID: 2D318AD00A326F95
7 changed files with 126 additions and 130 deletions

View file

@ -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)
;