kopia lustrzana https://github.com/espressif/esp-idf
use uint8_t for fifo struct in uart and i2c
rodzic
31f74b8008
commit
d2420b667c
|
@ -97,8 +97,8 @@ typedef volatile struct {
|
|||
}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;
|
||||
|
|
|
@ -16,8 +16,8 @@
|
|||
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;
|
||||
|
|
Ładowanie…
Reference in New Issue