Skip to content

Commit

Permalink
Enable Hiffy+I2C on oxcon2023g0 board
Browse files Browse the repository at this point in the history
  • Loading branch information
cbiffle committed Sep 19, 2023
1 parent 36147d0 commit e0b57eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/oxcon2023g0/app.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions task/hiffy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion task/hiffy/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e0b57eb

Please sign in to comment.