system_gd32f30x.h 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /*!
  2. \file system_gd32f30x.h
  3. \brief CMSIS Cortex-M4 Device Peripheral Access Layer Header File for
  4. GD32F30x Device Series
  5. */
  6. /* Copyright (c) 2012 ARM LIMITED
  7. Copyright (c) 2023, GigaDevice Semiconductor Inc.
  8. All rights reserved.
  9. Redistribution and use in source and binary forms, with or without
  10. modification, are permitted provided that the following conditions are met:
  11. - Redistributions of source code must retain the above copyright
  12. notice, this list of conditions and the following disclaimer.
  13. - Redistributions in binary form must reproduce the above copyright
  14. notice, this list of conditions and the following disclaimer in the
  15. documentation and/or other materials provided with the distribution.
  16. - Neither the name of ARM nor the names of its contributors may be used
  17. to endorse or promote products derived from this software without
  18. specific prior written permission.
  19. *
  20. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  21. AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  22. IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  23. ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE
  24. LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  25. CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  26. SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  27. INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  28. CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  29. ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  30. POSSIBILITY OF SUCH DAMAGE.
  31. ---------------------------------------------------------------------------*/
  32. /* This file refers the CMSIS standard, some adjustments are made according to GigaDevice chips */
  33. #ifndef SYSTEM_GD32F30X_H
  34. #define SYSTEM_GD32F30X_H
  35. #ifdef __cplusplus
  36. extern "C" {
  37. #endif
  38. #include <stdint.h>
  39. /* system clock frequency (core clock) */
  40. extern uint32_t SystemCoreClock;
  41. /* function declarations */
  42. /* initialize the system and update the SystemCoreClock variable */
  43. extern void SystemInit (void);
  44. /* update the SystemCoreClock with current core clock retrieved from cpu registers */
  45. extern void SystemCoreClockUpdate (void);
  46. #ifdef __cplusplus
  47. }
  48. #endif
  49. #endif /* SYSTEM_GD32F30X_H */