From 7efdddb78c1315046205b1c1689c7420bdd6dbaf Mon Sep 17 00:00:00 2001 From: Matteo Pignataro <matteo.pignataro@skywarder.eu> Date: Wed, 2 Aug 2023 14:07:47 +0200 Subject: [PATCH] [DIO0] Modified pin in according with wire bonding --- .../interfaces-impl/bsp.cpp | 1 - .../interfaces-impl/hwmapping.h | 37 +++++++++---------- 2 files changed, 18 insertions(+), 20 deletions(-) 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 3ef9a253..d43a74c1 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 @@ -312,7 +312,6 @@ void IRQbspInit() H3LIS331DL::cs::mode(Mode::OUTPUT); H3LIS331DL::cs::getPin().high(); - H3LIS331DL::interrupt::mode(Mode::INPUT); LIS2MDL::cs::mode(Mode::OUTPUT); LIS2MDL::cs::getPin().high(); 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 67d6f9c3..f1059505 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 @@ -121,11 +121,10 @@ using interrupt2 = Gpio<GPIOG_BASE, 7>; namespace H3LIS331DL { -using sck = interfaces::spi3::sck; -using miso = interfaces::spi3::miso; -using mosi = interfaces::spi3::mosi; -using cs = Gpio<GPIOD_BASE, 3>; -using interrupt = Gpio<GPIOC_BASE, 3>; +using sck = interfaces::spi3::sck; +using miso = interfaces::spi3::miso; +using mosi = interfaces::spi3::mosi; +using cs = Gpio<GPIOD_BASE, 3>; } // namespace H3LIS331DL namespace LIS2MDL @@ -177,36 +176,36 @@ using cs = Gpio<GPIOG_BASE, 10>; namespace LPS28DFW_1 { -using sda = interfaces::i2c1::sda; -using scl = interfaces::i2c1::scl; +using sda = interfaces::i2c1::sda; +using scl = interfaces::i2c1::scl; } // namespace LPS28DFW_1 namespace LPS28DFW_2 { -using sda = interfaces::i2c1::sda; -using scl = interfaces::i2c1::scl; +using sda = interfaces::i2c1::sda; +using scl = interfaces::i2c1::scl; } // namespace LPS28DFW_2 } // namespace sensors namespace radio { -using sck = interfaces::spi6::sck; -using miso = interfaces::spi6::miso; -using mosi = interfaces::spi6::mosi; -using cs = Gpio<GPIOG_BASE, 11>; -using dio0 = Gpio<GPIOA_BASE, 13>; -using dio1 = Gpio<GPIOD_BASE, 4>; -using dio3 = Gpio<GPIOC_BASE, 5>; +using sck = interfaces::spi6::sck; +using miso = interfaces::spi6::miso; +using mosi = interfaces::spi6::mosi; +using cs = Gpio<GPIOG_BASE, 11>; +using dio0 = Gpio<GPIOC_BASE, 3>; +using dio1 = Gpio<GPIOD_BASE, 4>; +using dio3 = Gpio<GPIOC_BASE, 5>; using rx_enable = Gpio<GPIOB_BASE, 0>; using tx_enable = Gpio<GPIOC_BASE, 1>; } // namespace radio namespace actuators { -using airbrakes = interfaces::timers::tim3ch1; -using expulsion = interfaces::timers::tim1ch3; -using buzzer = interfaces::timers::tim1ch1; +using airbrakes = interfaces::timers::tim3ch1; +using expulsion = interfaces::timers::tim1ch3; +using buzzer = interfaces::timers::tim1ch1; using parafoil_servo1 = interfaces::timers::tim3ch1; using parafoil_servo2 = interfaces::timers::tim3ch2; } // namespace actuators -- GitLab