CMSIS2000
0.0.7
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
system_ARMCM0plus.c
Go to the documentation of this file.
1
/**************************************************************************/
/**
2
* @file system_ARMCM0plus.c
3
* @brief CMSIS Device System Source File for
4
* ARMCM0plus Device Series
5
* @version V1.00
6
* @date 19. March 2012
7
*
8
* @note
9
* Copyright (C) 2012 ARM Limited. All rights reserved.
10
*
11
* @par
12
* ARM Limited (ARM) is supplying this software for use with Cortex-M
13
* processor based microcontrollers. This file can be freely distributed
14
* within development tools that are supporting such ARM based processors.
15
*
16
* @par
17
* THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
18
* OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
19
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
20
* ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
21
* CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
22
*
23
******************************************************************************/
24
25
#include "
ARMCM0plus.h
"
26
27
/*----------------------------------------------------------------------------
28
Define clocks
29
*----------------------------------------------------------------------------*/
30
#define __HSI ( 8000000UL)
31
#define __XTAL ( 5000000UL)
/* Oscillator frequency */
32
33
#define __SYSTEM_CLOCK (5*__XTAL)
34
35
36
/*----------------------------------------------------------------------------
37
Clock Variable definitions
38
*----------------------------------------------------------------------------*/
39
uint32_t
SystemCoreClock
=
__SYSTEM_CLOCK
;
/*!< System Clock Frequency (Core Clock)*/
40
41
42
/*----------------------------------------------------------------------------
43
Clock functions
44
*----------------------------------------------------------------------------*/
45
void
SystemCoreClockUpdate
(
void
)
/* Get Core Clock Frequency */
46
{
47
48
SystemCoreClock
=
__SYSTEM_CLOCK
;
49
50
}
51
52
/**
53
* Initialize the system
54
*
55
* @param none
56
* @return none
57
*
58
* @brief Setup the microcontroller system.
59
* Initialize the System.
60
*/
61
void
SystemInit
(
void
)
62
{
63
64
SystemCoreClock
=
__SYSTEM_CLOCK
;
65
66
}
Device
ARM
ARMCM0plus
Source
system_ARMCM0plus.c
Generated on Wed Mar 6 2013 01:06:09 for CMSIS2000 by
1.8.1.2