Skip to content

Commit

Permalink
Make ROT_IRQ a pull up
Browse files Browse the repository at this point in the history
This is active low, make sure it remains high when the RoT resets
itself.
  • Loading branch information
labbott committed Sep 26, 2023
1 parent cde51d0 commit 875e418
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drv/stm32h7-sprot-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ fn main() -> ! {
let sys = sys_api::Sys::from(SYS.get_task_id());
let spi = claim_spi(&sys).device(ROT_SPI_DEVICE);

sys.gpio_configure_input(ROT_IRQ, sys_api::Pull::None);
sys.gpio_configure_input(ROT_IRQ, sys_api::Pull::Up);

debug_config(&sys);

let mut buffer = [0; idl::INCOMING_SIZE];
Expand Down

0 comments on commit 875e418

Please sign in to comment.