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/spdif_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 SPDIF_IODEFINE_H
    3030#define SPDIF_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 */
     34/* ->SEC M1.10.1 : Not magic number */
    3135
    32 struct st_spdif
    33 {                                                          /* SPDIF            */
     36#define SPDIF   (*(struct st_spdif   *)0xE8012000uL) /* SPDIF */
     37
     38
     39#define SPDIFTLCA (SPDIF.TLCA)
     40#define SPDIFTRCA (SPDIF.TRCA)
     41#define SPDIFTLCS (SPDIF.TLCS)
     42#define SPDIFTRCS (SPDIF.TRCS)
     43#define SPDIFTUI (SPDIF.TUI)
     44#define SPDIFRLCA (SPDIF.RLCA)
     45#define SPDIFRRCA (SPDIF.RRCA)
     46#define SPDIFRLCS (SPDIF.RLCS)
     47#define SPDIFRRCS (SPDIF.RRCS)
     48#define SPDIFRUI (SPDIF.RUI)
     49#define SPDIFCTRL (SPDIF.CTRL)
     50#define SPDIFSTAT (SPDIF.STAT)
     51#define SPDIFTDAD (SPDIF.TDAD)
     52#define SPDIFRDAD (SPDIF.RDAD)
     53
     54
     55typedef struct st_spdif
     56{
     57                                                           /* SPDIF            */
    3458    volatile uint32_t  TLCA;                                   /*  TLCA            */
    3559    volatile uint32_t  TRCA;                                   /*  TRCA            */
     
    4670    volatile uint32_t  TDAD;                                   /*  TDAD            */
    4771    volatile uint32_t  RDAD;                                   /*  RDAD            */
    48 };
     72} r_io_spdif_t;
    4973
    5074
    51 #define SPDIF   (*(struct st_spdif   *)0xE8012000uL) /* SPDIF */
    52 
    53 
    54 #define SPDIFTLCA SPDIF.TLCA
    55 #define SPDIFTRCA SPDIF.TRCA
    56 #define SPDIFTLCS SPDIF.TLCS
    57 #define SPDIFTRCS SPDIF.TRCS
    58 #define SPDIFTUI SPDIF.TUI
    59 #define SPDIFRLCA SPDIF.RLCA
    60 #define SPDIFRRCA SPDIF.RRCA
    61 #define SPDIFRLCS SPDIF.RLCS
    62 #define SPDIFRRCS SPDIF.RRCS
    63 #define SPDIFRUI SPDIF.RUI
    64 #define SPDIFCTRL SPDIF.CTRL
    65 #define SPDIFSTAT SPDIF.STAT
    66 #define SPDIFTDAD SPDIF.TDAD
    67 #define SPDIFRDAD SPDIF.RDAD
     75/* <-SEC M1.10.1 */
     76/* <-MISRA 18.4 */ /* <-SEC M1.6.2 */
     77/* <-QAC 0857 */
     78/* <-QAC 0639 */
    6879#endif
Note: See TracChangeset for help on using the changeset viewer.