A simple 128x32 graphical LCD program to quickstart with LCD on ARM mbed IoT Starter Kit. This requires mbed Applciation Shield with FRDM-K64F platform.
mbed/TARGET_KL46Z/system_MKL46Z4.h@1:eb68c94a8ee5, 2015-04-12 (annotated)
- Committer:
- tushki7
- Date:
- Sun Apr 12 15:45:52 2015 +0000
- Revision:
- 1:eb68c94a8ee5
- Parent:
- 0:60d829a0353a
A simple 128x32 LCD program with ARM mbed IoT Starter Kit;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tushki7 | 0:60d829a0353a | 1 | /* |
tushki7 | 0:60d829a0353a | 2 | ** ################################################################### |
tushki7 | 0:60d829a0353a | 3 | ** Processors: MKL46Z256VLH4 |
tushki7 | 0:60d829a0353a | 4 | ** MKL46Z128VLH4 |
tushki7 | 0:60d829a0353a | 5 | ** MKL46Z256VLL4 |
tushki7 | 0:60d829a0353a | 6 | ** MKL46Z128VLL4 |
tushki7 | 0:60d829a0353a | 7 | ** MKL46Z256VMC4 |
tushki7 | 0:60d829a0353a | 8 | ** MKL46Z128VMC4 |
tushki7 | 0:60d829a0353a | 9 | ** |
tushki7 | 0:60d829a0353a | 10 | ** Compilers: ARM Compiler |
tushki7 | 0:60d829a0353a | 11 | ** Freescale C/C++ for Embedded ARM |
tushki7 | 0:60d829a0353a | 12 | ** GNU C Compiler |
tushki7 | 0:60d829a0353a | 13 | ** IAR ANSI C/C++ Compiler for ARM |
tushki7 | 0:60d829a0353a | 14 | ** |
tushki7 | 0:60d829a0353a | 15 | ** Reference manual: KL46P121M48SF4RM, Rev.1 Draft A, Aug 2012 |
tushki7 | 0:60d829a0353a | 16 | ** Version: rev. 2.0, 2012-12-12 |
tushki7 | 0:60d829a0353a | 17 | ** |
tushki7 | 0:60d829a0353a | 18 | ** Abstract: |
tushki7 | 0:60d829a0353a | 19 | ** Provides a system configuration function and a global variable that |
tushki7 | 0:60d829a0353a | 20 | ** contains the system frequency. It configures the device and initializes |
tushki7 | 0:60d829a0353a | 21 | ** the oscillator (PLL) that is part of the microcontroller device. |
tushki7 | 0:60d829a0353a | 22 | ** |
tushki7 | 0:60d829a0353a | 23 | ** Copyright: 2012 Freescale, Inc. All Rights Reserved. |
tushki7 | 0:60d829a0353a | 24 | ** |
tushki7 | 0:60d829a0353a | 25 | ** http: www.freescale.com |
tushki7 | 0:60d829a0353a | 26 | ** mail: support@freescale.com |
tushki7 | 0:60d829a0353a | 27 | ** |
tushki7 | 0:60d829a0353a | 28 | ** Revisions: |
tushki7 | 0:60d829a0353a | 29 | ** - rev. 1.0 (2012-10-16) |
tushki7 | 0:60d829a0353a | 30 | ** Initial version. |
tushki7 | 0:60d829a0353a | 31 | ** - rev. 2.0 (2012-12-12) |
tushki7 | 0:60d829a0353a | 32 | ** Update to reference manual rev. 1. |
tushki7 | 0:60d829a0353a | 33 | ** |
tushki7 | 0:60d829a0353a | 34 | ** ################################################################### |
tushki7 | 0:60d829a0353a | 35 | */ |
tushki7 | 0:60d829a0353a | 36 | |
tushki7 | 0:60d829a0353a | 37 | /** |
tushki7 | 0:60d829a0353a | 38 | * @file MKL46Z4 |
tushki7 | 0:60d829a0353a | 39 | * @version 2.0 |
tushki7 | 0:60d829a0353a | 40 | * @date 2012-12-12 |
tushki7 | 0:60d829a0353a | 41 | * @brief Device specific configuration file for MKL46Z4 (header file) |
tushki7 | 0:60d829a0353a | 42 | * |
tushki7 | 0:60d829a0353a | 43 | * Provides a system configuration function and a global variable that contains |
tushki7 | 0:60d829a0353a | 44 | * the system frequency. It configures the device and initializes the oscillator |
tushki7 | 0:60d829a0353a | 45 | * (PLL) that is part of the microcontroller device. |
tushki7 | 0:60d829a0353a | 46 | */ |
tushki7 | 0:60d829a0353a | 47 | |
tushki7 | 0:60d829a0353a | 48 | #ifndef SYSTEM_MKL46Z4_H_ |
tushki7 | 0:60d829a0353a | 49 | #define SYSTEM_MKL46Z4_H_ /**< Symbol preventing repeated inclusion */ |
tushki7 | 0:60d829a0353a | 50 | |
tushki7 | 0:60d829a0353a | 51 | #ifdef __cplusplus |
tushki7 | 0:60d829a0353a | 52 | extern "C" { |
tushki7 | 0:60d829a0353a | 53 | #endif |
tushki7 | 0:60d829a0353a | 54 | |
tushki7 | 0:60d829a0353a | 55 | #include <stdint.h> |
tushki7 | 0:60d829a0353a | 56 | |
tushki7 | 0:60d829a0353a | 57 | /** |
tushki7 | 0:60d829a0353a | 58 | * @brief System clock frequency (core clock) |
tushki7 | 0:60d829a0353a | 59 | * |
tushki7 | 0:60d829a0353a | 60 | * The system clock frequency supplied to the SysTick timer and the processor |
tushki7 | 0:60d829a0353a | 61 | * core clock. This variable can be used by the user application to setup the |
tushki7 | 0:60d829a0353a | 62 | * SysTick timer or configure other parameters. It may also be used by debugger to |
tushki7 | 0:60d829a0353a | 63 | * query the frequency of the debug timer or configure the trace clock speed |
tushki7 | 0:60d829a0353a | 64 | * SystemCoreClock is initialized with a correct predefined value. |
tushki7 | 0:60d829a0353a | 65 | */ |
tushki7 | 0:60d829a0353a | 66 | extern uint32_t SystemCoreClock; |
tushki7 | 0:60d829a0353a | 67 | |
tushki7 | 0:60d829a0353a | 68 | /** |
tushki7 | 0:60d829a0353a | 69 | * @brief Setup the microcontroller system. |
tushki7 | 0:60d829a0353a | 70 | * |
tushki7 | 0:60d829a0353a | 71 | * Typically this function configures the oscillator (PLL) that is part of the |
tushki7 | 0:60d829a0353a | 72 | * microcontroller device. For systems with variable clock speed it also updates |
tushki7 | 0:60d829a0353a | 73 | * the variable SystemCoreClock. SystemInit is called from startup_device file. |
tushki7 | 0:60d829a0353a | 74 | */ |
tushki7 | 0:60d829a0353a | 75 | void SystemInit (void); |
tushki7 | 0:60d829a0353a | 76 | |
tushki7 | 0:60d829a0353a | 77 | /** |
tushki7 | 0:60d829a0353a | 78 | * @brief Updates the SystemCoreClock variable. |
tushki7 | 0:60d829a0353a | 79 | * |
tushki7 | 0:60d829a0353a | 80 | * It must be called whenever the core clock is changed during program |
tushki7 | 0:60d829a0353a | 81 | * execution. SystemCoreClockUpdate() evaluates the clock register settings and calculates |
tushki7 | 0:60d829a0353a | 82 | * the current core clock. |
tushki7 | 0:60d829a0353a | 83 | */ |
tushki7 | 0:60d829a0353a | 84 | void SystemCoreClockUpdate (void); |
tushki7 | 0:60d829a0353a | 85 | |
tushki7 | 0:60d829a0353a | 86 | #ifdef __cplusplus |
tushki7 | 0:60d829a0353a | 87 | } |
tushki7 | 0:60d829a0353a | 88 | #endif |
tushki7 | 0:60d829a0353a | 89 | |
tushki7 | 0:60d829a0353a | 90 | #endif /* #if !defined(SYSTEM_MKL46Z4_H_) */ |