From babfedface07b9d2ef50bbe64f749135e8dcd605 Mon Sep 17 00:00:00 2001 From: Matteo Pignataro <matteo.pignataro@skywarder.eu> Date: Mon, 11 Sep 2023 10:30:31 +0200 Subject: [PATCH] [EXP_SENSE] Added expulsion sense pin --- .../stm32f767zi_skyward_death_stack_v4/interfaces-impl/bsp.cpp | 1 + .../interfaces-impl/hwmapping.h | 1 + 2 files changed, 2 insertions(+) diff --git a/miosix/arch/cortexM7_stm32f7/stm32f767zi_skyward_death_stack_v4/interfaces-impl/bsp.cpp b/miosix/arch/cortexM7_stm32f7/stm32f767zi_skyward_death_stack_v4/interfaces-impl/bsp.cpp index d3eabf94..0a9f8834 100644 --- a/miosix/arch/cortexM7_stm32f7/stm32f767zi_skyward_death_stack_v4/interfaces-impl/bsp.cpp +++ b/miosix/arch/cortexM7_stm32f7/stm32f767zi_skyward_death_stack_v4/interfaces-impl/bsp.cpp @@ -346,6 +346,7 @@ void IRQbspInit() camera_enable::mode(Mode::OUTPUT); liftoff_detach::mode(Mode::INPUT); nosecone_detach::mode(Mode::INPUT); + exp_sense::mode(Mode::INPUT); using namespace actuators; buzzer::mode(Mode::ALTERNATE_PULL_DOWN); diff --git a/miosix/arch/cortexM7_stm32f7/stm32f767zi_skyward_death_stack_v4/interfaces-impl/hwmapping.h b/miosix/arch/cortexM7_stm32f7/stm32f767zi_skyward_death_stack_v4/interfaces-impl/hwmapping.h index 43f47225..46115322 100644 --- a/miosix/arch/cortexM7_stm32f7/stm32f767zi_skyward_death_stack_v4/interfaces-impl/hwmapping.h +++ b/miosix/arch/cortexM7_stm32f7/stm32f767zi_skyward_death_stack_v4/interfaces-impl/hwmapping.h @@ -219,6 +219,7 @@ using status_led = Gpio<GPIOA_BASE, 14>; using camera_enable = Gpio<GPIOA_BASE, 12>; using liftoff_detach = Gpio<GPIOA_BASE, 11>; using nosecone_detach = Gpio<GPIOA_BASE, 4>; +using exp_sense = Gpio<GPIOG_BASE, 6>; } // namespace gpios -- GitLab