本项止转自github官方arduino-esp32 传在这里仅为阅读源码方便
projectuser
2019-07-05 50148ccffe21ff54262064ec9f2245900eaf18aa
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef ERI_H
#define ERI_H
 
#include <stdint.h>
 
/*
 The ERI is a bus internal to each Xtensa core. It connects, amongst others, to the debug interface, where it
 allows reading/writing the same registers as available over JTAG.
*/
 
 
/**
 * @brief  Perform an ERI read
 * @param  addr : ERI register to read from
 *
 * @return Value read
 */
uint32_t eri_read(int addr);
 
 
/**
 * @brief  Perform an ERI write
 * @param  addr : ERI register to write to
 * @param  data : Value to write
 *
 * @return Value read
 */
void eri_write(int addr, uint32_t data);
 
 
#endif