mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'feature/rmt_add_struct_for_memory' into 'master'
Add data memory for RMT peripheral As described in the title. See merge request !134
This commit is contained in:
commit
812d4ab4ea
@ -225,4 +225,22 @@ typedef volatile struct {
|
||||
uint32_t date; /*This is the version register.*/
|
||||
} rmt_dev_t;
|
||||
extern rmt_dev_t RMT;
|
||||
|
||||
//Allow access to RMT memory using RMTMEM.chan[0].data[8]
|
||||
typedef volatile struct {
|
||||
struct {
|
||||
union {
|
||||
struct {
|
||||
uint32_t level1: 1;
|
||||
uint32_t duration1: 15;
|
||||
uint32_t level0: 1;
|
||||
uint32_t duration0: 15;
|
||||
|
||||
};
|
||||
uint32_t val;
|
||||
} data[64];
|
||||
} chan[8];
|
||||
} rmt_mem_t;
|
||||
extern rmt_mem_t RMTMEM;
|
||||
|
||||
#endif /* _SOC_RMT_STRUCT_H_ */
|
||||
|
@ -9,6 +9,7 @@ PROVIDE ( UART1 = 0x3ff50000 );
|
||||
PROVIDE ( I2C0 = 0x3ff53000 );
|
||||
PROVIDE ( UHCI0 = 0x3ff54000 );
|
||||
PROVIDE ( RMT = 0x3ff56000 );
|
||||
PROVIDE ( RMTMEM = 0x3ff56800 );
|
||||
PROVIDE ( PCNT = 0x3ff57000 );
|
||||
PROVIDE ( LEDC = 0x3ff59000 );
|
||||
PROVIDE ( TIMERG0 = 0x3ff5F000 );
|
||||
|
Loading…
Reference in New Issue
Block a user