![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Color Oled(SSD1331) connect to STMicroelectronics Nucleo-F466
Diff: mbed-os/targets/TARGET_NUVOTON/TARGET_NUC472/device/system_NUC472_442.h
- Revision:
- 0:8fdf9a60065b
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-os/targets/TARGET_NUVOTON/TARGET_NUC472/device/system_NUC472_442.h Wed Oct 10 00:33:53 2018 +0000 @@ -0,0 +1,60 @@ +/**************************************************************************//** + * @file system_NUC472_442.h + * @version V1.00 + * $Revision: 5 $ + * $Date: 14/05/29 1:13p $ + * @brief NUC472/NUC442 system clock definition file + * + * @note + * Copyright (C) 2013 Nuvoton Technology Corp. All rights reserved. + *****************************************************************************/ +#ifndef __SYSTEM_NUC472_442_H__ +#define __SYSTEM_NUC472_442_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +#include <stdint.h> + + +/*---------------------------------------------------------------------------- + Define clocks + *----------------------------------------------------------------------------*/ +#define __HXT (12000000UL) /*!< High Speed External Crystal Clock Frequency 12MHz */ +#define __LXT (32768UL) /*!< Low Speed External Crystal Clock Frequency 32.768kHz */ +#define __HIRC (22118400UL) /*!< High Speed Internal 22MHz RC Oscillator Frequency */ +#define __LIRC (10000UL) /*!< Low Speed Internal 10kHz RC Oscillator Frequency */ +#define __HSI (__HIRC) /* Factory Default is internal 12MHz */ + + +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 + * + * @return none + * + * @brief Setup the microcontroller system. + */ +extern void SystemInit (void); + +/** + * Update SystemCoreClock variable + * + * @return none + * + * @brief Updates the SystemCoreClock with current core Clock + * retrieved from CPU registers. + */ +extern void SystemCoreClockUpdate (void); + +#ifdef __cplusplus +} +#endif + +#endif /* __SYSTEM_NUC472_442_H__ */ +/*** (C) COPYRIGHT 2013 Nuvoton Technology Corp. ***/