|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- /**************************************************************************//**
- * @file system_ARMCM0plus.c
- * @brief CMSIS Device System Source File for
- * ARMCM0plus Device Series
- * @version V1.00
- * @date 19. March 2012
- *
- * @note
- * Copyright (C) 2012 ARM Limited. All rights reserved.
- *
- * @par
- * ARM Limited (ARM) is supplying this software for use with Cortex-M
- * processor based microcontrollers. This file can be freely distributed
- * within development tools that are supporting such ARM based processors.
- *
- * @par
- * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
- * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
- * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
- * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
- *
- ******************************************************************************/
-
- #include "ARMCM0plus.h"
-
- /*----------------------------------------------------------------------------
- Define clocks
- *----------------------------------------------------------------------------*/
- #define __HSI ( 8000000UL)
- #define __XTAL ( 5000000UL) /* Oscillator frequency */
-
- #define __SYSTEM_CLOCK (5*__XTAL)
-
-
- /*----------------------------------------------------------------------------
- Clock Variable definitions
- *----------------------------------------------------------------------------*/
- uint32_t SystemCoreClock = __SYSTEM_CLOCK;/*!< System Clock Frequency (Core Clock)*/
-
-
- /*----------------------------------------------------------------------------
- Clock functions
- *----------------------------------------------------------------------------*/
- void SystemCoreClockUpdate (void) /* Get Core Clock Frequency */
- {
-
- SystemCoreClock = __SYSTEM_CLOCK;
-
- }
-
- /**
- * Initialize the system
- *
- * @param none
- * @return none
- *
- * @brief Setup the microcontroller system.
- * Initialize the System.
- */
- void SystemInit (void)
- {
-
- SystemCoreClock = __SYSTEM_CLOCK;
-
- }
|