CMSIS2000
0.0.7
Титульная страница
Описания
Группы
Структуры данных
Файлы
Файлы
Список членов всех файлов
Указатель
Структуры данных
Файлы
Функции
Переменные
Определения типов
Перечисления
Элементы перечислений
Макросы
Группы
Страницы
system_ARMCM3.c
См. документацию.
1
/**************************************************************************/
/**
2
* @file system_ARMCM3.c
3
* @brief CMSIS Device System Source File for
4
* ARMCM3 Device Series
5
* @version V1.07
6
* @date 30. January 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 "
ARMCM3.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
ARMCM3
Source
system_ARMCM3.c
Документация по CMSIS2000. Последние изменения: Ср 6 Мар 2013 01:10:44. Создано системой
1.8.1.2