Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-dev by
Diff: targets/TARGET_NUVOTON/TARGET_M451/device/system_M451Series.h
- Revision:
- 149:156823d33999
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/targets/TARGET_NUVOTON/TARGET_M451/device/system_M451Series.h Fri Oct 28 11:17:30 2016 +0100
@@ -0,0 +1,75 @@
+/******************************************************************************
+ * @file system_M451Series.h
+ * @version V0.10
+ * $Revision: 7 $
+ * $Date: 15/09/02 10:02a $
+ * @brief CMSIS Cortex-M4 Core Peripheral Access Layer Header File for M451 Series MCU
+ *
+ * @note
+ * Copyright (C) 2013~2015 Nuvoton Technology Corp. All rights reserved.
+*****************************************************************************/
+
+#ifndef __SYSTEM_M451SERIES_H__
+#define __SYSTEM_M451SERIES_H__
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include <stdint.h>
+
+/*---------------------------------------------------------------------------------------------------------*/
+/* Macro Definition */
+/*---------------------------------------------------------------------------------------------------------*/
+#ifndef DEBUG_PORT
+# define DEBUG_PORT UART0 /*!< Select Debug Port which is used for retarget.c to output debug message to UART */
+#endif
+
+
+/*----------------------------------------------------------------------------
+ Define clocks
+ *----------------------------------------------------------------------------*/
+
+#define __HSI (12000000UL) /*!< PLL default output is 72MHz */
+#define __HXT (12000000UL) /*!< External Crystal Clock Frequency */
+#define __LXT (32768UL) /*!< External Crystal Clock Frequency 32.768KHz */
+#define __HIRC (22118400UL) /*!< Internal 22M RC Oscillator Frequency */
+#define __LIRC (10000UL) /*!< Internal 10K RC Oscillator Frequency */
+#define __SYS_OSC_CLK ( ___HSI) /* Main oscillator frequency */
+
+
+#define __SYSTEM_CLOCK (1*__HXT)
+
+extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */
+extern uint32_t CyclesPerUs; /*!< Cycles per micro second */
+extern uint32_t PllClock; /*!< PLL Output Clock Frequency */
+
+
+/**
+ * Initialize the system
+ *
+ * @param None
+ * @return None
+ *
+ * @brief Setup the microcontroller system.
+ * Initialize the System and update the SystemCoreClock variable.
+ */
+extern void SystemInit(void);
+
+/**
+ * Update SystemCoreClock variable
+ *
+ * @param None
+ * @return None
+ *
+ * @brief Updates the SystemCoreClock with current core Clock
+ * retrieved from cpu registers.
+ */
+extern void SystemCoreClockUpdate(void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __SYSTEM_M451SERIES_H__ */
+/*** (C) COPYRIGHT 2013~2015 Nuvoton Technology Corp. ***/
