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/ostm_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 OSTM_IODEFINE_H
    3030#define OSTM_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_ostm
    34 {                                                          /* OSTM             */
     36#define OSTM0   (*(struct st_ostm    *)0xFCFEC000uL) /* OSTM0 */
     37#define OSTM1   (*(struct st_ostm    *)0xFCFEC400uL) /* OSTM1 */
     38
     39
     40/* Start of channel array defines of OSTM */
     41
     42/* Channel array defines of OSTM */
     43/*(Sample) value = OSTM[ channel ]->OSTMnCMP; */
     44#define OSTM_COUNT  (2)
     45#define OSTM_ADDRESS_LIST \
     46{   /* ->MISRA 11.3 */ /* ->SEC R2.7.1 */ \
     47    &OSTM0, &OSTM1 \
     48}   /* <-MISRA 11.3 */ /* <-SEC R2.7.1 */ /* { } is for MISRA 19.4 */
     49
     50/* End of channel array defines of OSTM */
     51
     52
     53#define OSTM0CMP (OSTM0.OSTMnCMP)
     54#define OSTM0CNT (OSTM0.OSTMnCNT)
     55#define OSTM0TE (OSTM0.OSTMnTE)
     56#define OSTM0TS (OSTM0.OSTMnTS)
     57#define OSTM0TT (OSTM0.OSTMnTT)
     58#define OSTM0CTL (OSTM0.OSTMnCTL)
     59#define OSTM1CMP (OSTM1.OSTMnCMP)
     60#define OSTM1CNT (OSTM1.OSTMnCNT)
     61#define OSTM1TE (OSTM1.OSTMnTE)
     62#define OSTM1TS (OSTM1.OSTMnTS)
     63#define OSTM1TT (OSTM1.OSTMnTT)
     64#define OSTM1CTL (OSTM1.OSTMnCTL)
     65
     66
     67typedef struct st_ostm
     68{
     69                                                           /* OSTM             */
    3570    volatile uint32_t  OSTMnCMP;                               /*  OSTMnCMP        */
    3671    volatile uint32_t  OSTMnCNT;                               /*  OSTMnCNT        */
     
    4378    volatile uint8_t   dummy4[7];                              /*                  */
    4479    volatile uint8_t   OSTMnCTL;                               /*  OSTMnCTL        */
    45 };
     80} r_io_ostm_t;
    4681
    4782
    48 #define OSTM0   (*(struct st_ostm    *)0xFCFEC000uL) /* OSTM0 */
    49 #define OSTM1   (*(struct st_ostm    *)0xFCFEC400uL) /* OSTM1 */
     83/* Channel array defines of OSTM (2)*/
     84#ifdef  DECLARE_OSTM_CHANNELS
     85volatile struct st_ostm*  OSTM[ OSTM_COUNT ] =
     86    /* ->MISRA 11.3 */ /* ->SEC R2.7.1 */
     87    OSTM_ADDRESS_LIST;
     88    /* <-MISRA 11.3 */ /* <-SEC R2.7.1 */
     89#endif  /* DECLARE_OSTM_CHANNELS */
     90/* End of channel array defines of OSTM (2)*/
    5091
    5192
    52 /* Start of channnel array defines of OSTM */
    53 
    54 /* Channnel array defines of OSTM */
    55 /*(Sample) value = OSTM[ channel ]->OSTMnCMP; */
    56 #define OSTM_COUNT  2
    57 #define OSTM_ADDRESS_LIST \
    58 {   /* ->MISRA 11.3 */ /* ->SEC R2.7.1 */ \
    59     &OSTM0, &OSTM1 \
    60 }   /* <-MISRA 11.3 */ /* <-SEC R2.7.1 */ /* { } is for MISRA 19.4 */
    61 
    62 /* End of channnel array defines of OSTM */
    63 
    64 
    65 #define OSTM0CMP OSTM0.OSTMnCMP
    66 #define OSTM0CNT OSTM0.OSTMnCNT
    67 #define OSTM0TE OSTM0.OSTMnTE
    68 #define OSTM0TS OSTM0.OSTMnTS
    69 #define OSTM0TT OSTM0.OSTMnTT
    70 #define OSTM0CTL OSTM0.OSTMnCTL
    71 #define OSTM1CMP OSTM1.OSTMnCMP
    72 #define OSTM1CNT OSTM1.OSTMnCNT
    73 #define OSTM1TE OSTM1.OSTMnTE
    74 #define OSTM1TS OSTM1.OSTMnTS
    75 #define OSTM1TT OSTM1.OSTMnTT
    76 #define OSTM1CTL OSTM1.OSTMnCTL
    7793/* <-SEC M1.10.1 */
     94/* <-MISRA 18.4 */ /* <-SEC M1.6.2 */
     95/* <-QAC 0857 */
     96/* <-QAC 0639 */
    7897#endif
Note: See TracChangeset for help on using the changeset viewer.