/TARGET_K64F/TARGET_Freescale/TARGET_KPSDK_MCUS/TARGET_KPSDK_CODE/hal/adc/fsl_adc_hal.h substitute line 894 extern } by }
Fork of mbed by
TARGET_RZ_A1H/lin_iodefine.h@92:4fc01daae5a5, 2014-11-27 (annotated)
- Committer:
- bogdanm
- Date:
- Thu Nov 27 13:33:22 2014 +0000
- Revision:
- 92:4fc01daae5a5
Release 92 of the mbed libray
Main changes:
- nRF51822: fixed pin assignment issues
- ST targets moving to the STM32Cube driver
- LPC1439: fixed serial interrupt issue
- first Cortex-A platform supported in mbed (RZ_A1H)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 92:4fc01daae5a5 | 1 | /******************************************************************************* |
bogdanm | 92:4fc01daae5a5 | 2 | * DISCLAIMER |
bogdanm | 92:4fc01daae5a5 | 3 | * This software is supplied by Renesas Electronics Corporation and is only |
bogdanm | 92:4fc01daae5a5 | 4 | * intended for use with Renesas products. No other uses are authorized. This |
bogdanm | 92:4fc01daae5a5 | 5 | * software is owned by Renesas Electronics Corporation and is protected under |
bogdanm | 92:4fc01daae5a5 | 6 | * all applicable laws, including copyright laws. |
bogdanm | 92:4fc01daae5a5 | 7 | * THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES REGARDING |
bogdanm | 92:4fc01daae5a5 | 8 | * THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING BUT NOT |
bogdanm | 92:4fc01daae5a5 | 9 | * LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE |
bogdanm | 92:4fc01daae5a5 | 10 | * AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY DISCLAIMED. |
bogdanm | 92:4fc01daae5a5 | 11 | * TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS |
bogdanm | 92:4fc01daae5a5 | 12 | * ELECTRONICS CORPORATION NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE |
bogdanm | 92:4fc01daae5a5 | 13 | * FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES FOR |
bogdanm | 92:4fc01daae5a5 | 14 | * ANY REASON RELATED TO THIS SOFTWARE, EVEN IF RENESAS OR ITS AFFILIATES HAVE |
bogdanm | 92:4fc01daae5a5 | 15 | * BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. |
bogdanm | 92:4fc01daae5a5 | 16 | * Renesas reserves the right, without notice, to make changes to this software |
bogdanm | 92:4fc01daae5a5 | 17 | * and to discontinue the availability of this software. By using this software, |
bogdanm | 92:4fc01daae5a5 | 18 | * you agree to the additional terms and conditions found by accessing the |
bogdanm | 92:4fc01daae5a5 | 19 | * following link: |
bogdanm | 92:4fc01daae5a5 | 20 | * http://www.renesas.com/disclaimer* |
bogdanm | 92:4fc01daae5a5 | 21 | * Copyright (C) 2013-2014 Renesas Electronics Corporation. All rights reserved. |
bogdanm | 92:4fc01daae5a5 | 22 | *******************************************************************************/ |
bogdanm | 92:4fc01daae5a5 | 23 | /******************************************************************************* |
bogdanm | 92:4fc01daae5a5 | 24 | * File Name : lin_iodefine.h |
bogdanm | 92:4fc01daae5a5 | 25 | * $Rev: $ |
bogdanm | 92:4fc01daae5a5 | 26 | * $Date:: $ |
bogdanm | 92:4fc01daae5a5 | 27 | * Description : Definition of I/O Register (V1.00a) |
bogdanm | 92:4fc01daae5a5 | 28 | ******************************************************************************/ |
bogdanm | 92:4fc01daae5a5 | 29 | #ifndef LIN_IODEFINE_H |
bogdanm | 92:4fc01daae5a5 | 30 | #define LIN_IODEFINE_H |
bogdanm | 92:4fc01daae5a5 | 31 | /* ->MISRA 18.4 : Pack unpack union */ /* ->SEC M1.6.2 */ |
bogdanm | 92:4fc01daae5a5 | 32 | /* ->SEC M1.10.1 : Not magic number */ |
bogdanm | 92:4fc01daae5a5 | 33 | |
bogdanm | 92:4fc01daae5a5 | 34 | struct st_lin |
bogdanm | 92:4fc01daae5a5 | 35 | { /* LIN */ |
bogdanm | 92:4fc01daae5a5 | 36 | volatile uint8_t dummy1[1]; /* */ |
bogdanm | 92:4fc01daae5a5 | 37 | volatile uint8_t RLN3nLWBR; /* RLN3nLWBR */ |
bogdanm | 92:4fc01daae5a5 | 38 | union iodefine_reg16_8_t RLN3nLBRP01; /* RLN3nLBRP01 */ |
bogdanm | 92:4fc01daae5a5 | 39 | |
bogdanm | 92:4fc01daae5a5 | 40 | volatile uint8_t RLN3nLSTC; /* RLN3nLSTC */ |
bogdanm | 92:4fc01daae5a5 | 41 | volatile uint8_t dummy2[3]; /* */ |
bogdanm | 92:4fc01daae5a5 | 42 | volatile uint8_t RLN3nLMD; /* RLN3nLMD */ |
bogdanm | 92:4fc01daae5a5 | 43 | volatile uint8_t RLN3nLBFC; /* RLN3nLBFC */ |
bogdanm | 92:4fc01daae5a5 | 44 | volatile uint8_t RLN3nLSC; /* RLN3nLSC */ |
bogdanm | 92:4fc01daae5a5 | 45 | volatile uint8_t RLN3nLWUP; /* RLN3nLWUP */ |
bogdanm | 92:4fc01daae5a5 | 46 | volatile uint8_t RLN3nLIE; /* RLN3nLIE */ |
bogdanm | 92:4fc01daae5a5 | 47 | volatile uint8_t RLN3nLEDE; /* RLN3nLEDE */ |
bogdanm | 92:4fc01daae5a5 | 48 | volatile uint8_t RLN3nLCUC; /* RLN3nLCUC */ |
bogdanm | 92:4fc01daae5a5 | 49 | volatile uint8_t dummy3[1]; /* */ |
bogdanm | 92:4fc01daae5a5 | 50 | volatile uint8_t RLN3nLTRC; /* RLN3nLTRC */ |
bogdanm | 92:4fc01daae5a5 | 51 | volatile uint8_t RLN3nLMST; /* RLN3nLMST */ |
bogdanm | 92:4fc01daae5a5 | 52 | volatile uint8_t RLN3nLST; /* RLN3nLST */ |
bogdanm | 92:4fc01daae5a5 | 53 | volatile uint8_t RLN3nLEST; /* RLN3nLEST */ |
bogdanm | 92:4fc01daae5a5 | 54 | volatile uint8_t RLN3nLDFC; /* RLN3nLDFC */ |
bogdanm | 92:4fc01daae5a5 | 55 | volatile uint8_t RLN3nLIDB; /* RLN3nLIDB */ |
bogdanm | 92:4fc01daae5a5 | 56 | volatile uint8_t RLN3nLCBR; /* RLN3nLCBR */ |
bogdanm | 92:4fc01daae5a5 | 57 | volatile uint8_t RLN3nLUDB0; /* RLN3nLUDB0 */ |
bogdanm | 92:4fc01daae5a5 | 58 | #define LIN_LDBn_COUNT 8 |
bogdanm | 92:4fc01daae5a5 | 59 | volatile uint8_t RLN3nLDBR1; /* RLN3nLDBR1 */ |
bogdanm | 92:4fc01daae5a5 | 60 | volatile uint8_t RLN3nLDBR2; /* RLN3nLDBR2 */ |
bogdanm | 92:4fc01daae5a5 | 61 | volatile uint8_t RLN3nLDBR3; /* RLN3nLDBR3 */ |
bogdanm | 92:4fc01daae5a5 | 62 | volatile uint8_t RLN3nLDBR4; /* RLN3nLDBR4 */ |
bogdanm | 92:4fc01daae5a5 | 63 | volatile uint8_t RLN3nLDBR5; /* RLN3nLDBR5 */ |
bogdanm | 92:4fc01daae5a5 | 64 | volatile uint8_t RLN3nLDBR6; /* RLN3nLDBR6 */ |
bogdanm | 92:4fc01daae5a5 | 65 | volatile uint8_t RLN3nLDBR7; /* RLN3nLDBR7 */ |
bogdanm | 92:4fc01daae5a5 | 66 | volatile uint8_t RLN3nLDBR8; /* RLN3nLDBR8 */ |
bogdanm | 92:4fc01daae5a5 | 67 | volatile uint8_t RLN3nLUOER; /* RLN3nLUOER */ |
bogdanm | 92:4fc01daae5a5 | 68 | volatile uint8_t RLN3nLUOR1; /* RLN3nLUOR1 */ |
bogdanm | 92:4fc01daae5a5 | 69 | volatile uint8_t dummy4[2]; /* */ |
bogdanm | 92:4fc01daae5a5 | 70 | union iodefine_reg16_8_t RLN3nLUTDR; /* RLN3nLUTDR */ |
bogdanm | 92:4fc01daae5a5 | 71 | union iodefine_reg16_8_t RLN3nLURDR; /* RLN3nLURDR */ |
bogdanm | 92:4fc01daae5a5 | 72 | union iodefine_reg16_8_t RLN3nLUWTDR; /* RLN3nLUWTDR */ |
bogdanm | 92:4fc01daae5a5 | 73 | |
bogdanm | 92:4fc01daae5a5 | 74 | }; |
bogdanm | 92:4fc01daae5a5 | 75 | |
bogdanm | 92:4fc01daae5a5 | 76 | |
bogdanm | 92:4fc01daae5a5 | 77 | #define LIN0 (*(struct st_lin *)0xFCFE9000uL) /* LIN0 */ |
bogdanm | 92:4fc01daae5a5 | 78 | #define LIN1 (*(struct st_lin *)0xFCFE9800uL) /* LIN1 */ |
bogdanm | 92:4fc01daae5a5 | 79 | |
bogdanm | 92:4fc01daae5a5 | 80 | |
bogdanm | 92:4fc01daae5a5 | 81 | /* Start of channnel array defines of LIN */ |
bogdanm | 92:4fc01daae5a5 | 82 | |
bogdanm | 92:4fc01daae5a5 | 83 | /* Channnel array defines of LIN */ |
bogdanm | 92:4fc01daae5a5 | 84 | /*(Sample) value = LIN[ channel ]->RLN3nLWBR; */ |
bogdanm | 92:4fc01daae5a5 | 85 | #define LIN_COUNT 2 |
bogdanm | 92:4fc01daae5a5 | 86 | #define LIN_ADDRESS_LIST \ |
bogdanm | 92:4fc01daae5a5 | 87 | { /* ->MISRA 11.3 */ /* ->SEC R2.7.1 */ \ |
bogdanm | 92:4fc01daae5a5 | 88 | &LIN0, &LIN1 \ |
bogdanm | 92:4fc01daae5a5 | 89 | } /* <-MISRA 11.3 */ /* <-SEC R2.7.1 */ /* { } is for MISRA 19.4 */ |
bogdanm | 92:4fc01daae5a5 | 90 | |
bogdanm | 92:4fc01daae5a5 | 91 | /* End of channnel array defines of LIN */ |
bogdanm | 92:4fc01daae5a5 | 92 | |
bogdanm | 92:4fc01daae5a5 | 93 | |
bogdanm | 92:4fc01daae5a5 | 94 | #define LIN0RLN30LWBR LIN0.RLN3nLWBR |
bogdanm | 92:4fc01daae5a5 | 95 | #define LIN0RLN30LBRP01 LIN0.RLN3nLBRP01.UINT16 |
bogdanm | 92:4fc01daae5a5 | 96 | #define LIN0RLN30LBRP0 LIN0.RLN3nLBRP01.UINT8[L] |
bogdanm | 92:4fc01daae5a5 | 97 | #define LIN0RLN30LBRP1 LIN0.RLN3nLBRP01.UINT8[H] |
bogdanm | 92:4fc01daae5a5 | 98 | #define LIN0RLN30LSTC LIN0.RLN3nLSTC |
bogdanm | 92:4fc01daae5a5 | 99 | #define LIN0RLN30LMD LIN0.RLN3nLMD |
bogdanm | 92:4fc01daae5a5 | 100 | #define LIN0RLN30LBFC LIN0.RLN3nLBFC |
bogdanm | 92:4fc01daae5a5 | 101 | #define LIN0RLN30LSC LIN0.RLN3nLSC |
bogdanm | 92:4fc01daae5a5 | 102 | #define LIN0RLN30LWUP LIN0.RLN3nLWUP |
bogdanm | 92:4fc01daae5a5 | 103 | #define LIN0RLN30LIE LIN0.RLN3nLIE |
bogdanm | 92:4fc01daae5a5 | 104 | #define LIN0RLN30LEDE LIN0.RLN3nLEDE |
bogdanm | 92:4fc01daae5a5 | 105 | #define LIN0RLN30LCUC LIN0.RLN3nLCUC |
bogdanm | 92:4fc01daae5a5 | 106 | #define LIN0RLN30LTRC LIN0.RLN3nLTRC |
bogdanm | 92:4fc01daae5a5 | 107 | #define LIN0RLN30LMST LIN0.RLN3nLMST |
bogdanm | 92:4fc01daae5a5 | 108 | #define LIN0RLN30LST LIN0.RLN3nLST |
bogdanm | 92:4fc01daae5a5 | 109 | #define LIN0RLN30LEST LIN0.RLN3nLEST |
bogdanm | 92:4fc01daae5a5 | 110 | #define LIN0RLN30LDFC LIN0.RLN3nLDFC |
bogdanm | 92:4fc01daae5a5 | 111 | #define LIN0RLN30LIDB LIN0.RLN3nLIDB |
bogdanm | 92:4fc01daae5a5 | 112 | #define LIN0RLN30LCBR LIN0.RLN3nLCBR |
bogdanm | 92:4fc01daae5a5 | 113 | #define LIN0RLN30LUDB0 LIN0.RLN3nLUDB0 |
bogdanm | 92:4fc01daae5a5 | 114 | #define LIN0RLN30LDBR1 LIN0.RLN3nLDBR1 |
bogdanm | 92:4fc01daae5a5 | 115 | #define LIN0RLN30LDBR2 LIN0.RLN3nLDBR2 |
bogdanm | 92:4fc01daae5a5 | 116 | #define LIN0RLN30LDBR3 LIN0.RLN3nLDBR3 |
bogdanm | 92:4fc01daae5a5 | 117 | #define LIN0RLN30LDBR4 LIN0.RLN3nLDBR4 |
bogdanm | 92:4fc01daae5a5 | 118 | #define LIN0RLN30LDBR5 LIN0.RLN3nLDBR5 |
bogdanm | 92:4fc01daae5a5 | 119 | #define LIN0RLN30LDBR6 LIN0.RLN3nLDBR6 |
bogdanm | 92:4fc01daae5a5 | 120 | #define LIN0RLN30LDBR7 LIN0.RLN3nLDBR7 |
bogdanm | 92:4fc01daae5a5 | 121 | #define LIN0RLN30LDBR8 LIN0.RLN3nLDBR8 |
bogdanm | 92:4fc01daae5a5 | 122 | #define LIN0RLN30LUOER LIN0.RLN3nLUOER |
bogdanm | 92:4fc01daae5a5 | 123 | #define LIN0RLN30LUOR1 LIN0.RLN3nLUOR1 |
bogdanm | 92:4fc01daae5a5 | 124 | #define LIN0RLN30LUTDR LIN0.RLN3nLUTDR.UINT16 |
bogdanm | 92:4fc01daae5a5 | 125 | #define LIN0RLN30LUTDRL LIN0.RLN3nLUTDR.UINT8[L] |
bogdanm | 92:4fc01daae5a5 | 126 | #define LIN0RLN30LUTDRH LIN0.RLN3nLUTDR.UINT8[H] |
bogdanm | 92:4fc01daae5a5 | 127 | #define LIN0RLN30LURDR LIN0.RLN3nLURDR.UINT16 |
bogdanm | 92:4fc01daae5a5 | 128 | #define LIN0RLN30LURDRL LIN0.RLN3nLURDR.UINT8[L] |
bogdanm | 92:4fc01daae5a5 | 129 | #define LIN0RLN30LURDRH LIN0.RLN3nLURDR.UINT8[H] |
bogdanm | 92:4fc01daae5a5 | 130 | #define LIN0RLN30LUWTDR LIN0.RLN3nLUWTDR.UINT16 |
bogdanm | 92:4fc01daae5a5 | 131 | #define LIN0RLN30LUWTDRL LIN0.RLN3nLUWTDR.UINT8[L] |
bogdanm | 92:4fc01daae5a5 | 132 | #define LIN0RLN30LUWTDRH LIN0.RLN3nLUWTDR.UINT8[H] |
bogdanm | 92:4fc01daae5a5 | 133 | #define LIN1RLN31LWBR LIN1.RLN3nLWBR |
bogdanm | 92:4fc01daae5a5 | 134 | #define LIN1RLN31LBRP01 LIN1.RLN3nLBRP01.UINT16 |
bogdanm | 92:4fc01daae5a5 | 135 | #define LIN1RLN31LBRP0 LIN1.RLN3nLBRP01.UINT8[L] |
bogdanm | 92:4fc01daae5a5 | 136 | #define LIN1RLN31LBRP1 LIN1.RLN3nLBRP01.UINT8[H] |
bogdanm | 92:4fc01daae5a5 | 137 | #define LIN1RLN31LSTC LIN1.RLN3nLSTC |
bogdanm | 92:4fc01daae5a5 | 138 | #define LIN1RLN31LMD LIN1.RLN3nLMD |
bogdanm | 92:4fc01daae5a5 | 139 | #define LIN1RLN31LBFC LIN1.RLN3nLBFC |
bogdanm | 92:4fc01daae5a5 | 140 | #define LIN1RLN31LSC LIN1.RLN3nLSC |
bogdanm | 92:4fc01daae5a5 | 141 | #define LIN1RLN31LWUP LIN1.RLN3nLWUP |
bogdanm | 92:4fc01daae5a5 | 142 | #define LIN1RLN31LIE LIN1.RLN3nLIE |
bogdanm | 92:4fc01daae5a5 | 143 | #define LIN1RLN31LEDE LIN1.RLN3nLEDE |
bogdanm | 92:4fc01daae5a5 | 144 | #define LIN1RLN31LCUC LIN1.RLN3nLCUC |
bogdanm | 92:4fc01daae5a5 | 145 | #define LIN1RLN31LTRC LIN1.RLN3nLTRC |
bogdanm | 92:4fc01daae5a5 | 146 | #define LIN1RLN31LMST LIN1.RLN3nLMST |
bogdanm | 92:4fc01daae5a5 | 147 | #define LIN1RLN31LST LIN1.RLN3nLST |
bogdanm | 92:4fc01daae5a5 | 148 | #define LIN1RLN31LEST LIN1.RLN3nLEST |
bogdanm | 92:4fc01daae5a5 | 149 | #define LIN1RLN31LDFC LIN1.RLN3nLDFC |
bogdanm | 92:4fc01daae5a5 | 150 | #define LIN1RLN31LIDB LIN1.RLN3nLIDB |
bogdanm | 92:4fc01daae5a5 | 151 | #define LIN1RLN31LCBR LIN1.RLN3nLCBR |
bogdanm | 92:4fc01daae5a5 | 152 | #define LIN1RLN31LUDB0 LIN1.RLN3nLUDB0 |
bogdanm | 92:4fc01daae5a5 | 153 | #define LIN1RLN31LDBR1 LIN1.RLN3nLDBR1 |
bogdanm | 92:4fc01daae5a5 | 154 | #define LIN1RLN31LDBR2 LIN1.RLN3nLDBR2 |
bogdanm | 92:4fc01daae5a5 | 155 | #define LIN1RLN31LDBR3 LIN1.RLN3nLDBR3 |
bogdanm | 92:4fc01daae5a5 | 156 | #define LIN1RLN31LDBR4 LIN1.RLN3nLDBR4 |
bogdanm | 92:4fc01daae5a5 | 157 | #define LIN1RLN31LDBR5 LIN1.RLN3nLDBR5 |
bogdanm | 92:4fc01daae5a5 | 158 | #define LIN1RLN31LDBR6 LIN1.RLN3nLDBR6 |
bogdanm | 92:4fc01daae5a5 | 159 | #define LIN1RLN31LDBR7 LIN1.RLN3nLDBR7 |
bogdanm | 92:4fc01daae5a5 | 160 | #define LIN1RLN31LDBR8 LIN1.RLN3nLDBR8 |
bogdanm | 92:4fc01daae5a5 | 161 | #define LIN1RLN31LUOER LIN1.RLN3nLUOER |
bogdanm | 92:4fc01daae5a5 | 162 | #define LIN1RLN31LUOR1 LIN1.RLN3nLUOR1 |
bogdanm | 92:4fc01daae5a5 | 163 | #define LIN1RLN31LUTDR LIN1.RLN3nLUTDR.UINT16 |
bogdanm | 92:4fc01daae5a5 | 164 | #define LIN1RLN31LUTDRL LIN1.RLN3nLUTDR.UINT8[L] |
bogdanm | 92:4fc01daae5a5 | 165 | #define LIN1RLN31LUTDRH LIN1.RLN3nLUTDR.UINT8[H] |
bogdanm | 92:4fc01daae5a5 | 166 | #define LIN1RLN31LURDR LIN1.RLN3nLURDR.UINT16 |
bogdanm | 92:4fc01daae5a5 | 167 | #define LIN1RLN31LURDRL LIN1.RLN3nLURDR.UINT8[L] |
bogdanm | 92:4fc01daae5a5 | 168 | #define LIN1RLN31LURDRH LIN1.RLN3nLURDR.UINT8[H] |
bogdanm | 92:4fc01daae5a5 | 169 | #define LIN1RLN31LUWTDR LIN1.RLN3nLUWTDR.UINT16 |
bogdanm | 92:4fc01daae5a5 | 170 | #define LIN1RLN31LUWTDRL LIN1.RLN3nLUWTDR.UINT8[L] |
bogdanm | 92:4fc01daae5a5 | 171 | #define LIN1RLN31LUWTDRH LIN1.RLN3nLUWTDR.UINT8[H] |
bogdanm | 92:4fc01daae5a5 | 172 | /* <-SEC M1.10.1 */ |
bogdanm | 92:4fc01daae5a5 | 173 | /* <-MISRA 18.4 */ /* <-SEC M1.6.2 */ |
bogdanm | 92:4fc01daae5a5 | 174 | #endif |