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.

Dependencies:   C12832

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?

UserRevisionLine numberNew contents of line
tushki7 0:60d829a0353a 1 /*
tushki7 0:60d829a0353a 2 ** ###################################################################
tushki7 0:60d829a0353a 3 ** Processors: MKL05Z32FK4
tushki7 0:60d829a0353a 4 ** MKL05Z32LC4
tushki7 0:60d829a0353a 5 ** MKL05Z32VLF4
tushki7 0:60d829a0353a 6 **
tushki7 0:60d829a0353a 7 ** Compilers: ARM Compiler
tushki7 0:60d829a0353a 8 ** Freescale C/C++ for Embedded ARM
tushki7 0:60d829a0353a 9 ** GNU C Compiler
tushki7 0:60d829a0353a 10 ** IAR ANSI C/C++ Compiler for ARM
tushki7 0:60d829a0353a 11 **
tushki7 0:60d829a0353a 12 ** Reference manual: KL05P48M48SF1RM, Rev.3, Sep 2012
tushki7 0:60d829a0353a 13 ** Version: rev. 1.6, 2013-04-11
tushki7 0:60d829a0353a 14 **
tushki7 0:60d829a0353a 15 ** Abstract:
tushki7 0:60d829a0353a 16 ** Provides a system configuration function and a global variable that
tushki7 0:60d829a0353a 17 ** contains the system frequency. It configures the device and initializes
tushki7 0:60d829a0353a 18 ** the oscillator (PLL) that is part of the microcontroller device.
tushki7 0:60d829a0353a 19 **
tushki7 0:60d829a0353a 20 ** Copyright: 2013 Freescale, Inc. All Rights Reserved.
tushki7 0:60d829a0353a 21 **
tushki7 0:60d829a0353a 22 ** http: www.freescale.com
tushki7 0:60d829a0353a 23 ** mail: support@freescale.com
tushki7 0:60d829a0353a 24 **
tushki7 0:60d829a0353a 25 ** Revisions:
tushki7 0:60d829a0353a 26 ** - rev. 1.0 (2012-06-08)
tushki7 0:60d829a0353a 27 ** Initial version.
tushki7 0:60d829a0353a 28 ** - rev. 1.1 (2012-06-21)
tushki7 0:60d829a0353a 29 ** Update according to reference manual rev. 1.
tushki7 0:60d829a0353a 30 ** - rev. 1.2 (2012-08-01)
tushki7 0:60d829a0353a 31 ** Device type UARTLP changed to UART0.
tushki7 0:60d829a0353a 32 ** Missing PORTB_IRQn interrupt number definition added.
tushki7 0:60d829a0353a 33 ** - rev. 1.3 (2012-10-04)
tushki7 0:60d829a0353a 34 ** Update according to reference manual rev. 3.
tushki7 0:60d829a0353a 35 ** - rev. 1.4 (2012-11-22)
tushki7 0:60d829a0353a 36 ** MCG module - bit LOLS in MCG_S register renamed to LOLS0.
tushki7 0:60d829a0353a 37 ** NV registers - bit EZPORT_DIS in NV_FOPT register removed.
tushki7 0:60d829a0353a 38 ** - rev. 1.5 (2013-04-05)
tushki7 0:60d829a0353a 39 ** Changed start of doxygen comment.
tushki7 0:60d829a0353a 40 ** - rev. 1.6 (2013-04-11)
tushki7 0:60d829a0353a 41 ** SystemInit methods updated with predefined initialization sequence.
tushki7 0:60d829a0353a 42 **
tushki7 0:60d829a0353a 43 ** ###################################################################
tushki7 0:60d829a0353a 44 */
tushki7 0:60d829a0353a 45
tushki7 0:60d829a0353a 46 /*!
tushki7 0:60d829a0353a 47 * @file MKL05Z4
tushki7 0:60d829a0353a 48 * @version 1.6
tushki7 0:60d829a0353a 49 * @date 2013-04-11
tushki7 0:60d829a0353a 50 * @brief Device specific configuration file for MKL05Z4 (header file)
tushki7 0:60d829a0353a 51 *
tushki7 0:60d829a0353a 52 * Provides a system configuration function and a global variable that contains
tushki7 0:60d829a0353a 53 * the system frequency. It configures the device and initializes the oscillator
tushki7 0:60d829a0353a 54 * (PLL) that is part of the microcontroller device.
tushki7 0:60d829a0353a 55 */
tushki7 0:60d829a0353a 56
tushki7 0:60d829a0353a 57 #ifndef SYSTEM_MKL05Z4_H_
tushki7 0:60d829a0353a 58 #define SYSTEM_MKL05Z4_H_ /**< Symbol preventing repeated inclusion */
tushki7 0:60d829a0353a 59
tushki7 0:60d829a0353a 60 #ifdef __cplusplus
tushki7 0:60d829a0353a 61 extern "C" {
tushki7 0:60d829a0353a 62 #endif
tushki7 0:60d829a0353a 63
tushki7 0:60d829a0353a 64 #include <stdint.h>
tushki7 0:60d829a0353a 65
tushki7 0:60d829a0353a 66 /**
tushki7 0:60d829a0353a 67 * @brief System clock frequency (core clock)
tushki7 0:60d829a0353a 68 *
tushki7 0:60d829a0353a 69 * The system clock frequency supplied to the SysTick timer and the processor
tushki7 0:60d829a0353a 70 * core clock. This variable can be used by the user application to setup the
tushki7 0:60d829a0353a 71 * SysTick timer or configure other parameters. It may also be used by debugger to
tushki7 0:60d829a0353a 72 * query the frequency of the debug timer or configure the trace clock speed
tushki7 0:60d829a0353a 73 * SystemCoreClock is initialized with a correct predefined value.
tushki7 0:60d829a0353a 74 */
tushki7 0:60d829a0353a 75 extern uint32_t SystemCoreClock;
tushki7 0:60d829a0353a 76
tushki7 0:60d829a0353a 77 /**
tushki7 0:60d829a0353a 78 * @brief Setup the microcontroller system.
tushki7 0:60d829a0353a 79 *
tushki7 0:60d829a0353a 80 * Typically this function configures the oscillator (PLL) that is part of the
tushki7 0:60d829a0353a 81 * microcontroller device. For systems with variable clock speed it also updates
tushki7 0:60d829a0353a 82 * the variable SystemCoreClock. SystemInit is called from startup_device file.
tushki7 0:60d829a0353a 83 */
tushki7 0:60d829a0353a 84 void SystemInit (void);
tushki7 0:60d829a0353a 85
tushki7 0:60d829a0353a 86 /**
tushki7 0:60d829a0353a 87 * @brief Updates the SystemCoreClock variable.
tushki7 0:60d829a0353a 88 *
tushki7 0:60d829a0353a 89 * It must be called whenever the core clock is changed during program
tushki7 0:60d829a0353a 90 * execution. SystemCoreClockUpdate() evaluates the clock register settings and calculates
tushki7 0:60d829a0353a 91 * the current core clock.
tushki7 0:60d829a0353a 92 */
tushki7 0:60d829a0353a 93 void SystemCoreClockUpdate (void);
tushki7 0:60d829a0353a 94
tushki7 0:60d829a0353a 95 #ifdef __cplusplus
tushki7 0:60d829a0353a 96 }
tushki7 0:60d829a0353a 97 #endif
tushki7 0:60d829a0353a 98
tushki7 0:60d829a0353a 99 #endif /* #if !defined(SYSTEM_MKL05Z4_H_) */