system_gd32f30x.h 2.3 KB

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