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_LPC824/system_LPC82x.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 | * @file: system_LPC8xx.h |
tushki7 | 0:60d829a0353a | 3 | * @purpose: CMSIS Cortex-M0+ Device Peripheral Access Layer Header File |
tushki7 | 0:60d829a0353a | 4 | * for the NXP LPC8xx Device Series |
tushki7 | 0:60d829a0353a | 5 | * @version: V1.0 |
tushki7 | 0:60d829a0353a | 6 | * @date: 16. Aug. 2012 |
tushki7 | 0:60d829a0353a | 7 | *---------------------------------------------------------------------------- |
tushki7 | 0:60d829a0353a | 8 | * |
tushki7 | 0:60d829a0353a | 9 | * Copyright (C) 2012 ARM Limited. All rights reserved. |
tushki7 | 0:60d829a0353a | 10 | * |
tushki7 | 0:60d829a0353a | 11 | * ARM Limited (ARM) is supplying this software for use with Cortex-M0+ |
tushki7 | 0:60d829a0353a | 12 | * processor based microcontrollers. This file can be freely distributed |
tushki7 | 0:60d829a0353a | 13 | * within development tools that are supporting such ARM based processors. |
tushki7 | 0:60d829a0353a | 14 | * |
tushki7 | 0:60d829a0353a | 15 | * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED |
tushki7 | 0:60d829a0353a | 16 | * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF |
tushki7 | 0:60d829a0353a | 17 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. |
tushki7 | 0:60d829a0353a | 18 | * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR |
tushki7 | 0:60d829a0353a | 19 | * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. |
tushki7 | 0:60d829a0353a | 20 | * |
tushki7 | 0:60d829a0353a | 21 | ******************************************************************************/ |
tushki7 | 0:60d829a0353a | 22 | |
tushki7 | 0:60d829a0353a | 23 | |
tushki7 | 0:60d829a0353a | 24 | #ifndef __SYSTEM_LPC8xx_H |
tushki7 | 0:60d829a0353a | 25 | #define __SYSTEM_LPC8xx_H |
tushki7 | 0:60d829a0353a | 26 | |
tushki7 | 0:60d829a0353a | 27 | #ifdef __cplusplus |
tushki7 | 0:60d829a0353a | 28 | extern "C" { |
tushki7 | 0:60d829a0353a | 29 | #endif |
tushki7 | 0:60d829a0353a | 30 | |
tushki7 | 0:60d829a0353a | 31 | #include <stdint.h> |
tushki7 | 0:60d829a0353a | 32 | |
tushki7 | 0:60d829a0353a | 33 | extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */ |
tushki7 | 0:60d829a0353a | 34 | extern uint32_t MainClock; /*!< Main Clock Frequency */ |
tushki7 | 0:60d829a0353a | 35 | |
tushki7 | 0:60d829a0353a | 36 | |
tushki7 | 0:60d829a0353a | 37 | /** |
tushki7 | 0:60d829a0353a | 38 | * Initialize the system |
tushki7 | 0:60d829a0353a | 39 | * |
tushki7 | 0:60d829a0353a | 40 | * @param none |
tushki7 | 0:60d829a0353a | 41 | * @return none |
tushki7 | 0:60d829a0353a | 42 | * |
tushki7 | 0:60d829a0353a | 43 | * @brief Setup the microcontroller system. |
tushki7 | 0:60d829a0353a | 44 | * Initialize the System and update the SystemCoreClock variable. |
tushki7 | 0:60d829a0353a | 45 | */ |
tushki7 | 0:60d829a0353a | 46 | extern void SystemInit (void); |
tushki7 | 0:60d829a0353a | 47 | |
tushki7 | 0:60d829a0353a | 48 | /** |
tushki7 | 0:60d829a0353a | 49 | * Update SystemCoreClock variable |
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 Updates the SystemCoreClock with current core Clock |
tushki7 | 0:60d829a0353a | 55 | * retrieved from cpu registers. |
tushki7 | 0:60d829a0353a | 56 | */ |
tushki7 | 0:60d829a0353a | 57 | extern void SystemCoreClockUpdate (void); |
tushki7 | 0:60d829a0353a | 58 | |
tushki7 | 0:60d829a0353a | 59 | #ifdef __cplusplus |
tushki7 | 0:60d829a0353a | 60 | } |
tushki7 | 0:60d829a0353a | 61 | #endif |
tushki7 | 0:60d829a0353a | 62 | |
tushki7 | 0:60d829a0353a | 63 | #endif /* __SYSTEM_LPC8xx_H */ |