system_m2sxxx.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*******************************************************************************
  2. * (c) Copyright 2012-2013 Microsemi SoC Products Group. All rights reserved.
  3. *
  4. * SmartFusion2 CMSIS system initialization.
  5. *
  6. * SVN $Revision: 5280 $
  7. * SVN $Date: 2013-03-22 20:51:50 +0000 (Fri, 22 Mar 2013) $
  8. */
  9. #ifndef SYSTEM_M2SXXX_H
  10. #define SYSTEM_M2SXXX_H
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. /* Standard CMSIS global variables. */
  15. extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */
  16. /* SmartFusion2 specific clocks. */
  17. extern uint32_t g_FrequencyPCLK0; /*!< Clock frequency of APB bus 0. */
  18. extern uint32_t g_FrequencyPCLK1; /*!< Clock frequency of APB bus 1. */
  19. extern uint32_t g_FrequencyPCLK2; /*!< Clock frequency of APB bus 2. */
  20. extern uint32_t g_FrequencyFIC0; /*!< Clock frequecny of FPGA fabric interface controller 1. */
  21. extern uint32_t g_FrequencyFIC1; /*!< Clock frequecny of FPGA fabric inteface controller 2. */
  22. extern uint32_t g_FrequencyFIC64; /*!< Clock frequecny of 64-bit FPGA fabric interface controller. */
  23. /***************************************************************************//**
  24. * The SystemInit() is a standard CMSIS function called during system startup.
  25. * It is meant to perform low level hardware setup such as configuring DDR and
  26. * SERDES controllers.
  27. */
  28. void SystemInit(void);
  29. /***************************************************************************//**
  30. * The SystemCoreClockUpdate() is a standard CMSIS function which can be called
  31. * by the application in order to ensure that the SystemCoreClock global
  32. * variable contains the up to date Cortex-M3 core frequency. Calling this
  33. * function also updates the global variables containing the frequencies of the
  34. * APB busses connecting the peripherals.
  35. */
  36. void SystemCoreClockUpdate(void);
  37. #ifdef __cplusplus
  38. }
  39. #endif
  40. #endif