hc32f4xx.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /**
  2. *******************************************************************************
  3. * @file hc32f4xx.h
  4. * @brief This file contains the common part of the HC32 series.
  5. @verbatim
  6. Change Logs:
  7. Date Author Notes
  8. 2022-12-31 CDT First version
  9. @endverbatim
  10. *******************************************************************************
  11. * Copyright (C) 2022, Xiaohua Semiconductor Co., Ltd. All rights reserved.
  12. *
  13. * This software component is licensed by XHSC under BSD 3-Clause license
  14. * (the "License"); You may not use this file except in compliance with the
  15. * License. You may obtain a copy of the License at:
  16. * opensource.org/licenses/BSD-3-Clause
  17. *
  18. *******************************************************************************
  19. */
  20. #ifndef __HC32F4XX_H__
  21. #define __HC32F4XX_H__
  22. /* C binding of definitions if building with C++ compiler */
  23. #ifdef __cplusplus
  24. extern "C"
  25. {
  26. #endif
  27. /*******************************************************************************
  28. * Include files
  29. ******************************************************************************/
  30. /**
  31. * @brief HC32F4xx Device Include
  32. */
  33. #if defined(HC32F448)
  34. #include "hc32f448.h"
  35. #include "system_hc32f448.h"
  36. #else
  37. #error "Please select first the target HC32xxxx device used in your application (in hc32xxxx.h file)"
  38. #endif
  39. /*******************************************************************************
  40. * Global type definitions ('typedef')
  41. ******************************************************************************/
  42. /*******************************************************************************
  43. * Global pre-processor symbols/macros ('#define')
  44. ******************************************************************************/
  45. /*******************************************************************************
  46. * Global variable definitions ('extern')
  47. ******************************************************************************/
  48. /*******************************************************************************
  49. * Global function prototypes (definition in C source)
  50. ******************************************************************************/
  51. #ifdef __cplusplus
  52. }
  53. #endif
  54. #endif /* __HC32F4XX_H__ */
  55. /*******************************************************************************
  56. * EOF (not truncated)
  57. ******************************************************************************/