Commit Graph

11 Commits

Author SHA1 Message Date
Andrey Gusakov 93afc8125a usb: SERIAL_USB_BUFFERS_SIZE can be smaller than BLOCKING_FACTOR
Write to serial usb will just block caller untill enought space is
freed in internal buffer.
2024-11-04 08:39:30 -05:00
Andrey G d9dcc40a54
6595 burn failed (#7031)
* halconf: SERIAL_USB_BUFFERS_RX_SIZE should be 64

Until we fix bug in OTGv1

* ChibiOS: update OTGv1

* usb_console: fix SERIAL_USB_BUFFERS_TX_SIZE vs BLOCKING_FACTOR check

Actually should be removed as we can write to USB serial more than
can fit into buffer. Write caller will be just waiting for space
available in buffer.
2024-11-03 17:22:17 -05:00
Matthew Kennedy e5fa7b1a5d make some channels final 2024-03-01 20:29:27 -05:00
rusefillc 8ef2af44f3 counting per-channel traffic 2023-03-16 13:14:25 -04:00
rusefillc d4d2aaea05 /*isEndOfPacket*/ 2022-10-16 01:21:44 -04:00
Matthew Kennedy b99d90b006
Start -> start (#4366) 2022-07-21 15:17:32 -04:00
Matthew Kennedy e4c34e016a
last packet optimization (#3363)
* last packet optimization

* comment

* test

* missed one

* set tcp mss
2021-10-18 19:59:08 -04:00
rusefillc 847fb75a23 TS channel names for nicer console messages 2021-09-18 15:33:14 -04:00
Matthew Kennedy 25414ebdad
yet more pch (#3068)
* big pch energy

* put back ramdisk stub

* tests are happy

* h743 nucleo

* kinetis

* I love deleting code!

* make stepper happy

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-08-03 22:05:01 -04:00
Matthew Kennedy 599a9b0183
USB uses its own channel, add implementations for serial channels (#2472)
* USB uses its own channel

* revise channels

* put serial ports in their own file

* h7 uart incompatible for now

* guard for sim
2021-03-19 17:05:04 -04:00
Matthew Kennedy d7698f6703
Dedicated code path for USB console/TS (#2465)
* new apis

* dedicated USB path

* move decl

* init

* don't init usb twice

* guard

* check that we're initialized before using TS

* comment

* guard

* guard USB

* brain doesn't go good

* make tests happy

* dead define

* cypress

* ifdef != if

* s

* include priority

* don't start a thread we know we don't need

* bad-ish merge

* const

* why did this code exist...?

Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
2021-03-18 14:07:22 -04:00