10 Commits

Author SHA1 Message Date
Jonas Thörnblad
0c456d7ecd
Set new CH552 clock frequency and baudrate for communication
Update CH552 clock frequency according to new datasheet. Max
clock frequency can now be 12 MHz @ 3.3v which gives a max
baudrate of 750 kbps.
2025-01-24 14:48:48 +01:00
Jonas Thörnblad
9828e1d51b
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).
2025-01-23 13:47:53 +01:00
Jonas Thörnblad
68cecdfa92
Update USB polling period (bInterval) for CDC, HID and TKEYCTRL
endpoints.
2025-01-22 15:55:51 +01:00
Jonas Thörnblad
3b03e7b051
Fix CDC configuration problem on Windows when we have a composite
device (multiple different Device Classes). Add "Interface
Association Descriptor" to make it work.
2025-01-21 11:00:25 +01:00
Jonas Thörnblad
4239b74328
Add new USB debug pipe (TKEYCTRL). 2025-01-21 10:57:32 +01:00
Jonas Thörnblad
3ccdf8fc0f
Add incoming and outgoing CTS (Clear To Send) signals for the CH552
- Add CTS signals let the FPGA and CH552 signal each other that
    it is OK send UART data.
  - Update the CH552 rx and frame handling logic.
  - Fix minor spelling errors and indentation
2025-01-09 10:55:58 +01:00
Mikael Ågren
f1b19cb56e
Wrap accesses to UART output buffers 2025-01-09 10:55:19 +01:00
Jonas Thörnblad
25716a7c69
WIP: Add USB HID and framing support over UART
- Add USB HID support.
- Add framing to distinguish between CDC and HID data sent over the UART.
- Add some debug printing.
- Cleanup of code and formatting.
2025-01-09 10:55:08 +01:00
Jonas Thörnblad
28c81a17f7
Move usb_strings.h for ch552_fw to the include directory 2025-01-09 10:54:57 +01:00
dehanj
354aecbed6
USB: move firmware for usb-to-serial MCU (CH552)
Change links to the new ch552_fw directory.
2024-06-25 15:47:22 +02:00