From 550ed39ea3943b4746b20510e389cad782d0c5ba Mon Sep 17 00:00:00 2001 From: Darian Leung Date: Thu, 30 Jul 2020 15:45:58 +0800 Subject: [PATCH] CAN: Fix size of RX msg count field on the esp32 This commit fixes the size of the RX message count register field on the esp32. --- components/soc/esp32/include/soc/can_struct.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/soc/esp32/include/soc/can_struct.h b/components/soc/esp32/include/soc/can_struct.h index 7325cd5a3..e4a7fa744 100644 --- a/components/soc/esp32/include/soc/can_struct.h +++ b/components/soc/esp32/include/soc/can_struct.h @@ -183,8 +183,8 @@ typedef volatile struct can_dev_s { //Misc Registers union { struct { - uint32_t rmc: 5; /* RMC[4:0] RX Message Counter */ - uint32_t reserved27: 27; /* Internal Reserved */ + uint32_t rmc: 7; /* RMC[6:0] RX Message Counter */ + uint32_t reserved25: 25; /* Internal Reserved */ }; uint32_t val; } rx_message_counter_reg; /* Address 29 */