i2c working, rtc working, eeprom working

This commit is contained in:
2025-09-22 23:44:33 +02:00
parent 1791f463b7
commit 5b0e2b6797
9 changed files with 523 additions and 407 deletions

View File

@@ -5,7 +5,7 @@ use alloc::vec::Vec;
use crate::alloc::boxed::Box;
use crate::hal::water::TankSensor;
use crate::hal::{BoardInteraction, FreePeripherals, Sensor};
use crate::FatError::FatError;
use crate::FatError::{FatError, FatResult};
use crate::{
bail,
config::PlantControllerConfig,
@@ -32,11 +32,15 @@ impl RTCModuleInteraction for NoRTC {
bail!("Please configure board revision")
}
async fn get_backup_config(&mut self) -> Result<Vec<u8>, FatError> {
async fn get_backup_config(&mut self, chunk: usize) -> FatResult<([u8; 32], usize, u16)> {
bail!("Please configure board revision")
}
async fn backup_config(&mut self, _bytes: &[u8]) -> Result<(), FatError> {
async fn backup_config(&mut self, offset: usize, bytes: &[u8]) -> FatResult<()> {
bail!("Please configure board revision")
}
async fn backup_config_finalize(&mut self, crc: u16, length: usize) -> FatResult<()> {
bail!("Please configure board revision")
}