1 /**************************************************************************//** 2 * @file system_DA1469x.h 3 * @brief CMSIS Device System Header File for DA1469x Device 4 * @version V5.3.1 5 * @date 17. May 2019 6 ******************************************************************************/ 7 /* 8 * Copyright (c) 2009-2018 Arm Limited. All rights reserved. 9 * 10 * SPDX-License-Identifier: Apache-2.0 11 * 12 * Licensed under the Apache License, Version 2.0 (the License); you may 13 * not use this file except in compliance with the License. 14 * You may obtain a copy of the License at 15 * 16 * www.apache.org/licenses/LICENSE-2.0 17 * 18 * Unless required by applicable law or agreed to in writing, software 19 * distributed under the License is distributed on an AS IS BASIS, WITHOUT 20 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 21 * See the License for the specific language governing permissions and 22 * limitations under the License. 23 */ 24 /* Copyright (c) 2017 Modified by Dialog Semiconductor */ 25 26 27 #ifndef SYSTEM_DA1469x_H 28 #define SYSTEM_DA1469x_H 29 30 #ifdef __cplusplus 31 extern "C" { 32 #endif 33 34 #include <stdint.h> 35 #include <stdbool.h> 36 37 extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ 38 39 40 /** 41 \brief Setup the microcontroller system. 42 43 Initialize the System and update the SystemCoreClock variable. 44 */ 45 extern void SystemInit (void); 46 47 48 /** 49 \brief Update SystemCoreClock variable. 50 Updates the SystemCoreClock with current core Clock retrieved from cpu registers. 51 */ 52 extern void SystemCoreClockUpdate (void); 53 54 /** 55 * \brief Convert a CPU address to a physical address 56 * 57 * To calculate the physical address, the current remapping (SYS_CTRL_REG.REMAP_ADR0) 58 * is used. 59 * 60 * \param [in] addr address seen by CPU 61 * 62 * \return physical address (for DMA, AES/HASH etc.) -- can be same or different as addr 63 * 64 */ 65 uint32_t black_orca_phy_addr(uint32_t addr); 66 67 68 #ifdef __cplusplus 69 } 70 #endif 71 72 #endif /* SYSTEM_DA1469x_H */ 73