Skip to content
Snippets Groups Projects
Commit 4f37d098 authored by Matteo Pignataro's avatar Matteo Pignataro
Browse files

[RIG] Added CAN pinmapping

parent 9268dbc2
No related branches found
No related tags found
2 merge requests!39Draft: Compute unit v2,!25[CAN] Added CAN pinmapping
Pipeline #6006 passed
......@@ -259,6 +259,11 @@ namespace miosix
uart1::tx::mode(Mode::ALTERNATE);
uart1::tx::alternateFunction(7);
can1::rx::mode(Mode::ALTERNATE);
can1::rx::alternateFunction(9);
can1::tx::mode(Mode::ALTERNATE);
can1::tx::alternateFunction(9);
timers::tim4ch2::mode(Mode::ALTERNATE);
timers::tim11ch1::mode(Mode::ALTERNATE);
timers::tim3ch1::mode(Mode::ALTERNATE);
......
......@@ -77,6 +77,12 @@ using tx = Gpio<GPIOA_BASE, 9>;
using rx = Gpio<GPIOA_BASE, 10>;
} // namespace uart1
namespace can1
{
using tx = Gpio<GPIOA_BASE, 12>;
using rx = Gpio<GPIOA_BASE, 11>;
} // namespace can1
namespace timers
{
using tim4ch2 = Gpio<GPIOB_BASE, 7>; // Servo 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment