Skip to content

Commit

Permalink
WIP flip to gimlet PI14
Browse files Browse the repository at this point in the history
  • Loading branch information
cbiffle committed Mar 28, 2024
1 parent d18a4d2 commit 8eadfde
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 21 deletions.
14 changes: 2 additions & 12 deletions app/demo-stm32h7-nucleo/app-h753.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,11 @@ request_reset = ["hiffy"]

[tasks.sys]
name = "drv-stm32xx-sys"
features = ["h753", "exti"]
features = ["h753"]
priority = 1
uses = ["rcc", "gpios", "system_flash", "syscfg", "exti"]
uses = ["rcc", "gpios", "system_flash"]
start = true
task-slots = ["jefe"]
notifications = ["exti-wildcard-irq"]

[tasks.sys.interrupts]
"exti.exti0" = "exti-wildcard-irq"
"exti.exti1" = "exti-wildcard-irq"
"exti.exti2" = "exti-wildcard-irq"
"exti.exti3" = "exti-wildcard-irq"
"exti.exti4" = "exti-wildcard-irq"
"exti.exti9_5" = "exti-wildcard-irq"
"exti.exti15_10" = "exti-wildcard-irq"

[tasks.i2c_driver]
name = "drv-stm32xx-i2c-server"
Expand Down
17 changes: 13 additions & 4 deletions app/gimlet/base.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,21 @@ notifications = ["eth-irq", "mdio-timer-irq", "wake-timer", "jefe-state-change"]

[tasks.sys]
name = "drv-stm32xx-sys"
features = ["h753"]
features = ["h753", "exti"]
priority = 1
max-sizes = {flash = 2048, ram = 2048}
uses = ["rcc", "gpios", "system_flash"]
uses = ["rcc", "gpios", "system_flash", "syscfg", "exti"]
start = true
task-slots = ["jefe"]
notifications = ["exti-wildcard-irq"]

[tasks.sys.interrupts]
"exti.exti0" = "exti-wildcard-irq"
"exti.exti1" = "exti-wildcard-irq"
"exti.exti2" = "exti-wildcard-irq"
"exti.exti3" = "exti-wildcard-irq"
"exti.exti4" = "exti-wildcard-irq"
"exti.exti9_5" = "exti-wildcard-irq"
"exti.exti15_10" = "exti-wildcard-irq"

[tasks.spi2_driver]
name = "drv-stm32h7-spi-server"
Expand Down Expand Up @@ -128,7 +137,7 @@ max-sizes = {flash = 65536, ram = 16384 }
stacksize = 2800
start = true
task-slots = ["i2c_driver", "sensor", "gimlet_seq"]
notifications = ["timer"]
notifications = ["timer", "external_badness"]

[tasks.hiffy]
name = "task-hiffy"
Expand Down
10 changes: 5 additions & 5 deletions drv/stm32xx-sys/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -885,16 +885,16 @@ mod generated {
None,
None,
None,
// 13
None,
// 14 - HACK HACK! This is PI14 on Gimlet for power system debugging
Some((
Port::C,
Port::I,
TaskId::for_index_and_gen(
hubris_num_tasks::Task::hiffy as usize,
hubris_num_tasks::Task::power as usize,
userlib::Generation::ZERO,
),
1 << 24,
1 << 1,
)),
None,
None,
];
}

0 comments on commit 8eadfde

Please sign in to comment.