ram.h 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /******************************************************************************
  2. * Copyright (C) 2021, Xiaohua Semiconductor Co., Ltd. All rights reserved.
  3. *
  4. * This software component is licensed by XHSC under BSD 3-Clause license
  5. * (the "License"); You may not use this file except in compliance with the
  6. * License. You may obtain a copy of the License at:
  7. * opensource.org/licenses/BSD-3-Clause
  8. *
  9. ******************************************************************************/
  10. /******************************************************************************
  11. * @file ram.h
  12. *
  13. * @brief Header file for RAM functions
  14. *
  15. * @author MADS Team
  16. *
  17. ******************************************************************************/
  18. #ifndef __RAM_H__
  19. #define __RAM_H__
  20. /******************************************************************************/
  21. /* Include files */
  22. /******************************************************************************/
  23. #include "ddl.h"
  24. /* C binding of definitions if building with C++ compiler */
  25. #ifdef __cplusplus
  26. extern "C"
  27. {
  28. #endif
  29. /**
  30. ******************************************************************************
  31. ** \defgroup RamGroup Ram Controller (Ram)
  32. **
  33. **
  34. ******************************************************************************/
  35. //@{
  36. /******************************************************************************
  37. * Global type definitions
  38. ******************************************************************************/
  39. /**
  40. ******************************************************************************
  41. ** \brief Redefinition of RAM register structure
  42. ******************************************************************************/
  43. /******************************************************************************
  44. * Global definitions
  45. ******************************************************************************/
  46. /******************************************************************************
  47. * Local type definitions ('typedef')
  48. ******************************************************************************/
  49. /******************************************************************************
  50. * Global variable definitions ('extern')
  51. ******************************************************************************/
  52. /******************************************************************************
  53. * Global function prototypes (definition in C source)
  54. ******************************************************************************/
  55. ///<中断相关函数
  56. ///<中断使能/禁止
  57. void Ram_EnableIrq(void);
  58. void Ram_DisableIrq(void);
  59. ///<中断标志获取
  60. boolean_t Ram_GetIntFlag(void);
  61. ///<中断标志清除
  62. void Ram_ClearIntFlag(void);
  63. ///<奇偶校验出错地址获取
  64. uint32_t Ram_ErrAddrGet(void);
  65. //@} // RamGroup
  66. #ifdef __cplusplus
  67. }
  68. #endif
  69. #endif /* __RAM_H__ */
  70. /******************************************************************************/
  71. /* EOF (not truncated) */
  72. /******************************************************************************/