aboutsummaryrefslogtreecommitdiff
path: root/platform/ext/target/musca_b1/sse_200/Device/Include/system_core_init.h
blob: d75173597121d1d090ffe4121d08f0c6a80229c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
 * Copyright (c) 2009-2019 Arm Limited. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * This file is derivative of CMSIS V5.01 \Device\ARM\ARMCM33\Include\system_ARMCM33.h
 * Git SHA: 8a1d9d6ee18b143ae5befefa14d89fb5b3f99c75
 *
 */

#ifndef __MUSCA_B1_SYSTEM_CORE_INIT_H__
#define __MUSCA_B1_SYSTEM_CORE_INIT_H__

#include <stdint.h>

#ifdef __cplusplus
extern "C" {
#endif

extern uint32_t SystemCoreClock;     /*!< System Clock Frequency (Core Clock) */
extern uint32_t PeripheralClock;     /*!< Peripheral Clock Frequency */
extern uint32_t RefClock;            /*!< External Reference Clock Frequency */

/**
  \brief Setup the microcontroller system.

   Initialize the System and update the SystemCoreClock variable.
   It should be called from Reset Handler within the first few steps.
   The minimal feature set should be initialised for successful exit
   from Reset Handler to main entry point.
 */
extern void SystemInit (void);


/**
  \brief  Update SystemCoreClock variable.

   Updates the SystemCoreClock with current core Clock retrieved from cpu registers.
 */
extern void SystemCoreClockUpdate (void);

#ifdef __cplusplus
}
#endif

#endif /* __MUSCA_B1_SYSTEM_CORE_INIT_H__ */