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 * DISCLAIMER
tushki7 0:60d829a0353a 3 * This software is supplied by Renesas Electronics Corporation and is only
tushki7 0:60d829a0353a 4 * intended for use with Renesas products. No other uses are authorized. This
tushki7 0:60d829a0353a 5 * software is owned by Renesas Electronics Corporation and is protected under
tushki7 0:60d829a0353a 6 * all applicable laws, including copyright laws.
tushki7 0:60d829a0353a 7 * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
tushki7 0:60d829a0353a 8 * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
tushki7 0:60d829a0353a 9 * LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
tushki7 0:60d829a0353a 10 * AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
tushki7 0:60d829a0353a 11 * TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
tushki7 0:60d829a0353a 12 * ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
tushki7 0:60d829a0353a 13 * FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
tushki7 0:60d829a0353a 14 * ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
tushki7 0:60d829a0353a 15 * BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
tushki7 0:60d829a0353a 16 * Renesas reserves the right, without notice, to make changes to this software
tushki7 0:60d829a0353a 17 * and to discontinue the availability of this software. By using this software,
tushki7 0:60d829a0353a 18 * you agree to the additional terms and conditions found by accessing the
tushki7 0:60d829a0353a 19 * following link:
tushki7 0:60d829a0353a 20 * http://www.renesas.com/disclaimer*
tushki7 0:60d829a0353a 21 * Copyright (C) 2013-2014 Renesas Electronics Corporation. All rights reserved.
tushki7 0:60d829a0353a 22 *******************************************************************************/
tushki7 0:60d829a0353a 23 /*******************************************************************************
tushki7 0:60d829a0353a 24 * File Name : disc_iodefine.h
tushki7 0:60d829a0353a 25 * $Rev: $
tushki7 0:60d829a0353a 26 * $Date:: $
tushki7 0:60d829a0353a 27 * Description : Definition of I/O Register (V1.00a)
tushki7 0:60d829a0353a 28 ******************************************************************************/
tushki7 0:60d829a0353a 29 #ifndef DISC_IODEFINE_H
tushki7 0:60d829a0353a 30 #define DISC_IODEFINE_H
tushki7 0:60d829a0353a 31 /* ->SEC M1.10.1 : Not magic number */
tushki7 0:60d829a0353a 32
tushki7 0:60d829a0353a 33 struct st_disc
tushki7 0:60d829a0353a 34 { /* DISC */
tushki7 0:60d829a0353a 35 volatile uint32_t DOCMCR; /* DOCMCR */
tushki7 0:60d829a0353a 36 volatile uint32_t DOCMSTR; /* DOCMSTR */
tushki7 0:60d829a0353a 37 volatile uint32_t DOCMCLSTR; /* DOCMCLSTR */
tushki7 0:60d829a0353a 38 volatile uint32_t DOCMIENR; /* DOCMIENR */
tushki7 0:60d829a0353a 39 volatile uint8_t dummy1[4]; /* */
tushki7 0:60d829a0353a 40 volatile uint32_t DOCMPMR; /* DOCMPMR */
tushki7 0:60d829a0353a 41 volatile uint32_t DOCMECRCR; /* DOCMECRCR */
tushki7 0:60d829a0353a 42 volatile uint32_t DOCMCCRCR; /* DOCMCCRCR */
tushki7 0:60d829a0353a 43 volatile uint32_t DOCMSPXR; /* DOCMSPXR */
tushki7 0:60d829a0353a 44 volatile uint32_t DOCMSPYR; /* DOCMSPYR */
tushki7 0:60d829a0353a 45 volatile uint32_t DOCMSZXR; /* DOCMSZXR */
tushki7 0:60d829a0353a 46 volatile uint32_t DOCMSZYR; /* DOCMSZYR */
tushki7 0:60d829a0353a 47 volatile uint32_t DOCMCRCIR; /* DOCMCRCIR */
tushki7 0:60d829a0353a 48 };
tushki7 0:60d829a0353a 49
tushki7 0:60d829a0353a 50
tushki7 0:60d829a0353a 51 #define DISC0 (*(struct st_disc *)0xFCFFA800uL) /* DISC0 */
tushki7 0:60d829a0353a 52 #define DISC1 (*(struct st_disc *)0xFCFFB000uL) /* DISC1 */
tushki7 0:60d829a0353a 53
tushki7 0:60d829a0353a 54
tushki7 0:60d829a0353a 55 /* Start of channnel array defines of DISC */
tushki7 0:60d829a0353a 56
tushki7 0:60d829a0353a 57 /* Channnel array defines of DISC */
tushki7 0:60d829a0353a 58 /*(Sample) value = DISC[ channel ]->DOCMCR; */
tushki7 0:60d829a0353a 59 #define DISC_COUNT 2
tushki7 0:60d829a0353a 60 #define DISC_ADDRESS_LIST \
tushki7 0:60d829a0353a 61 { /* ->MISRA 11.3 */ /* ->SEC R2.7.1 */ \
tushki7 0:60d829a0353a 62 &DISC0, &DISC1 \
tushki7 0:60d829a0353a 63 } /* <-MISRA 11.3 */ /* <-SEC R2.7.1 */ /* { } is for MISRA 19.4 */
tushki7 0:60d829a0353a 64
tushki7 0:60d829a0353a 65 /* End of channnel array defines of DISC */
tushki7 0:60d829a0353a 66
tushki7 0:60d829a0353a 67
tushki7 0:60d829a0353a 68 #define DISC0DOCMCR DISC0.DOCMCR
tushki7 0:60d829a0353a 69 #define DISC0DOCMSTR DISC0.DOCMSTR
tushki7 0:60d829a0353a 70 #define DISC0DOCMCLSTR DISC0.DOCMCLSTR
tushki7 0:60d829a0353a 71 #define DISC0DOCMIENR DISC0.DOCMIENR
tushki7 0:60d829a0353a 72 #define DISC0DOCMPMR DISC0.DOCMPMR
tushki7 0:60d829a0353a 73 #define DISC0DOCMECRCR DISC0.DOCMECRCR
tushki7 0:60d829a0353a 74 #define DISC0DOCMCCRCR DISC0.DOCMCCRCR
tushki7 0:60d829a0353a 75 #define DISC0DOCMSPXR DISC0.DOCMSPXR
tushki7 0:60d829a0353a 76 #define DISC0DOCMSPYR DISC0.DOCMSPYR
tushki7 0:60d829a0353a 77 #define DISC0DOCMSZXR DISC0.DOCMSZXR
tushki7 0:60d829a0353a 78 #define DISC0DOCMSZYR DISC0.DOCMSZYR
tushki7 0:60d829a0353a 79 #define DISC0DOCMCRCIR DISC0.DOCMCRCIR
tushki7 0:60d829a0353a 80 #define DISC1DOCMCR DISC1.DOCMCR
tushki7 0:60d829a0353a 81 #define DISC1DOCMSTR DISC1.DOCMSTR
tushki7 0:60d829a0353a 82 #define DISC1DOCMCLSTR DISC1.DOCMCLSTR
tushki7 0:60d829a0353a 83 #define DISC1DOCMIENR DISC1.DOCMIENR
tushki7 0:60d829a0353a 84 #define DISC1DOCMPMR DISC1.DOCMPMR
tushki7 0:60d829a0353a 85 #define DISC1DOCMECRCR DISC1.DOCMECRCR
tushki7 0:60d829a0353a 86 #define DISC1DOCMCCRCR DISC1.DOCMCCRCR
tushki7 0:60d829a0353a 87 #define DISC1DOCMSPXR DISC1.DOCMSPXR
tushki7 0:60d829a0353a 88 #define DISC1DOCMSPYR DISC1.DOCMSPYR
tushki7 0:60d829a0353a 89 #define DISC1DOCMSZXR DISC1.DOCMSZXR
tushki7 0:60d829a0353a 90 #define DISC1DOCMSZYR DISC1.DOCMSZYR
tushki7 0:60d829a0353a 91 #define DISC1DOCMCRCIR DISC1.DOCMCRCIR
tushki7 0:60d829a0353a 92 /* <-SEC M1.10.1 */
tushki7 0:60d829a0353a 93 #endif