From 875e4185ccf7e0fa1db709defba7c9859113a7aa Mon Sep 17 00:00:00 2001 From: Laura Abbott Date: Fri, 15 Sep 2023 11:55:51 -0400 Subject: [PATCH] Make ROT_IRQ a pull up This is active low, make sure it remains high when the RoT resets itself. --- drv/stm32h7-sprot-server/src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drv/stm32h7-sprot-server/src/main.rs b/drv/stm32h7-sprot-server/src/main.rs index 9ef4ad965..e555956f3 100644 --- a/drv/stm32h7-sprot-server/src/main.rs +++ b/drv/stm32h7-sprot-server/src/main.rs @@ -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];