1 #ifndef ERI_H
2 #define ERI_H
3 
4 #include <stdint.h>
5 
6 /*
7  The ERI is a bus internal to each Xtensa core. It connects, amongst others, to the debug interface, where it
8  allows reading/writing the same registers as available over JTAG.
9 */
10 
11 
12 /**
13  * @brief  Perform an ERI read
14  * @param  addr : ERI register to read from
15  *
16  * @return Value read
17  */
18 uint32_t eri_read(int addr);
19 
20 
21 /**
22  * @brief  Perform an ERI write
23  * @param  addr : ERI register to write to
24  * @param  data : Value to write
25  *
26  * @return Value read
27  */
28 void eri_write(int addr, uint32_t data);
29 
30 
31 #endif
32