Преглед изворни кода

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.
Darian Leung пре 5 година
родитељ
комит
540b401e95
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      components/soc/esp32/include/soc/can_struct.h

+ 2 - 2
components/soc/esp32/include/soc/can_struct.h

@@ -147,8 +147,8 @@ typedef struct {
 
 
 typedef union {
 typedef union {
     struct {
     struct {
-        uint32_t rx_message_counter: 5;                     /* RMC[4:0] RX Message Counter */
-        uint32_t reserved27: 27;                            /* Internal Reserved */
+        uint32_t rx_message_counter: 7;                     /* RMC[6:0] RX Message Counter */
+        uint32_t reserved25: 25;                            /* Internal Reserved */
     };
     };
     uint32_t val;
     uint32_t val;
 } can_rx_msg_cnt_reg_t;
 } can_rx_msg_cnt_reg_t;