Skip to content
Snippets Groups Projects
Commit 1e4cd275 authored by EmilioCorigliano's avatar EmilioCorigliano
Browse files

[VBAT] added pin for vbat

parent 3d52f5c9
Branches
No related tags found
No related merge requests found
......@@ -447,6 +447,8 @@ void IRQbspInit()
airbrakes::servo::alternateFunction(3);
// airbrakes::sensor::mode(Mode::INPUT_ANALOG);
inputs::vbat::mode(Mode::INPUT_ANALOG);
leds::red::mode(Mode::OUTPUT);
leds::green::mode(Mode::OUTPUT);
leds::blue::mode(Mode::OUTPUT);
......
......@@ -62,7 +62,7 @@ using mosi = Gpio<GPIOE_BASE, 6>;
// SX127x
namespace spi5
{
using sck = Gpio<GPIOF_BASE, 7>;
using sck = RANDOM_PIN;
using miso = Gpio<GPIOF_BASE, 8>;
using mosi = Gpio<GPIOF_BASE, 9>;
} // namespace spi5
......@@ -167,6 +167,11 @@ using launchpad_detach = RANDOM_PIN; // launchpad detach
} // namespace sensors
namespace inputs
{
using vbat = Gpio<GPIOF_BASE, 7>;
} // namespace inputs
namespace expulsion
{
using servo = Gpio<GPIOB_BASE, 7>; // Pwm expulsion servo, TIM4_CH2
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment