![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Color Oled(SSD1331) connect to STMicroelectronics Nucleo-F466
mbed-os/targets/TARGET_NUVOTON/TARGET_NUC472/device/system_NUC472_442.h@3:f3764f852aa8, 2018-10-11 (annotated)
- Committer:
- kadonotakashi
- Date:
- Thu Oct 11 02:27:46 2018 +0000
- Revision:
- 3:f3764f852aa8
- Parent:
- 0:8fdf9a60065b
Nucreo 446 + SSD1331 test version;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kadonotakashi | 0:8fdf9a60065b | 1 | /**************************************************************************//** |
kadonotakashi | 0:8fdf9a60065b | 2 | * @file system_NUC472_442.h |
kadonotakashi | 0:8fdf9a60065b | 3 | * @version V1.00 |
kadonotakashi | 0:8fdf9a60065b | 4 | * $Revision: 5 $ |
kadonotakashi | 0:8fdf9a60065b | 5 | * $Date: 14/05/29 1:13p $ |
kadonotakashi | 0:8fdf9a60065b | 6 | * @brief NUC472/NUC442 system clock definition file |
kadonotakashi | 0:8fdf9a60065b | 7 | * |
kadonotakashi | 0:8fdf9a60065b | 8 | * @note |
kadonotakashi | 0:8fdf9a60065b | 9 | * Copyright (C) 2013 Nuvoton Technology Corp. All rights reserved. |
kadonotakashi | 0:8fdf9a60065b | 10 | *****************************************************************************/ |
kadonotakashi | 0:8fdf9a60065b | 11 | #ifndef __SYSTEM_NUC472_442_H__ |
kadonotakashi | 0:8fdf9a60065b | 12 | #define __SYSTEM_NUC472_442_H__ |
kadonotakashi | 0:8fdf9a60065b | 13 | |
kadonotakashi | 0:8fdf9a60065b | 14 | #ifdef __cplusplus |
kadonotakashi | 0:8fdf9a60065b | 15 | extern "C" { |
kadonotakashi | 0:8fdf9a60065b | 16 | #endif |
kadonotakashi | 0:8fdf9a60065b | 17 | |
kadonotakashi | 0:8fdf9a60065b | 18 | #include <stdint.h> |
kadonotakashi | 0:8fdf9a60065b | 19 | |
kadonotakashi | 0:8fdf9a60065b | 20 | |
kadonotakashi | 0:8fdf9a60065b | 21 | /*---------------------------------------------------------------------------- |
kadonotakashi | 0:8fdf9a60065b | 22 | Define clocks |
kadonotakashi | 0:8fdf9a60065b | 23 | *----------------------------------------------------------------------------*/ |
kadonotakashi | 0:8fdf9a60065b | 24 | #define __HXT (12000000UL) /*!< High Speed External Crystal Clock Frequency 12MHz */ |
kadonotakashi | 0:8fdf9a60065b | 25 | #define __LXT (32768UL) /*!< Low Speed External Crystal Clock Frequency 32.768kHz */ |
kadonotakashi | 0:8fdf9a60065b | 26 | #define __HIRC (22118400UL) /*!< High Speed Internal 22MHz RC Oscillator Frequency */ |
kadonotakashi | 0:8fdf9a60065b | 27 | #define __LIRC (10000UL) /*!< Low Speed Internal 10kHz RC Oscillator Frequency */ |
kadonotakashi | 0:8fdf9a60065b | 28 | #define __HSI (__HIRC) /* Factory Default is internal 12MHz */ |
kadonotakashi | 0:8fdf9a60065b | 29 | |
kadonotakashi | 0:8fdf9a60065b | 30 | |
kadonotakashi | 0:8fdf9a60065b | 31 | extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ |
kadonotakashi | 0:8fdf9a60065b | 32 | extern uint32_t CyclesPerUs; /*!< Cycles per micro second */ |
kadonotakashi | 0:8fdf9a60065b | 33 | extern uint32_t PllClock; /*!< PLL Output Clock Frequency */ |
kadonotakashi | 0:8fdf9a60065b | 34 | |
kadonotakashi | 0:8fdf9a60065b | 35 | |
kadonotakashi | 0:8fdf9a60065b | 36 | /** |
kadonotakashi | 0:8fdf9a60065b | 37 | * Initialize the system |
kadonotakashi | 0:8fdf9a60065b | 38 | * |
kadonotakashi | 0:8fdf9a60065b | 39 | * @return none |
kadonotakashi | 0:8fdf9a60065b | 40 | * |
kadonotakashi | 0:8fdf9a60065b | 41 | * @brief Setup the microcontroller system. |
kadonotakashi | 0:8fdf9a60065b | 42 | */ |
kadonotakashi | 0:8fdf9a60065b | 43 | extern void SystemInit (void); |
kadonotakashi | 0:8fdf9a60065b | 44 | |
kadonotakashi | 0:8fdf9a60065b | 45 | /** |
kadonotakashi | 0:8fdf9a60065b | 46 | * Update SystemCoreClock variable |
kadonotakashi | 0:8fdf9a60065b | 47 | * |
kadonotakashi | 0:8fdf9a60065b | 48 | * @return none |
kadonotakashi | 0:8fdf9a60065b | 49 | * |
kadonotakashi | 0:8fdf9a60065b | 50 | * @brief Updates the SystemCoreClock with current core Clock |
kadonotakashi | 0:8fdf9a60065b | 51 | * retrieved from CPU registers. |
kadonotakashi | 0:8fdf9a60065b | 52 | */ |
kadonotakashi | 0:8fdf9a60065b | 53 | extern void SystemCoreClockUpdate (void); |
kadonotakashi | 0:8fdf9a60065b | 54 | |
kadonotakashi | 0:8fdf9a60065b | 55 | #ifdef __cplusplus |
kadonotakashi | 0:8fdf9a60065b | 56 | } |
kadonotakashi | 0:8fdf9a60065b | 57 | #endif |
kadonotakashi | 0:8fdf9a60065b | 58 | |
kadonotakashi | 0:8fdf9a60065b | 59 | #endif /* __SYSTEM_NUC472_442_H__ */ |
kadonotakashi | 0:8fdf9a60065b | 60 | /*** (C) COPYRIGHT 2013 Nuvoton Technology Corp. ***/ |