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 * $Id$ system_LPC407x_8x_177x_8x.h 2011-06-02
tushki7 0:60d829a0353a 3 *//**
tushki7 0:60d829a0353a 4 * @file system_LPC407x_8x_177x_8x.h
tushki7 0:60d829a0353a 5 * @brief CMSIS Cortex-M3 Device Peripheral Access Layer Source File
tushki7 0:60d829a0353a 6 * for the NXP LPC Device Series
tushki7 0:60d829a0353a 7 * @version 1.0
tushki7 0:60d829a0353a 8 * @date 02. June. 2011
tushki7 0:60d829a0353a 9 * @author NXP MCU SW Application Team
tushki7 0:60d829a0353a 10 *
tushki7 0:60d829a0353a 11 * Copyright(C) 2011, NXP Semiconductor
tushki7 0:60d829a0353a 12 * All rights reserved.
tushki7 0:60d829a0353a 13 *
tushki7 0:60d829a0353a 14 ***********************************************************************
tushki7 0:60d829a0353a 15 * Software that is described herein is for illustrative purposes only
tushki7 0:60d829a0353a 16 * which provides customers with programming information regarding the
tushki7 0:60d829a0353a 17 * products. This software is supplied "AS IS" without any warranties.
tushki7 0:60d829a0353a 18 * NXP Semiconductors assumes no responsibility or liability for the
tushki7 0:60d829a0353a 19 * use of the software, conveys no license or title under any patent,
tushki7 0:60d829a0353a 20 * copyright, or mask work right to the product. NXP Semiconductors
tushki7 0:60d829a0353a 21 * reserves the right to make changes in the software without
tushki7 0:60d829a0353a 22 * notification. NXP Semiconductors also make no representation or
tushki7 0:60d829a0353a 23 * warranty that such application will be suitable for the specified
tushki7 0:60d829a0353a 24 * use without further testing or modification.
tushki7 0:60d829a0353a 25 * Permission to use, copy, modify, and distribute this software and its
tushki7 0:60d829a0353a 26 * documentation is hereby granted, under NXP Semiconductors'
tushki7 0:60d829a0353a 27 * relevant copyright in the software, without fee, provided that it
tushki7 0:60d829a0353a 28 * is used in conjunction with NXP Semiconductors microcontrollers. This
tushki7 0:60d829a0353a 29 * copyright, permission, and disclaimer notice must appear in all copies of
tushki7 0:60d829a0353a 30 * this code.
tushki7 0:60d829a0353a 31 **********************************************************************/
tushki7 0:60d829a0353a 32
tushki7 0:60d829a0353a 33 #ifndef __SYSTEM_LPC407x_8x_177x_8x_H
tushki7 0:60d829a0353a 34 #define __SYSTEM_LPC407x_8x_177x_8x_H
tushki7 0:60d829a0353a 35
tushki7 0:60d829a0353a 36 #ifdef __cplusplus
tushki7 0:60d829a0353a 37 extern "C" {
tushki7 0:60d829a0353a 38 #endif
tushki7 0:60d829a0353a 39
tushki7 0:60d829a0353a 40 #include <stdint.h>
tushki7 0:60d829a0353a 41
tushki7 0:60d829a0353a 42 extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */
tushki7 0:60d829a0353a 43 extern uint32_t PeripheralClock; /*!< Peripheral Clock Frequency (Pclk) */
tushki7 0:60d829a0353a 44 extern uint32_t EMCClock; /*!< EMC Clock */
tushki7 0:60d829a0353a 45 extern uint32_t USBClock; /*!< USB Frequency */
tushki7 0:60d829a0353a 46
tushki7 0:60d829a0353a 47
tushki7 0:60d829a0353a 48 /**
tushki7 0:60d829a0353a 49 * Initialize the system
tushki7 0:60d829a0353a 50 *
tushki7 0:60d829a0353a 51 * @param none
tushki7 0:60d829a0353a 52 * @return none
tushki7 0:60d829a0353a 53 *
tushki7 0:60d829a0353a 54 * @brief Setup the microcontroller system.
tushki7 0:60d829a0353a 55 * Initialize the System and update the SystemCoreClock variable.
tushki7 0:60d829a0353a 56 */
tushki7 0:60d829a0353a 57 extern void SystemInit (void);
tushki7 0:60d829a0353a 58
tushki7 0:60d829a0353a 59 /**
tushki7 0:60d829a0353a 60 * Update SystemCoreClock variable
tushki7 0:60d829a0353a 61 *
tushki7 0:60d829a0353a 62 * @param none
tushki7 0:60d829a0353a 63 * @return none
tushki7 0:60d829a0353a 64 *
tushki7 0:60d829a0353a 65 * @brief Updates the SystemCoreClock with current core Clock
tushki7 0:60d829a0353a 66 * retrieved from cpu registers.
tushki7 0:60d829a0353a 67 */
tushki7 0:60d829a0353a 68 extern void SystemCoreClockUpdate (void);
tushki7 0:60d829a0353a 69
tushki7 0:60d829a0353a 70 /*----------------------------------------------------------------------------
tushki7 0:60d829a0353a 71 Define clocks
tushki7 0:60d829a0353a 72 *----------------------------------------------------------------------------*/
tushki7 0:60d829a0353a 73 #define XTAL (12000000UL) /* Oscillator frequency */
tushki7 0:60d829a0353a 74 #define OSC_CLK ( XTAL) /* Main oscillator frequency */
tushki7 0:60d829a0353a 75 #define RTC_CLK ( 32768UL) /* RTC oscillator frequency */
tushki7 0:60d829a0353a 76 #define IRC_OSC (12000000UL) /* Internal RC oscillator frequency */
tushki7 0:60d829a0353a 77 #define WDT_OSC ( 500000UL) /* Internal WDT oscillator frequency */
tushki7 0:60d829a0353a 78
tushki7 0:60d829a0353a 79
tushki7 0:60d829a0353a 80
tushki7 0:60d829a0353a 81 /*
tushki7 0:60d829a0353a 82 //-------- <<< end of configuration section >>> ------------------------------
tushki7 0:60d829a0353a 83 */
tushki7 0:60d829a0353a 84
tushki7 0:60d829a0353a 85 #ifdef __cplusplus
tushki7 0:60d829a0353a 86 }
tushki7 0:60d829a0353a 87 #endif
tushki7 0:60d829a0353a 88
tushki7 0:60d829a0353a 89 #endif /* __SYSTEM_LPC407x_8x_177x_8x_H */