Skip to content
Snippets Groups Projects
Commit 0897d8df authored by Luca Erbetta's avatar Luca Erbetta :rocket:
Browse files

[DS] Added motor actuation pin

parent a89006f6
Branches
No related tags found
No related merge requests found
...@@ -398,6 +398,13 @@ void IRQbspInit() ...@@ -398,6 +398,13 @@ void IRQbspInit()
rogP2::alternateFunction(2); rogP2::alternateFunction(2);
nc_dtch::mode(Mode::INPUT); nc_dtch::mode(Mode::INPUT);
motor_act::mode(Mode::INPUT);
motor_3v::mode(Mode::OUTPUT);
motor_3v::high();
motor_gnd::mode(Mode::OUTPUT);
motor_gnd::low();
using namespace actuators; using namespace actuators;
tcPwm::mode(Mode::ALTERNATE); tcPwm::mode(Mode::ALTERNATE);
......
...@@ -118,6 +118,10 @@ using motP2 = Gpio<GPIOB_BASE, 0>; //Pwm motore 2 ...@@ -118,6 +118,10 @@ using motP2 = Gpio<GPIOB_BASE, 0>; //Pwm motore 2
using rogP1 = Gpio<GPIOD_BASE, 12>; //Pwm rogallina 1 using rogP1 = Gpio<GPIOD_BASE, 12>; //Pwm rogallina 1
using rogP2 = Gpio<GPIOD_BASE, 13>; //Pwm rogallina 2 using rogP2 = Gpio<GPIOD_BASE, 13>; //Pwm rogallina 2
using nc_dtch = Gpio<GPIOB_BASE, 7>; //Nosecone detach using nc_dtch = Gpio<GPIOB_BASE, 7>; //Nosecone detach
using motor_act = Gpio<GPIOE_BASE, 3>; //Motor actuation
using motor_3v = Gpio<GPIOC_BASE, 15>; //Motor actuation 3v
using motor_gnd = Gpio<GPIOE_BASE, 2>; //Motor actuation gnd
} }
namespace actuators { namespace actuators {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment