system_hc32l130f8ua.h 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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 system_hc32l130f8ua.h
  12. **
  13. ** @brief Headerfile for SYSTEM functions
  14. **
  15. ** @author MADS Team
  16. **
  17. ** - 2022-01-26.
  18. **
  19. ******************************************************************************/
  20. #ifndef __SYSTEM_HC32L130F8UA_H__
  21. #define __SYSTEM_HC32L130F8UA_H__
  22. /******************************************************************************/
  23. /* Include files */
  24. /******************************************************************************/
  25. #include <stdint.h>
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29. /******************************************************************************/
  30. /* Global pre-processor symbols/macros ('define') */
  31. /******************************************************************************/
  32. #define HWWD_DISABLE (1)
  33. /**
  34. ******************************************************************************
  35. ** \brief Clock Setup macro definition
  36. **
  37. ** - 0: CLOCK_SETTING_NONE - User provides own clock setting in application
  38. ** - 1: CLOCK_SETTING_CMSIS -
  39. ******************************************************************************/
  40. #define CLOCK_SETTING_NONE 0u
  41. #define CLOCK_SETTING_CMSIS 1u
  42. /******************************************************************************/
  43. /* */
  44. /* START OF USER SETTINGS HERE */
  45. /* =========================== */
  46. /* */
  47. /* All lines with '<<<' can be set by user. */
  48. /* */
  49. /******************************************************************************/
  50. /******************************************************************************/
  51. /* Global function prototypes ('extern', definition in C source) */
  52. /******************************************************************************/
  53. extern uint32_t SystemCoreClock; // System Clock Frequency (Core Clock)
  54. extern void SystemInit (void); // Initialize the system
  55. extern void SystemCoreClockUpdate (void); // Update SystemCoreClock variable
  56. #ifdef __cplusplus
  57. }
  58. #endif
  59. #endif /* _SYSTEM_HC32L130F8UA_H_ */