system_at32f403a_407.h 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /**
  2. **************************************************************************
  3. * @file system_at32f403a_407.h
  4. * @brief cmsis cortex-m4 system header file.
  5. **************************************************************************
  6. * Copyright notice & Disclaimer
  7. *
  8. * The software Board Support Package (BSP) that is made available to
  9. * download from Artery official website is the copyrighted work of Artery.
  10. * Artery authorizes customers to use, copy, and distribute the BSP
  11. * software and its related documentation for the purpose of design and
  12. * development in conjunction with Artery microcontrollers. Use of the
  13. * software is governed by this copyright notice and the following disclaimer.
  14. *
  15. * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES,
  16. * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS,
  17. * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR
  18. * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS,
  19. * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY,
  20. * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
  21. *
  22. **************************************************************************
  23. */
  24. #ifndef __SYSTEM_AT32F403A_407_H
  25. #define __SYSTEM_AT32F403A_407_H
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29. /** @addtogroup CMSIS
  30. * @{
  31. */
  32. /** @addtogroup AT32F403A_407_system
  33. * @{
  34. */
  35. /** @defgroup AT32F403A_407_system_clock_stable_definition
  36. * @{
  37. */
  38. #define HEXT_STABLE_DELAY (5000u)
  39. #define PLL_STABLE_DELAY (500u)
  40. #define SystemCoreClock system_core_clock
  41. #define DUMMY_NOP() {__NOP();__NOP();__NOP();__NOP();__NOP(); \
  42. __NOP();__NOP();__NOP();__NOP();__NOP(); \
  43. __NOP();__NOP();__NOP();__NOP();__NOP(); \
  44. __NOP();__NOP();__NOP();__NOP();__NOP();}
  45. /**
  46. * @}
  47. */
  48. /** @defgroup AT32F403A_407_system_exported_variables
  49. * @{
  50. */
  51. extern unsigned int system_core_clock; /*!< system clock frequency (core clock) */
  52. /**
  53. * @}
  54. */
  55. /** @defgroup AT32F403A_407_system_exported_functions
  56. * @{
  57. */
  58. extern void SystemInit(void);
  59. extern void system_core_clock_update(void);
  60. /**
  61. * @}
  62. */
  63. /**
  64. * @}
  65. */
  66. /**
  67. * @}
  68. */
  69. #ifdef __cplusplus
  70. }
  71. #endif
  72. #endif