From 0cdc878dbd1b175ca15cd80c81dda2108e76f2f8 Mon Sep 17 00:00:00 2001 From: "Cliff L. Biffle" Date: Sun, 17 Sep 2023 12:45:43 -0700 Subject: [PATCH] Enable Hiffy+I2C on oxcon2023g0 board --- app/oxcon2023g0/app.toml | 4 ++-- task/hiffy/Cargo.toml | 1 + task/hiffy/src/main.rs | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/oxcon2023g0/app.toml b/app/oxcon2023g0/app.toml index 78bfbb0ab..56973cc4b 100644 --- a/app/oxcon2023g0/app.toml +++ b/app/oxcon2023g0/app.toml @@ -44,9 +44,9 @@ name = "task-hiffy" priority = 4 max-sizes = {flash = 8192, ram = 2048} start = true -task-slots = ["sys"] +task-slots = ["sys", "i2c_driver"] stacksize = 912 -features = ["stm32g0", "gpio", "micro"] +features = ["stm32g0", "gpio", "i2c", "g030", "micro"] [tasks.i2c_driver] name = "drv-stm32xx-i2c-server" diff --git a/task/hiffy/Cargo.toml b/task/hiffy/Cargo.toml index 292e8da7a..788dfbe98 100644 --- a/task/hiffy/Cargo.toml +++ b/task/hiffy/Cargo.toml @@ -51,6 +51,7 @@ hash = ["drv-hash-api"] h743 = ["stm32h7", "drv-stm32xx-i2c/h743", "build-i2c/h743"] h753 = ["stm32h7", "drv-stm32xx-i2c/h753", "build-i2c/h753"] g031 = ["stm32g0", "drv-stm32xx-i2c/g031", "build-i2c/g031"] +g030 = ["stm32g0", "drv-stm32xx-i2c/g030", "build-i2c/g030"] micro = [] panic-messages = ["userlib/panic-messages"] rng = ["drv-rng-api"] diff --git a/task/hiffy/src/main.rs b/task/hiffy/src/main.rs index 3f09801b6..59b8f3ba6 100644 --- a/task/hiffy/src/main.rs +++ b/task/hiffy/src/main.rs @@ -71,7 +71,7 @@ cfg_if::cfg_if! { const HIFFY_DATA_SIZE: usize = 20_480; const HIFFY_TEXT_SIZE: usize = 2048; const HIFFY_RSTACK_SIZE: usize = 2048; - } else if #[cfg(target_board = "donglet-g031")] { + } else if #[cfg(any(target_board = "donglet-g031", target_board = "oxcon2023g0"))] { const HIFFY_DATA_SIZE: usize = 256; const HIFFY_TEXT_SIZE: usize = 256; const HIFFY_RSTACK_SIZE: usize = 2048;