xref: /nrf52832-nimble/nordic/nrfx/mdk/system_nrf52840.h (revision 150812a83cab50279bd772ef6db1bfaf255f2c5b)
1*150812a8SEvalZero /*
2*150812a8SEvalZero 
3*150812a8SEvalZero Copyright (c) 2009-2018 ARM Limited. All rights reserved.
4*150812a8SEvalZero 
5*150812a8SEvalZero     SPDX-License-Identifier: Apache-2.0
6*150812a8SEvalZero 
7*150812a8SEvalZero Licensed under the Apache License, Version 2.0 (the License); you may
8*150812a8SEvalZero not use this file except in compliance with the License.
9*150812a8SEvalZero You may obtain a copy of the License at
10*150812a8SEvalZero 
11*150812a8SEvalZero     www.apache.org/licenses/LICENSE-2.0
12*150812a8SEvalZero 
13*150812a8SEvalZero Unless required by applicable law or agreed to in writing, software
14*150812a8SEvalZero distributed under the License is distributed on an AS IS BASIS, WITHOUT
15*150812a8SEvalZero WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16*150812a8SEvalZero See the License for the specific language governing permissions and
17*150812a8SEvalZero limitations under the License.
18*150812a8SEvalZero 
19*150812a8SEvalZero NOTICE: This file has been modified by Nordic Semiconductor ASA.
20*150812a8SEvalZero 
21*150812a8SEvalZero */
22*150812a8SEvalZero 
23*150812a8SEvalZero #ifndef SYSTEM_NRF52840_H
24*150812a8SEvalZero #define SYSTEM_NRF52840_H
25*150812a8SEvalZero 
26*150812a8SEvalZero #ifdef __cplusplus
27*150812a8SEvalZero extern "C" {
28*150812a8SEvalZero #endif
29*150812a8SEvalZero 
30*150812a8SEvalZero #include <stdint.h>
31*150812a8SEvalZero 
32*150812a8SEvalZero 
33*150812a8SEvalZero extern uint32_t SystemCoreClock;    /*!< System Clock Frequency (Core Clock)  */
34*150812a8SEvalZero 
35*150812a8SEvalZero /**
36*150812a8SEvalZero  * Initialize the system
37*150812a8SEvalZero  *
38*150812a8SEvalZero  * @param  none
39*150812a8SEvalZero  * @return none
40*150812a8SEvalZero  *
41*150812a8SEvalZero  * @brief  Setup the microcontroller system.
42*150812a8SEvalZero  *         Initialize the System and update the SystemCoreClock variable.
43*150812a8SEvalZero  */
44*150812a8SEvalZero extern void SystemInit (void);
45*150812a8SEvalZero 
46*150812a8SEvalZero /**
47*150812a8SEvalZero  * Update SystemCoreClock variable
48*150812a8SEvalZero  *
49*150812a8SEvalZero  * @param  none
50*150812a8SEvalZero  * @return none
51*150812a8SEvalZero  *
52*150812a8SEvalZero  * @brief  Updates the SystemCoreClock with current core Clock
53*150812a8SEvalZero  *         retrieved from cpu registers.
54*150812a8SEvalZero  */
55*150812a8SEvalZero extern void SystemCoreClockUpdate (void);
56*150812a8SEvalZero 
57*150812a8SEvalZero #ifdef __cplusplus
58*150812a8SEvalZero }
59*150812a8SEvalZero #endif
60*150812a8SEvalZero 
61*150812a8SEvalZero #endif /* SYSTEM_NRF52840_H */
62