]> granicus.if.org Git - esp-idf/commitdiff
Merge branch 'driver_merge_tmp/fix_fifo_struct_header' into 'master'
authorIvan Grokhotkov <ivan@espressif.com>
Thu, 22 Sep 2016 03:39:16 +0000 (11:39 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Thu, 22 Sep 2016 03:39:16 +0000 (11:39 +0800)
use uint8_t for fifo struct in uart and i2c

use uint8_t for fifo struct in uart and i2c

See merge request !106

1  2 
components/esp32/include/soc/i2c_struct.h
components/esp32/include/soc/uart_struct.h

index 26b7f4c786ca8625469b074c1301fc4ac2b168fe,8111b2cba0cc875e5a1d379284bce6fd5028f2f2..a29a9c52860f995d44e0781493a55ca28e773554
@@@ -94,14 -94,14 +94,14 @@@ typedef volatile struct 
              uint32_t reserved26:         6;
          };
          uint32_t val;
 -    }fifo_conf;
 +    } fifo_conf;
      union {
          struct {
-             uint32_t data:       8;                 /*The register represent the byte  data read from rx_fifo when use apb fifo access*/
-             uint32_t reserved8: 24;
+             uint8_t data;                           /*The register represent the byte  data read from rx_fifo when use apb fifo access*/
+             uint8_t reserved[3];
          };
          uint32_t val;
 -    }fifo_data;
 +    } fifo_data;
      union {
          struct {
              uint32_t rx_fifo_full:     1;           /*The raw interrupt status bit for rx_fifo full when use apb fifo access.*/
index 115ada40f916c337e853670fa858b16ebaa0444f,78331e7035109f7f9a22f40432b902db6e8b4020..05b54867be9657b926d72cbbe0b87c9a67807965
  typedef volatile struct {
      union {
          struct {
-             uint32_t rw_byte:    8;                 /*This register stores one byte data  read by rx fifo.*/
-             uint32_t reserved8: 24;
+             uint8_t rw_byte;                 /*This register stores one byte data  read by rx fifo.*/
+             uint8_t reserved[3];
          };
          uint32_t val;
 -    }fifo;
 +    } fifo;
      union {
          struct {
              uint32_t rxfifo_full:      1;           /*This interrupt raw bit turns to high level when receiver receives more data than (rx_flow_thrhd_h3 rx_flow_thrhd).*/