Commit graph

130 commits

Author SHA1 Message Date
6b2fa490ea firmware: Add explicit configuration for rustfmt. 2025-05-07 15:41:48 -04:00
7e161dd316 firmware: Enable Clippy 'pedantic' and 'cargo' lints. 2025-05-07 15:30:02 -04:00
bf52654a9c firmware: Improve UART read handling. 2025-05-03 14:09:21 -04:00
3821403c6e firmware: Improve host_interface RX loop. 2025-05-03 08:45:06 -04:00
b6c61248b5 firmware: Minor cleanups. 2025-05-03 08:04:22 -04:00
314a0aeea5 firmware: Improve spawning of tasks. 2025-05-03 07:06:33 -04:00
523f157acf firmware: More work on the host_interface receive loop. 2025-04-30 16:50:35 -04:00
13092644a5 firmware: Improve initial host_interface rx loop. 2025-04-28 17:19:07 -04:00
47e050e7c0 firmware: Update Embassy dependencies. 2025-04-28 17:18:39 -04:00
641bea184c firmware: Begin building host_interface RX loop.
* Switch to BufferedUart (no longer using DMA).

* Add StaticCells for various buffers to keep them off the stack.
2025-04-28 09:43:25 -04:00
68ecdddaba firmware: Enable optimization for 'dev' profile. 2025-04-28 09:40:31 -04:00
276b17fc47 firmware: Use static memory.x file. 2025-04-27 20:35:33 -04:00
1cdceb2f9f prototest: Update to new proto definitions. 2025-04-27 08:18:14 -04:00
46cb843124 proto: Make data field in 'echo' messages non-optional. 2025-04-27 08:17:58 -04:00
be10ae8f04 prototest: Move protobuf queues to global variables. 2025-04-27 08:16:32 -04:00
a13cc1dd4c prototest: Improve InvalidMessageError. 2025-04-26 17:52:28 -04:00
aaed213a50 prototest: Use try/else where appropriate. 2025-04-26 17:52:04 -04:00
e378d854f6 firmware: Conditionally include some imports. 2025-04-26 17:23:00 -04:00
c9fef2495c firmware: Update for reconfigured protobuf definitions. 2025-04-26 17:22:35 -04:00
6aa4229e2e firmware: Update for current schematic. 2025-04-26 17:22:11 -04:00
cfabd1e10d prototest: Validate 'echo' responses. 2025-04-26 10:31:23 -04:00
452fb1ba93 prototest: Add debug-mode keybinding. 2025-04-26 10:20:33 -04:00
e9dc668d13 More protobuf
* Restructure protobuf definitions

* Add request and response handlers in prototest

* Add 'echo response' to prototest
2025-04-26 10:06:01 -04:00
e645af777a Queues and type checking
* Use asyncio Queues for passing around protobuf messages

* Annotate types and check with mypy
2025-04-26 08:40:58 -04:00
b47c699ae6 Improve crc_engine module. 2025-04-23 12:43:25 -04:00
4f4239efc0 Remove unused imports. 2025-04-23 10:50:18 -04:00
bd5cede4f6 First working version of prototest. 2025-04-22 16:30:02 -04:00
897542a9a4 Switch protobuf definitions to a single envelope message. 2025-04-22 16:29:31 -04:00
18469fed58 Correct CRC-16 computation. 2025-04-22 16:29:03 -04:00
2c04506a01 Update to reconfigured protobuf definitions. 2025-04-22 16:28:53 -04:00
7bd20fd7d4 Add underlying pin names to AF pins. 2025-04-22 16:28:23 -04:00
9179da2f6a Add async serial to prototest. 2025-04-21 18:33:19 -04:00
cf78434e70 Add prompt-toolkit to prototest. 2025-04-21 17:57:17 -04:00
18c68a6cde Crate updates. 2025-04-21 09:26:47 -04:00
dc1263cc4a Update Pin Usage and Power Budget. 2025-04-19 11:55:31 -04:00
7877c97885 Use open-drain outputs from USARTs to save power. 2025-04-19 10:01:38 -04:00
1a449d3bd1 Upgrade to Embassy 'main', and patched version of embedded-resources. 2025-04-19 09:52:41 -04:00
a98fd690b8 Complete pin usage table. 2025-04-19 07:45:43 -04:00
26fcc648f5 Rebuild 'pin usage' table. 2025-04-19 06:54:26 -04:00
69e48c937b Complete power budget. 2025-04-18 18:53:35 -04:00
6dbf3feb83 Initial power budget. 2025-04-18 18:31:10 -04:00
9df3729287 Enable most Ruff checks. 2025-04-15 11:47:05 -04:00
479d97563d Various improvements to prototest
* Makefile for running protoc and ruff

* Ruff configuration

* protoc output files
2025-04-15 11:28:20 -04:00
26801eb9b5 Begin building prototest tool. 2025-04-15 09:50:48 -04:00
2d281fd554 Use ring-buffered UART receive interfaces. 2025-04-14 14:32:56 -04:00
a056fcda56 Remove assign-resources crate; update micropb crate to 0.1.1. 2025-04-14 10:42:08 -04:00
07fe75ce95 Replace hardcoded value with named constant. 2025-04-14 06:31:27 -04:00
d494948de8 Eliminate unnecessary 'mut'. 2025-04-14 06:01:00 -04:00
9005bb42d1 Include CRC in protobuf messages. 2025-04-13 20:07:49 -04:00
d5866650a8 Working CRC engine. 2025-04-13 18:08:19 -04:00