1 /**************************************************************************//** 2 * @file system_ARMCM3.h 3 * @brief CMSIS Device System Header File for 4 * ARMCM3 Device Series 5 * @version V1.08 6 * @date 23. November 2012 7 * 8 * @note 9 * 10 ******************************************************************************/ 11 /* Copyright (c) 2011 - 2012 ARM LIMITED 12 13 All rights reserved. 14 Redistribution and use in source and binary forms, with or without 15 modification, are permitted provided that the following conditions are met: 16 - Redistributions of source code must retain the above copyright 17 notice, this list of conditions and the following disclaimer. 18 - Redistributions in binary form must reproduce the above copyright 19 notice, this list of conditions and the following disclaimer in the 20 documentation and/or other materials provided with the distribution. 21 - Neither the name of ARM nor the names of its contributors may be used 22 to endorse or promote products derived from this software without 23 specific prior written permission. 24 * 25 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 26 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 27 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 28 ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE 29 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 30 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 31 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 32 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 33 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 34 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 35 POSSIBILITY OF SUCH DAMAGE. 36 ---------------------------------------------------------------------------*/ 37 38 39 #ifndef _SYSTEM_8195A_H 40 #define _SYSTEM_8195A_H 41 42 #ifdef __cplusplus 43 extern "C" { 44 #endif 45 46 extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ 47 48 49 /** 50 * Initialize the system 51 * 52 * @param none 53 * @return none 54 * 55 * @brief Setup the microcontroller system. 56 * Initialize the System and update the SystemCoreClock variable. 57 */ 58 extern void SystemInit (void); 59 60 /** 61 * Update SystemCoreClock variable 62 * 63 * @param none 64 * @return none 65 * 66 * @brief Updates the SystemCoreClock with current core Clock 67 * retrieved from cpu registers. 68 */ 69 extern void SystemCoreClockUpdate (void); 70 extern u32 SystemGetCpuClk(void); 71 extern void SystemSetCpuClk(u8 CpuClk); 72 73 /** 74 * @brief Generate random seed 75 * @param none 76 * @return value: random seed value 77 */ 78 u32 Gen_RandomSeed(VOID); 79 80 #ifdef __cplusplus 81 } 82 #endif 83 84 #endif /* _SYSTEM_8195A_H */ 85