raspiezo / mbed-dev

Dependents:   Nucleo_L432KC_Quadrature_Decoder_with_ADC_and_DAC

Fork of mbed-dev by mbed official

Committer:
<>
Date:
Fri Oct 28 11:17:30 2016 +0100
Revision:
149:156823d33999
Parent:
targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/sdg_iodefine.h@119:3921aeca8633
This updates the lib to the mbed lib v128

NOTE: This release includes a restructuring of the file and directory locations and thus some
include paths in your code may need updating accordingly.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 119:3921aeca8633 1 /*******************************************************************************
mbed_official 119:3921aeca8633 2 * DISCLAIMER
mbed_official 119:3921aeca8633 3 * This software is supplied by Renesas Electronics Corporation and is only
mbed_official 119:3921aeca8633 4 * intended for use with Renesas products. No other uses are authorized. This
mbed_official 119:3921aeca8633 5 * software is owned by Renesas Electronics Corporation and is protected under
mbed_official 119:3921aeca8633 6 * all applicable laws, including copyright laws.
mbed_official 119:3921aeca8633 7 * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING
mbed_official 119:3921aeca8633 8 * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT
mbed_official 119:3921aeca8633 9 * LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE
mbed_official 119:3921aeca8633 10 * AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED.
mbed_official 119:3921aeca8633 11 * TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
mbed_official 119:3921aeca8633 12 * ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
mbed_official 119:3921aeca8633 13 * FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR
mbed_official 119:3921aeca8633 14 * ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE
mbed_official 119:3921aeca8633 15 * BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
mbed_official 119:3921aeca8633 16 * Renesas reserves the right, without notice, to make changes to this software
mbed_official 119:3921aeca8633 17 * and to discontinue the availability of this software. By using this software,
mbed_official 119:3921aeca8633 18 * you agree to the additional terms and conditions found by accessing the
mbed_official 119:3921aeca8633 19 * following link:
mbed_official 119:3921aeca8633 20 * http://www.renesas.com/disclaimer*
mbed_official 119:3921aeca8633 21 * Copyright (C) 2013-2014 Renesas Electronics Corporation. All rights reserved.
mbed_official 119:3921aeca8633 22 *******************************************************************************/
mbed_official 119:3921aeca8633 23 /*******************************************************************************
mbed_official 119:3921aeca8633 24 * File Name : sdg_iodefine.h
mbed_official 119:3921aeca8633 25 * $Rev: $
mbed_official 119:3921aeca8633 26 * $Date:: $
mbed_official 119:3921aeca8633 27 * Description : Definition of I/O Register (V1.00a)
mbed_official 119:3921aeca8633 28 ******************************************************************************/
mbed_official 119:3921aeca8633 29 #ifndef SDG_IODEFINE_H
mbed_official 119:3921aeca8633 30 #define SDG_IODEFINE_H
mbed_official 119:3921aeca8633 31
mbed_official 119:3921aeca8633 32 struct st_sdg
mbed_official 119:3921aeca8633 33 { /* SDG */
mbed_official 119:3921aeca8633 34 volatile uint8_t SGCR1; /* SGCR1 */
mbed_official 119:3921aeca8633 35 volatile uint8_t SGCSR; /* SGCSR */
mbed_official 119:3921aeca8633 36 volatile uint8_t SGCR2; /* SGCR2 */
mbed_official 119:3921aeca8633 37 volatile uint8_t SGLR; /* SGLR */
mbed_official 119:3921aeca8633 38 volatile uint8_t SGTFR; /* SGTFR */
mbed_official 119:3921aeca8633 39 volatile uint8_t SGSFR; /* SGSFR */
mbed_official 119:3921aeca8633 40 };
mbed_official 119:3921aeca8633 41
mbed_official 119:3921aeca8633 42
mbed_official 119:3921aeca8633 43 #define SDG0 (*(struct st_sdg *)0xFCFF4800uL) /* SDG0 */
mbed_official 119:3921aeca8633 44 #define SDG1 (*(struct st_sdg *)0xFCFF4A00uL) /* SDG1 */
mbed_official 119:3921aeca8633 45 #define SDG2 (*(struct st_sdg *)0xFCFF4C00uL) /* SDG2 */
mbed_official 119:3921aeca8633 46 #define SDG3 (*(struct st_sdg *)0xFCFF4E00uL) /* SDG3 */
mbed_official 119:3921aeca8633 47
mbed_official 119:3921aeca8633 48
mbed_official 119:3921aeca8633 49 /* Start of channnel array defines of SDG */
mbed_official 119:3921aeca8633 50
mbed_official 119:3921aeca8633 51 /* Channnel array defines of SDG */
mbed_official 119:3921aeca8633 52 /*(Sample) value = SDG[ channel ]->SGCR1; */
mbed_official 119:3921aeca8633 53 #define SDG_COUNT 4
mbed_official 119:3921aeca8633 54 #define SDG_ADDRESS_LIST \
mbed_official 119:3921aeca8633 55 { /* ->MISRA 11.3 */ /* ->SEC R2.7.1 */ \
mbed_official 119:3921aeca8633 56 &SDG0, &SDG1, &SDG2, &SDG3 \
mbed_official 119:3921aeca8633 57 } /* <-MISRA 11.3 */ /* <-SEC R2.7.1 */ /* { } is for MISRA 19.4 */
mbed_official 119:3921aeca8633 58
mbed_official 119:3921aeca8633 59 /* End of channnel array defines of SDG */
mbed_official 119:3921aeca8633 60
mbed_official 119:3921aeca8633 61
mbed_official 119:3921aeca8633 62 #define SGCR1_0 SDG0.SGCR1
mbed_official 119:3921aeca8633 63 #define SGCSR_0 SDG0.SGCSR
mbed_official 119:3921aeca8633 64 #define SGCR2_0 SDG0.SGCR2
mbed_official 119:3921aeca8633 65 #define SGLR_0 SDG0.SGLR
mbed_official 119:3921aeca8633 66 #define SGTFR_0 SDG0.SGTFR
mbed_official 119:3921aeca8633 67 #define SGSFR_0 SDG0.SGSFR
mbed_official 119:3921aeca8633 68 #define SGCR1_1 SDG1.SGCR1
mbed_official 119:3921aeca8633 69 #define SGCSR_1 SDG1.SGCSR
mbed_official 119:3921aeca8633 70 #define SGCR2_1 SDG1.SGCR2
mbed_official 119:3921aeca8633 71 #define SGLR_1 SDG1.SGLR
mbed_official 119:3921aeca8633 72 #define SGTFR_1 SDG1.SGTFR
mbed_official 119:3921aeca8633 73 #define SGSFR_1 SDG1.SGSFR
mbed_official 119:3921aeca8633 74 #define SGCR1_2 SDG2.SGCR1
mbed_official 119:3921aeca8633 75 #define SGCSR_2 SDG2.SGCSR
mbed_official 119:3921aeca8633 76 #define SGCR2_2 SDG2.SGCR2
mbed_official 119:3921aeca8633 77 #define SGLR_2 SDG2.SGLR
mbed_official 119:3921aeca8633 78 #define SGTFR_2 SDG2.SGTFR
mbed_official 119:3921aeca8633 79 #define SGSFR_2 SDG2.SGSFR
mbed_official 119:3921aeca8633 80 #define SGCR1_3 SDG3.SGCR1
mbed_official 119:3921aeca8633 81 #define SGCSR_3 SDG3.SGCSR
mbed_official 119:3921aeca8633 82 #define SGCR2_3 SDG3.SGCR2
mbed_official 119:3921aeca8633 83 #define SGLR_3 SDG3.SGLR
mbed_official 119:3921aeca8633 84 #define SGTFR_3 SDG3.SGTFR
mbed_official 119:3921aeca8633 85 #define SGSFR_3 SDG3.SGSFR
mbed_official 119:3921aeca8633 86 #endif