added stubs
authorSven Rademakers <sven.rademakers@gmail.com>
Mon, 30 Oct 2023 11:51:39 +0000 (11:51 +0000)
committerSven Rademakers <sven.rademakers@gmail.com>
Mon, 30 Oct 2023 11:51:39 +0000 (11:51 +0000)
commitc4371080e616fcf4ab902b6f85da7e9d4043c736
treecb051eec322316e6fc969a75a3eea2a20cb3a61d
parente4a2828cf4be0ea514c775b27d37a0740fe0174c
added stubs

Stubs can be enabled with compiling feature flag 'stubbed'
* gpio controllers dont do anything
* serial returns static content
* firmware_update writes to /tmp/stubbed_device
* usb filtering is omitted
src/firmware_update.rs
src/hal.rs
src/hal/stub.rs [new file with mode: 0644]
src/hal/stub/pin_controller.rs [new file with mode: 0644]
src/hal/stub/power_controller.rs [new file with mode: 0644]
src/hal/stub/serial.rs [new file with mode: 0644]
src/hal/stub/usbboot.rs [new file with mode: 0644]
src/main.rs