aboutsummaryrefslogtreecommitdiff
path: root/lib/chibios-contrib/os/common/ext/CMSIS/Nuvoton/NUMICRO/system_NUC123.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chibios-contrib/os/common/ext/CMSIS/Nuvoton/NUMICRO/system_NUC123.h')
-rw-r--r--lib/chibios-contrib/os/common/ext/CMSIS/Nuvoton/NUMICRO/system_NUC123.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/lib/chibios-contrib/os/common/ext/CMSIS/Nuvoton/NUMICRO/system_NUC123.h b/lib/chibios-contrib/os/common/ext/CMSIS/Nuvoton/NUMICRO/system_NUC123.h
new file mode 100644
index 000000000..61fc21858
--- /dev/null
+++ b/lib/chibios-contrib/os/common/ext/CMSIS/Nuvoton/NUMICRO/system_NUC123.h
@@ -0,0 +1,66 @@
1/**************************************************************************//**
2 * @file system_NUC123.h
3 * @version V3.0
4 * $Revision: 5 $
5 * $Date: 15/07/02 11:21a $
6 * @brief NUC123 Series CMSIS System Header File
7 *
8 * @note
9 * SPDX-License-Identifier: Apache-2.0
10 * Copyright (C) 2014~2015 Nuvoton Technology Corp. All rights reserved.
11 *
12 ******************************************************************************/
13#ifndef __SYSTEM_NUC123_H
14#define __SYSTEM_NUC123_H
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19/*---------------------------------------------------------------------------------------------------------*/
20/* Macro Definition */
21/*---------------------------------------------------------------------------------------------------------*/
22#ifndef DEBUG_PORT
23# define DEBUG_PORT UART0 /*!< Select Debug Port which is used for retarget.c to output debug message to UART */
24#endif
25
26/*----------------------------------------------------------------------------
27 Define SYSCLK
28 *----------------------------------------------------------------------------*/
29#define __HXT (12000000UL) /*!< External Crystal Clock Frequency */
30#define __LXT (32768UL) /*!< External Crystal Clock Frequency 32.768KHz */
31#define __HIRC (22118400UL) /*!< Internal 22M RC Oscillator Frequency */
32#define __LIRC (10000UL) /*!< Internal 10K RC Oscillator Frequency */
33#define __HSI (50000000UL) /*!< PLL default output is 50MHz */
34
35extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */
36extern uint32_t CyclesPerUs; /*!< Cycles per micro second */
37extern uint32_t PllClock; /*!< PLL Output Clock Frequency */
38
39/**
40 * Initialize the system
41 *
42 * @param none
43 * @return none
44 *
45 * @brief Setup the microcontroller system
46 * Initialize GPIO directions and values
47 */
48extern void SystemInit(void);
49
50
51/**
52 * Update SystemCoreClock variable
53 *
54 * @param none
55 * @return none
56 *
57 * @brief Updates the SystemCoreClock with current core Clock
58 * retrieved from CPU registers.
59 */
60extern void SystemCoreClockUpdate(void);
61
62#ifdef __cplusplus
63}
64#endif
65
66#endif \ No newline at end of file