Skip to content
Snippets Groups Projects
Commit 9ddf42e3 authored by Luca Conterio's avatar Luca Conterio
Browse files

[StrainBoard] ADS1118 chip select now set in OUTPUT mode

the spi was not correctly working since our spi driver does not use the hardware chip select functionality
parent bdb1d5cc
Branches
No related tags found
No related merge requests found
......@@ -72,12 +72,16 @@ void IRQbspInit()
can::rx::mode(Mode::INPUT);
using namespace sensors;
ads1118::cs::mode(Mode::ALTERNATE);
ads1118::cs::mode(Mode::OUTPUT);
ads1118::cs::high();
using namespace leds;
led1::mode(Mode::OUTPUT);
led1::low();
led2::mode(Mode::OUTPUT);
led2::low();
led3::mode(Mode::OUTPUT);
led3::low();
for (uint8_t i = 0; i < 5; i++)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment