Skip to content

Commit

Permalink
can runs at 24mhz
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Jan 13, 2022
1 parent d9b8337 commit 8603450
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firmware/boards/f1_dave/port_shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const CANConfig canConfig500 =
{
CAN_MCR_ABOM | CAN_MCR_AWUM | CAN_MCR_TXFP,
/*
For 48MHz http://www.bittiming.can-wiki.info/ gives us Pre-scaler=6, Seq 1=13 and Seq 2=2. Subtract '1' for register values
For 24MHz http://www.bittiming.can-wiki.info/ gives us Pre-scaler=3, Seq 1=13 and Seq 2=2. Subtract '1' for register values
*/
CAN_BTR_SJW(0) | CAN_BTR_BRP(5) | CAN_BTR_TS1(12) | CAN_BTR_TS2(1),
CAN_BTR_SJW(0) | CAN_BTR_BRP(2) | CAN_BTR_TS1(12) | CAN_BTR_TS2(1),
};

0 comments on commit 8603450

Please sign in to comment.