rom_api.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. File Name : rom_api.h
  3. Author : Yichip
  4. Version : V1.0
  5. Date : 2020/02/11
  6. Description : rom fun information.
  7. */
  8. #ifndef __ROM_API_H__
  9. #define __ROM_API_H__
  10. /* TIMER */
  11. #define FUNC_DELAY_US_ADDR (0x4238 + 1)
  12. #define FUNC_DELAY_MS_ADDR (0x425c + 1)
  13. /* OTP */
  14. #define FUNC_INIT_OTP_ADDR (0x442c + 1)
  15. #define FUNC_DEINIT_OTP_ADDR (0x4480 + 1)
  16. #define FUNC_READ_OTP_ADDR (0x449c + 1)
  17. #define FUNC_WRITE_OTP_ADDR (0x4594 + 1)
  18. #define FUNC_READ_CHIPID_ADDR (0x45d8 + 1)
  19. #define FUNC_READ_CHIPLF_ADDR (0x45e6 + 1)
  20. /* LPM */
  21. #define FUNC_LPM_READ_ADDR (0x4c80 + 1)
  22. #define FUNC_LPM_WRITE_ADDR (0x4c9c + 1)
  23. #define FUNC_LPM_BT_WRITE_ADDR (0x4cb0 + 1)
  24. #define FUNC_LPM_BT_READ_ADDR (0x4d24 + 1)
  25. #define FUNC_LPM_SLEEP_ADDR (0x4d68 + 1)
  26. #define FUNC_SETLPMVAL_ADDR (0x4280 + 1)
  27. /* QSPI */
  28. #define FUNC_ENC_WRITE_FLASH_ADDR (0x51f0 + 1)
  29. #define FUNC_QSPI_FLASH_SECTORERASE_ADDR (0x48b4 + 1)
  30. #define FUNC_QSPI_FLASH_BLOCKERASE_ADDR (0x48c0 + 1)
  31. #define FUNC_QSPI_FLASH_WRITE_ADDR (0x47f4 + 1)
  32. #define FUNC_QSPI_FLASH_READ_ADDR (0x48f6 + 1)
  33. #define FUNC_FLASH_BLANK_CHECK (0x513c + 1)
  34. #define FUNC_PREFETCH (0x4404 + 1)
  35. #define FUNC_READ_FLASH_ID (0x4960 + 1)
  36. #endif