From 085582f7884c36308e4b770914f24ea4f5fab36f Mon Sep 17 00:00:00 2001 From: frsantiagojr Date: Wed, 26 Jun 2024 16:20:29 +0800 Subject: [PATCH] Added bitrate to support boards with clock frequency of 12MHz --- src/MCP2515.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/MCP2515.cpp b/src/MCP2515.cpp index 36c160d..08cbfb7 100644 --- a/src/MCP2515.cpp +++ b/src/MCP2515.cpp @@ -117,6 +117,10 @@ int MCP2515Class::begin(long baudRate) { (long)16E6, (long)20E3, { 0x0f, 0xff, 0x87 } }, { (long)16E6, (long)10E3, { 0x1f, 0xff, 0x87 } }, { (long)16E6, (long)5E3, { 0x3f, 0xff, 0x87 } }, + + { (long)12E6, (long)1000E3, { 0x00, 0x80, 0x02 } }, + { (long)12E6, (long)500E3, { 0x00, 0x91, 0x05 } }, + { (long)12E6, (long)250E3, { 0x00, 0xbe, 0x07 } }, }; const uint8_t* cnf = NULL;