eri.h 564 B

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