mbed library sources. Supersedes mbed-src.
Fork of mbed-dev by
targets/TARGET_NUVOTON/TARGET_M451/device/system_M451Series.h@152:9a67f0b066fc, 2016-12-15 (annotated)
- Committer:
- <>
- Date:
- Thu Dec 15 11:48:27 2016 +0000
- Revision:
- 152:9a67f0b066fc
- Parent:
- 149:156823d33999
This updates the lib to the mbed lib v131
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
<> | 149:156823d33999 | 1 | /****************************************************************************** |
<> | 149:156823d33999 | 2 | * @file system_M451Series.h |
<> | 149:156823d33999 | 3 | * @version V0.10 |
<> | 149:156823d33999 | 4 | * $Revision: 7 $ |
<> | 149:156823d33999 | 5 | * $Date: 15/09/02 10:02a $ |
<> | 149:156823d33999 | 6 | * @brief CMSIS Cortex-M4 Core Peripheral Access Layer Header File for M451 Series MCU |
<> | 149:156823d33999 | 7 | * |
<> | 149:156823d33999 | 8 | * @note |
<> | 149:156823d33999 | 9 | * Copyright (C) 2013~2015 Nuvoton Technology Corp. All rights reserved. |
<> | 149:156823d33999 | 10 | *****************************************************************************/ |
<> | 149:156823d33999 | 11 | |
<> | 149:156823d33999 | 12 | #ifndef __SYSTEM_M451SERIES_H__ |
<> | 149:156823d33999 | 13 | #define __SYSTEM_M451SERIES_H__ |
<> | 149:156823d33999 | 14 | |
<> | 149:156823d33999 | 15 | #ifdef __cplusplus |
<> | 149:156823d33999 | 16 | extern "C" { |
<> | 149:156823d33999 | 17 | #endif |
<> | 149:156823d33999 | 18 | |
<> | 149:156823d33999 | 19 | #include <stdint.h> |
<> | 149:156823d33999 | 20 | |
<> | 149:156823d33999 | 21 | /*---------------------------------------------------------------------------------------------------------*/ |
<> | 149:156823d33999 | 22 | /* Macro Definition */ |
<> | 149:156823d33999 | 23 | /*---------------------------------------------------------------------------------------------------------*/ |
<> | 149:156823d33999 | 24 | #ifndef DEBUG_PORT |
<> | 149:156823d33999 | 25 | # define DEBUG_PORT UART0 /*!< Select Debug Port which is used for retarget.c to output debug message to UART */ |
<> | 149:156823d33999 | 26 | #endif |
<> | 149:156823d33999 | 27 | |
<> | 149:156823d33999 | 28 | |
<> | 149:156823d33999 | 29 | /*---------------------------------------------------------------------------- |
<> | 149:156823d33999 | 30 | Define clocks |
<> | 149:156823d33999 | 31 | *----------------------------------------------------------------------------*/ |
<> | 149:156823d33999 | 32 | |
<> | 149:156823d33999 | 33 | #define __HSI (12000000UL) /*!< PLL default output is 72MHz */ |
<> | 149:156823d33999 | 34 | #define __HXT (12000000UL) /*!< External Crystal Clock Frequency */ |
<> | 149:156823d33999 | 35 | #define __LXT (32768UL) /*!< External Crystal Clock Frequency 32.768KHz */ |
<> | 149:156823d33999 | 36 | #define __HIRC (22118400UL) /*!< Internal 22M RC Oscillator Frequency */ |
<> | 149:156823d33999 | 37 | #define __LIRC (10000UL) /*!< Internal 10K RC Oscillator Frequency */ |
<> | 149:156823d33999 | 38 | #define __SYS_OSC_CLK ( ___HSI) /* Main oscillator frequency */ |
<> | 149:156823d33999 | 39 | |
<> | 149:156823d33999 | 40 | |
<> | 149:156823d33999 | 41 | #define __SYSTEM_CLOCK (1*__HXT) |
<> | 149:156823d33999 | 42 | |
<> | 149:156823d33999 | 43 | extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ |
<> | 149:156823d33999 | 44 | extern uint32_t CyclesPerUs; /*!< Cycles per micro second */ |
<> | 149:156823d33999 | 45 | extern uint32_t PllClock; /*!< PLL Output Clock Frequency */ |
<> | 149:156823d33999 | 46 | |
<> | 149:156823d33999 | 47 | |
<> | 149:156823d33999 | 48 | /** |
<> | 149:156823d33999 | 49 | * Initialize the system |
<> | 149:156823d33999 | 50 | * |
<> | 149:156823d33999 | 51 | * @param None |
<> | 149:156823d33999 | 52 | * @return None |
<> | 149:156823d33999 | 53 | * |
<> | 149:156823d33999 | 54 | * @brief Setup the microcontroller system. |
<> | 149:156823d33999 | 55 | * Initialize the System and update the SystemCoreClock variable. |
<> | 149:156823d33999 | 56 | */ |
<> | 149:156823d33999 | 57 | extern void SystemInit(void); |
<> | 149:156823d33999 | 58 | |
<> | 149:156823d33999 | 59 | /** |
<> | 149:156823d33999 | 60 | * Update SystemCoreClock variable |
<> | 149:156823d33999 | 61 | * |
<> | 149:156823d33999 | 62 | * @param None |
<> | 149:156823d33999 | 63 | * @return None |
<> | 149:156823d33999 | 64 | * |
<> | 149:156823d33999 | 65 | * @brief Updates the SystemCoreClock with current core Clock |
<> | 149:156823d33999 | 66 | * retrieved from cpu registers. |
<> | 149:156823d33999 | 67 | */ |
<> | 149:156823d33999 | 68 | extern void SystemCoreClockUpdate(void); |
<> | 149:156823d33999 | 69 | |
<> | 149:156823d33999 | 70 | #ifdef __cplusplus |
<> | 149:156823d33999 | 71 | } |
<> | 149:156823d33999 | 72 | #endif |
<> | 149:156823d33999 | 73 | |
<> | 149:156823d33999 | 74 | #endif /* __SYSTEM_M451SERIES_H__ */ |
<> | 149:156823d33999 | 75 | /*** (C) COPYRIGHT 2013~2015 Nuvoton Technology Corp. ***/ |