soc_pstore.h 801 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (c) 2019 Actions Semiconductor Co., Ltd
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. /**
  7. * @file peripheral pstore configuration macros for Actions SoC
  8. */
  9. #ifndef _ACTIONS_SOC_PSTORE_H_
  10. #define _ACTIONS_SOC_PSTORE_H_
  11. #define SOC_PSTORE_TAG_CAPACITY 0
  12. #define SOC_PSTORE_TAG_FLAG_CAP 1
  13. #define SOC_PSTORE_TAG_OTA_UPGRADE 2
  14. #define SOC_PSTORE_TAG_FLAG_JTAG 3
  15. #define SOC_PSTORE_TAG_WD_RESET_CNT 4
  16. #define SOC_PSTORE_TAG_SLEEP_DBG_STAGE 5
  17. #define SOC_PSTORE_TAG_HR_RESET 6
  18. #define SOC_PSTORE_TAG_SYS_PANIC 7
  19. #define SOC_PSTORE_TAG_RTC_RC32K_CAL 8
  20. #ifndef _ASMLANGUAGE
  21. int soc_pstore_set(u32_t tag, u32_t value);
  22. int soc_pstore_get(u32_t tag, u32_t *p_value);
  23. int soc_pstore_reset_all(void);
  24. #endif /* _ASMLANGUAGE */
  25. #endif /* _ACTIONS_SOC_PSTORE_H_ */