Firmware development updates

2WIRE mode is implemented. It is the first mode in BP5 with bitwise commands, and it is so good! The PIO lets us manipulate pins despite being a hardware peripheral. I look forward to implementing this in the other modes.

image

The latest firmware implements the concept of “mode specific” commands.

  • “Global commands” work in every mode (with the exception of maybe HiZ mode)
  • “Mode specific commands” work only in one mode. The command struct for mode commands is tucked neatly in the mode .c source file, to avoid dragging headers all over the place.

In this example, I’m adding an SLE4442 chip card utility, which is only useful in 2WIRE mode. It is only available in the 2WIRE mode, and it’s presence doesn’t pollute the other mode namespace.

Hopefully a push with the SLE4442 utility tonight. Tomorrow I’ll add a new command line float value parser, then clean&rework W (power supply) command and the bio buffered IO commands. I’ll add examples to the dummy command for using the new psu and bio libraries.

1 Like