From c375ad5732d30807230e6e7525e1e6b35ade3257 Mon Sep 17 00:00:00 2001 From: 9uenther <5249946+9uenther@users.noreply.github.com> Date: Sat, 11 Mar 2023 09:22:22 +0100 Subject: [PATCH 1/4] add some 10MHz stuff --- src/ArduinoMCP2515.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ArduinoMCP2515.h b/src/ArduinoMCP2515.h index 20c04fe..23c5523 100644 --- a/src/ArduinoMCP2515.h +++ b/src/ArduinoMCP2515.h @@ -50,7 +50,11 @@ enum class CanBitRate : size_t BR_125kBPS_8MHZ = 4, BR_250kBPS_8MHZ = 5, BR_500kBPS_8MHZ = 6, - BR_1000kBPS_8MHZ = 7 + BR_1000kBPS_8MHZ = 7, + BR_125kBPS_10MHZ = 8, + BR_250kBPS_10MHZ = 9, + BR_500kBPS_10MHZ = 10, + BR_1000kBPS_10MHZ = 11 }; typedef std::function MicroSecondFunc; From 197f926e2008c496949df3cf781f93ffa399f3a0 Mon Sep 17 00:00:00 2001 From: 9uenther <5249946+9uenther@users.noreply.github.com> Date: Sat, 11 Mar 2023 09:22:51 +0100 Subject: [PATCH 2/4] add some 10MHz stuff --- src/ArduinoMCP2515.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ArduinoMCP2515.cpp b/src/ArduinoMCP2515.cpp index 2090607..cc490fa 100644 --- a/src/ArduinoMCP2515.cpp +++ b/src/ArduinoMCP2515.cpp @@ -32,7 +32,11 @@ static CanBitRateConfig const BIT_RATE_CONFIG_ARRAY[] = BitRate_125kBPS_8MHz, BitRate_250kBPS_8MHz, BitRate_500kBPS_8MHz, - BitRate_1000kBPS_8MHz + BitRate_1000kBPS_8MHz, + BitRate_125kBPS_10MHz, + BitRate_250kBPS_10MHz, + BitRate_500kBPS_10MHz, + BitRate_1000kBPS_10MHz }; /************************************************************************************** From 04ac157e25faad449bcf128ae5ac0a9ff101877a Mon Sep 17 00:00:00 2001 From: 9uenther <5249946+9uenther@users.noreply.github.com> Date: Sat, 11 Mar 2023 09:23:25 +0100 Subject: [PATCH 3/4] add some 10MHz stuff --- src/MCP2515/MCP2515_Config.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/MCP2515/MCP2515_Config.h b/src/MCP2515/MCP2515_Config.h index f8b10ad..a801f89 100644 --- a/src/MCP2515/MCP2515_Config.h +++ b/src/MCP2515/MCP2515_Config.h @@ -53,7 +53,12 @@ static CanBitRateConfig constexpr BitRate_1000kBPS_16MHz = {0x00, 0xD0, 0x82}; static CanBitRateConfig constexpr BitRate_250kBPS_8MHz = {0x00, 0xb1, 0x05}; static CanBitRateConfig constexpr BitRate_500kBPS_8MHz = {0x00, 0x90, 0x02}; static CanBitRateConfig constexpr BitRate_125kBPS_8MHz = {0x01, 0xb1, 0x05}; -static CanBitRateConfig constexpr BitRate_1000kBPS_8MHz = {0x00, 0x80, 0x00}; +static CanBitRateConfig constexpr BitRate_1000kBPS_8MHz = {0x00, 0x80, 0x00}; + +static CanBitRateConfig constexpr BitRate_250kBPS_10MHz = {0x00, 0xB6, 0x04}; +static CanBitRateConfig constexpr BitRate_500kBPS_10MHz = {0x00, 0x9A, 0x01}; +static CanBitRateConfig constexpr BitRate_125kBPS_10MHz = {0x01, 0xB6, 0x04}; +static CanBitRateConfig constexpr BitRate_1000kBPS_10MHz = {0x00, 0x80, 0x01}; /************************************************************************************** * CTOR/DTOR From aa78d9ed4bd1801b32ef1f124e64fc8f71c5d20b Mon Sep 17 00:00:00 2001 From: 9uenther <5249946+9uenther@users.noreply.github.com> Date: Sat, 11 Mar 2023 10:25:45 +0100 Subject: [PATCH 4/4] formatting --- src/MCP2515/MCP2515_Config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/MCP2515/MCP2515_Config.h b/src/MCP2515/MCP2515_Config.h index a801f89..c3f83b7 100644 --- a/src/MCP2515/MCP2515_Config.h +++ b/src/MCP2515/MCP2515_Config.h @@ -53,8 +53,8 @@ static CanBitRateConfig constexpr BitRate_1000kBPS_16MHz = {0x00, 0xD0, 0x82}; static CanBitRateConfig constexpr BitRate_250kBPS_8MHz = {0x00, 0xb1, 0x05}; static CanBitRateConfig constexpr BitRate_500kBPS_8MHz = {0x00, 0x90, 0x02}; static CanBitRateConfig constexpr BitRate_125kBPS_8MHz = {0x01, 0xb1, 0x05}; -static CanBitRateConfig constexpr BitRate_1000kBPS_8MHz = {0x00, 0x80, 0x00}; - +static CanBitRateConfig constexpr BitRate_1000kBPS_8MHz = {0x00, 0x80, 0x00}; + static CanBitRateConfig constexpr BitRate_250kBPS_10MHz = {0x00, 0xB6, 0x04}; static CanBitRateConfig constexpr BitRate_500kBPS_10MHz = {0x00, 0x9A, 0x01}; static CanBitRateConfig constexpr BitRate_125kBPS_10MHz = {0x01, 0xB6, 0x04};