Ignore:
Timestamp:
Apr 5, 2019, 9:26:53 PM (5 years ago)
Author:
coas-nagasima
Message:

mbed関連を更新
シリアルドライバをmbedのHALを使うよう変更
ファイルディスクリプタの処理を更新

Location:
asp3_tinet_ecnl_arm/trunk/asp3_dcre/mbed/targets/TARGET_RENESAS/TARGET_RZA1XX
Files:
1 added
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • asp3_tinet_ecnl_arm/trunk/asp3_dcre/mbed/targets/TARGET_RENESAS/TARGET_RZA1XX/TARGET_RZ_A1H/device/inc/iodefines/scim_iodefine.h

    r352 r374  
    1919* following link:
    2020* http://www.renesas.com/disclaimer*
    21 * Copyright (C) 2013-2014 Renesas Electronics Corporation. All rights reserved.
     21* Copyright (C) 2013-2015 Renesas Electronics Corporation. All rights reserved.
    2222*******************************************************************************/
    2323/*******************************************************************************
     
    2525* $Rev: $
    2626* $Date::                           $
    27 * Description : Definition of I/O Register (V1.00a)
     27* Description : Definition of I/O Register for RZ/A1H,M (V2.00h)
    2828******************************************************************************/
    2929#ifndef SCIM_IODEFINE_H
    3030#define SCIM_IODEFINE_H
     31/* ->QAC 0639 : Over 127 members (C90) */
     32/* ->QAC 0857 : Over 1024 #define (C90) */
     33/* ->MISRA 18.4 : Pack unpack union */ /* ->SEC M1.6.2 */
    3134/* ->SEC M1.10.1 : Not magic number */
    3235
    33 struct st_scim
    34 {                                                          /* SCIM             */
     36#define SCIM0   (*(struct st_scim    *)0xE800B000uL) /* SCIM0 */
     37#define SCIM1   (*(struct st_scim    *)0xE800B800uL) /* SCIM1 */
     38
     39
     40/* Start of channel array defines of SCIM */
     41
     42/* Channel array defines of SCIM */
     43/*(Sample) value = SCIM[ channel ]->SMR; */
     44#define SCIM_COUNT  (2)
     45#define SCIM_ADDRESS_LIST \
     46{   /* ->MISRA 11.3 */ /* ->SEC R2.7.1 */ \
     47    &SCIM0, &SCIM1 \
     48}   /* <-MISRA 11.3 */ /* <-SEC R2.7.1 */ /* { } is for MISRA 19.4 */
     49
     50/* End of channel array defines of SCIM */
     51
     52
     53#define SMR0 (SCIM0.SMR)
     54#define BRR0 (SCIM0.BRR)
     55#define SCR0 (SCIM0.SCR)
     56#define TDR0 (SCIM0.TDR)
     57#define SSR0 (SCIM0.SSR)
     58#define RDR0 (SCIM0.RDR)
     59#define SCMR0 (SCIM0.SCMR)
     60#define SEMR0 (SCIM0.SEMR)
     61#define SNFR0 (SCIM0.SNFR)
     62#define SECR0 (SCIM0.SECR)
     63#define SMR1 (SCIM1.SMR)
     64#define BRR1 (SCIM1.BRR)
     65#define SCR1 (SCIM1.SCR)
     66#define TDR1 (SCIM1.TDR)
     67#define SSR1 (SCIM1.SSR)
     68#define RDR1 (SCIM1.RDR)
     69#define SCMR1 (SCIM1.SCMR)
     70#define SEMR1 (SCIM1.SEMR)
     71#define SNFR1 (SCIM1.SNFR)
     72#define SECR1 (SCIM1.SECR)
     73
     74
     75typedef struct st_scim
     76{
     77                                                           /* SCIM             */
    3578    volatile uint8_t   SMR;                                    /*  SMR             */
    3679    volatile uint8_t   BRR;                                    /*  BRR             */
     
    4487    volatile uint8_t   dummy1[4];                              /*                  */
    4588    volatile uint8_t   SECR;                                   /*  SECR            */
    46 };
     89} r_io_scim_t;
    4790
    4891
    49 #define SCIM0   (*(struct st_scim    *)0xE800B000uL) /* SCIM0 */
    50 #define SCIM1   (*(struct st_scim    *)0xE800B800uL) /* SCIM1 */
     92/* Channel array defines of SCIM (2)*/
     93#ifdef  DECLARE_SCIM_CHANNELS
     94volatile struct st_scim*  SCIM[ SCIM_COUNT ] =
     95    /* ->MISRA 11.3 */ /* ->SEC R2.7.1 */
     96    SCIM_ADDRESS_LIST;
     97    /* <-MISRA 11.3 */ /* <-SEC R2.7.1 */
     98#endif  /* DECLARE_SCIM_CHANNELS */
     99/* End of channel array defines of SCIM (2)*/
    51100
    52101
    53 /* Start of channnel array defines of SCIM */
    54 
    55 /* Channnel array defines of SCIM */
    56 /*(Sample) value = SCIM[ channel ]->SMR; */
    57 #define SCIM_COUNT  2
    58 #define SCIM_ADDRESS_LIST \
    59 {   /* ->MISRA 11.3 */ /* ->SEC R2.7.1 */ \
    60     &SCIM0, &SCIM1 \
    61 }   /* <-MISRA 11.3 */ /* <-SEC R2.7.1 */ /* { } is for MISRA 19.4 */
    62 
    63 /* End of channnel array defines of SCIM */
    64 
    65 
    66 #define SMR0 SCIM0.SMR
    67 #define BRR0 SCIM0.BRR
    68 #define SCR0 SCIM0.SCR
    69 #define TDR0 SCIM0.TDR
    70 #define SSR0 SCIM0.SSR
    71 #define RDR0 SCIM0.RDR
    72 #define SCMR0 SCIM0.SCMR
    73 #define SEMR0 SCIM0.SEMR
    74 #define SNFR0 SCIM0.SNFR
    75 #define SECR0 SCIM0.SECR
    76 #define SMR1 SCIM1.SMR
    77 #define BRR1 SCIM1.BRR
    78 #define SCR1 SCIM1.SCR
    79 #define TDR1 SCIM1.TDR
    80 #define SSR1 SCIM1.SSR
    81 #define RDR1 SCIM1.RDR
    82 #define SCMR1 SCIM1.SCMR
    83 #define SEMR1 SCIM1.SEMR
    84 #define SNFR1 SCIM1.SNFR
    85 #define SECR1 SCIM1.SECR
    86102/* <-SEC M1.10.1 */
     103/* <-MISRA 18.4 */ /* <-SEC M1.6.2 */
     104/* <-QAC 0857 */
     105/* <-QAC 0639 */
    87106#endif
Note: See TracChangeset for help on using the changeset viewer.