This introduces MCU properties, so that MCU drivers can change their behaviour and/or setup tasks based on them, without having to write a `setup()` method or a custom constructor for the top-level device. In practice, this allows us to tell the MCU driver to - for example - disable JTAG or clock division during setup, and thus, we won't need to do that in code in the device constructor. This is a breaking change, kind of, because the `mcu::Base` and `mcu::ATmega32U4` drivers changed APIs. However, no device was using those directly, only via `ATmega32U4Keyboard`, and those parts remain compatible. While there, updated the `KBD4x` and `Splitography` devices to use the new properties instead of a custom constructor. Signed-off-by: Gergely Nagy <algernon@keyboard.io>pull/844/head
parent
d6868bf2ae
commit
81fc6e61bd
Loading…
Reference in new issue