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_RZ_A1H/iodefine.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 | * 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 : 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 R7S72100_IODEFINE_H |
tushki7 | 0:60d829a0353a | 30 | #define R7S72100_IODEFINE_H |
tushki7 | 0:60d829a0353a | 31 | #define IODEFINE_H_VERSION 100 |
tushki7 | 0:60d829a0353a | 32 | |
tushki7 | 0:60d829a0353a | 33 | enum iodefine_byte_select_t |
tushki7 | 0:60d829a0353a | 34 | { |
tushki7 | 0:60d829a0353a | 35 | L = 0, H = 1, |
tushki7 | 0:60d829a0353a | 36 | LL= 0, LH = 1, HL = 2, HH = 3 |
tushki7 | 0:60d829a0353a | 37 | }; |
tushki7 | 0:60d829a0353a | 38 | |
tushki7 | 0:60d829a0353a | 39 | /*********************************************************************** |
tushki7 | 0:60d829a0353a | 40 | <<< [iodefine_reg32_t] >>> |
tushki7 | 0:60d829a0353a | 41 | - Padding : sizeof(iodefine_reg32_t) == 4 |
tushki7 | 0:60d829a0353a | 42 | - Alignment(Offset) : &UINT32==0, &UINT16[0]==0, &UINT16[1]==2 |
tushki7 | 0:60d829a0353a | 43 | - &UINT8[0]==0, &UINT8[1]==1, &UINT8[2]==2, &UINT8[3]==3 |
tushki7 | 0:60d829a0353a | 44 | - Endian : Independent (Same as CPU endian as register endian) |
tushki7 | 0:60d829a0353a | 45 | - Bit-Order : Independent |
tushki7 | 0:60d829a0353a | 46 | ************************************************************************/ |
tushki7 | 0:60d829a0353a | 47 | /* ->MISRA 18.4 : Pack unpack union */ /* ->SEC M1.6.2 */ |
tushki7 | 0:60d829a0353a | 48 | /* ->SEC M1.10.1 : Not magic number */ |
tushki7 | 0:60d829a0353a | 49 | union iodefine_reg32_t |
tushki7 | 0:60d829a0353a | 50 | { |
tushki7 | 0:60d829a0353a | 51 | volatile uint32_t UINT32; /* 32-bit Access */ |
tushki7 | 0:60d829a0353a | 52 | volatile uint16_t UINT16[2]; /* 16-bit Access */ |
tushki7 | 0:60d829a0353a | 53 | volatile uint8_t UINT8[4]; /* 8-bit Access */ |
tushki7 | 0:60d829a0353a | 54 | }; |
tushki7 | 0:60d829a0353a | 55 | /* <-SEC M1.10.1 */ |
tushki7 | 0:60d829a0353a | 56 | /* <-MISRA 18.4 */ /* <-SEC M1.6.2 */ |
tushki7 | 0:60d829a0353a | 57 | |
tushki7 | 0:60d829a0353a | 58 | /*********************************************************************** |
tushki7 | 0:60d829a0353a | 59 | <<< [iodefine_reg32_16_t] >>> |
tushki7 | 0:60d829a0353a | 60 | - Padding : sizeof(iodefine_reg32_16_t) == 4 |
tushki7 | 0:60d829a0353a | 61 | - Alignment(Offset) : &UINT32==0, &UINT16[0]==0, &UINT16[1]==2 |
tushki7 | 0:60d829a0353a | 62 | - Endian : Independent (Same as CPU endian as register endian) |
tushki7 | 0:60d829a0353a | 63 | - Bit-Order : Independent |
tushki7 | 0:60d829a0353a | 64 | ************************************************************************/ |
tushki7 | 0:60d829a0353a | 65 | /* ->MISRA 18.4 : Pack unpack union */ /* ->SEC M1.6.2 */ |
tushki7 | 0:60d829a0353a | 66 | /* ->SEC M1.10.1 : Not magic number */ |
tushki7 | 0:60d829a0353a | 67 | union iodefine_reg32_16_t |
tushki7 | 0:60d829a0353a | 68 | { |
tushki7 | 0:60d829a0353a | 69 | volatile uint32_t UINT32; /* 32-bit Access */ |
tushki7 | 0:60d829a0353a | 70 | volatile uint16_t UINT16[2]; /* 16-bit Access */ |
tushki7 | 0:60d829a0353a | 71 | }; |
tushki7 | 0:60d829a0353a | 72 | /* <-SEC M1.10.1 */ |
tushki7 | 0:60d829a0353a | 73 | /* <-MISRA 18.4 */ /* <-SEC M1.6.2 */ |
tushki7 | 0:60d829a0353a | 74 | |
tushki7 | 0:60d829a0353a | 75 | /*********************************************************************** |
tushki7 | 0:60d829a0353a | 76 | <<< [iodefine_reg16_8_t] >>> |
tushki7 | 0:60d829a0353a | 77 | - Padding : sizeof(iodefine_reg16_8_t) == 2 |
tushki7 | 0:60d829a0353a | 78 | - Alignment(Offset) : &UINT16==0, &UINT8[0]==0, &UINT8[1]==1 |
tushki7 | 0:60d829a0353a | 79 | - Endian : Independent (Same as CPU endian as register endian) |
tushki7 | 0:60d829a0353a | 80 | - Bit-Order : Independent |
tushki7 | 0:60d829a0353a | 81 | ************************************************************************/ |
tushki7 | 0:60d829a0353a | 82 | /* ->MISRA 18.4 : Pack unpack union */ /* ->SEC M1.6.2 */ |
tushki7 | 0:60d829a0353a | 83 | /* ->SEC M1.10.1 : Not magic number */ |
tushki7 | 0:60d829a0353a | 84 | union iodefine_reg16_8_t |
tushki7 | 0:60d829a0353a | 85 | { |
tushki7 | 0:60d829a0353a | 86 | volatile uint16_t UINT16; /* 16-bit Access */ |
tushki7 | 0:60d829a0353a | 87 | volatile uint8_t UINT8[2]; /* 8-bit Access */ |
tushki7 | 0:60d829a0353a | 88 | }; |
tushki7 | 0:60d829a0353a | 89 | /* <-SEC M1.10.1 */ |
tushki7 | 0:60d829a0353a | 90 | /* <-MISRA 18.4 */ /* <-SEC M1.6.2 */ |
tushki7 | 0:60d829a0353a | 91 | |
tushki7 | 0:60d829a0353a | 92 | |
tushki7 | 0:60d829a0353a | 93 | |
tushki7 | 0:60d829a0353a | 94 | |
tushki7 | 0:60d829a0353a | 95 | |
tushki7 | 0:60d829a0353a | 96 | |
tushki7 | 0:60d829a0353a | 97 | #include "adc_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 98 | #include "bsc_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 99 | #include "ceu_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 100 | #include "cpg_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 101 | #include "disc_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 102 | #include "dmac_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 103 | #include "dvdec_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 104 | #include "ether_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 105 | #include "flctl_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 106 | #include "gpio_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 107 | #include "ieb_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 108 | #include "inb_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 109 | #include "intc_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 110 | #include "irda_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 111 | #include "jcu_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 112 | #include "l2c_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 113 | #include "lin_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 114 | #include "lvds_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 115 | #include "mlb_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 116 | #include "mmc_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 117 | #include "mtu2_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 118 | #include "ostm_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 119 | #include "pfv_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 120 | #include "pwm_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 121 | #include "riic_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 122 | #include "romdec_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 123 | #include "rscan0_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 124 | #include "rspi_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 125 | #include "rtc_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 126 | #include "scif_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 127 | #include "scim_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 128 | #include "scux_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 129 | #include "sdg_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 130 | #include "spdif_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 131 | #include "spibsc_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 132 | #include "ssif_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 133 | #include "usb20_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 134 | #include "vdc5_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 135 | #include "wdt_iodefine.h" /* (V1.00a) */ |
tushki7 | 0:60d829a0353a | 136 | #endif |