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