Skip to content
Snippets Groups Projects
Commit 921b0357 authored by Alvise de'Faveri's avatar Alvise de'Faveri
Browse files

[homeone] Commented-out canbus from bsp

Canbus pins are already handled by the CanManager class
parent cff6764b
No related branches found
No related tags found
1 merge request!39Draft: Compute unit v2
...@@ -217,10 +217,10 @@ void IRQbspInit() ...@@ -217,10 +217,10 @@ void IRQbspInit()
uart4::tx::mode(Mode::ALTERNATE); uart4::tx::mode(Mode::ALTERNATE);
uart4::tx::alternateFunction(8); uart4::tx::alternateFunction(8);
can::rx::mode(Mode::ALTERNATE); // can::rx::mode(Mode::ALTERNATE);
can::rx::alternateFunction(9); // can::rx::alternateFunction(9);
can::tx::mode(Mode::ALTERNATE); // can::tx::mode(Mode::ALTERNATE);
can::tx::alternateFunction(9); // can::tx::alternateFunction(9);
using namespace sensors; using namespace sensors;
adis16405::cs::mode(Mode::OUTPUT); adis16405::cs::mode(Mode::OUTPUT);
...@@ -273,15 +273,15 @@ void IRQbspInit() ...@@ -273,15 +273,15 @@ void IRQbspInit()
ledOff(); ledOff();
DefaultConsole::instance().IRQset(intrusive_ref_ptr<Device>( DefaultConsole::instance().IRQset(intrusive_ref_ptr<Device>(
new STM32Serial(defaultSerial,defaultSerialSpeed, new STM32Serial(defaultSerial,defaultSerialSpeed,
defaultSerialFlowctrl ? STM32Serial::RTSCTS : STM32Serial::NOFLOWCTRL))); defaultSerialFlowctrl ? STM32Serial::RTSCTS : STM32Serial::NOFLOWCTRL))); // PA9,PA10
} }
void bspInit2() void bspInit2()
{ {
#ifdef WITH_FILESYSTEM #ifdef WITH_FILESYSTEM
intrusive_ref_ptr<DevFs> devFs = basicFilesystemSetup(SDIODriver::instance()); intrusive_ref_ptr<DevFs> devFs = basicFilesystemSetup(SDIODriver::instance());
devFs->addDevice("gps", intrusive_ref_ptr<Device>(new STM32Serial(2,115200))); devFs->addDevice("gps", intrusive_ref_ptr<Device>(new STM32Serial(2,115200))); // PA2,PA3
devFs->addDevice("radio", intrusive_ref_ptr<Device>(new STM32Serial(3,57600))); devFs->addDevice("radio", intrusive_ref_ptr<Device>(new STM32Serial(3,57600))); // PB10,PB11
#endif //WITH_FILESYSTEM #endif //WITH_FILESYSTEM
} }
......
...@@ -56,10 +56,10 @@ using tx = Gpio<GPIOA_BASE, 0>; ...@@ -56,10 +56,10 @@ using tx = Gpio<GPIOA_BASE, 0>;
using rx = Gpio<GPIOA_BASE, 1>; using rx = Gpio<GPIOA_BASE, 1>;
} //namespace uart4 } //namespace uart4
namespace can { // namespace can {
using rx = Gpio<GPIOA_BASE, 11>; // using rx = Gpio<GPIOA_BASE, 11>;
using tx = Gpio<GPIOA_BASE, 12>; // using tx = Gpio<GPIOA_BASE, 12>;
} // namespace can // } // namespace can
} //namespace interfaces } //namespace interfaces
namespace sensors { namespace sensors {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment