tasks: first implementation of protocol for the TUSB320 USB-PD chip. also untested!!!

This commit is contained in:
2026-03-11 14:01:40 +01:00
parent ccb2680954
commit e09649592b
5 changed files with 387 additions and 0 deletions

View File

@@ -131,6 +131,9 @@ async fn main(spawner: Spawner) {
spawner.must_spawn(renderbug_bike::tasks::mpu::mpu_task(motion_bus.dyn_sender(), I2cDevice::new(i2c_bus), imu_interrupt));
#[cfg(feature="gps")]
spawner.must_spawn(renderbug_bike::tasks::gps::gps_task(motion_bus.dyn_sender(), I2cDevice::new(i2c_bus)));
// TODO: Everything i2c should be turned on by default, I guess. we don't need features for individual sensors, but we can keep the option to disable the whole bus for testing purposes
spawner.must_spawn(renderbug_bike::tasks::usb_power::usb_task(I2cDevice::new(i2c_bus), pd_interrupt));
}
#[cfg(feature="oled")]