⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gcrdef.h

📁 本程序为ST公司开发的源代码
💻 H
字号:
/************************************************** * * * CVS ID:   $Id: gcrdef.h,v 1.2 2006/02/13 13:04:26 longauer Exp $ * Author:   Maurizio Marcucci [MM] - STM * Date:     $Date: 2006/02/13 13:04:26 $ * Revision: $Revision: 1.2 $ *  * Description: *  *   Accordo+ Hardware registers definition * *************************************************** *  * COPYRIGHT (C) ST Microelectronics  2005 *            All Rights Reserved * ***************************************************/// GCR1 Registertypedef struct{ UInt remap      : 2;  // Bit 0-1 UInt eic_sres   : 1;  // Bit 2 UInt vbusval    : 1;  // Bit 3 UInt vbusses    : 1;  // Bit 4 UInt vbuslow    : 1;  // Bit 5 UInt cid        : 1;  // Bit 6 UInt tm1        : 1;  // Bit 7 UInt osc_en     : 1;  // Bit 8 UInt dpath_test : 1;  // Bit 9 UInt sdram_sel  : 1;  // Bit 10 UInt circ_en    : 1;  // Bit 11 UInt spdif_sel  : 1;  // Bit 12 UInt i2c_fil_byp: 1;  // Bit 13 UInt usb_pad_en : 1;  // Bit 14 UInt unlock     : 1;  // Bit 15 UInt            : 16; // Bit 16-31} GCR1_STRUCT;typedef union{ GCR1_STRUCT field; uint32     all;} GCR1_UNION;// GCR2 structtypedef struct{ UInt cfg      : 5; // Bit 0-4 UInt          : 1; // Bit 5 UInt          : 1; // Bit 6 UInt          : 1; // Bit 7 UInt pck_sel  : 1; // Bit 8 UInt pucon    : 1; // Bit 9 UInt pdcon    : 1; // Bit 10 UInt vbusen   : 1; // Bit 11 UInt vbuschg  : 1; // Bit 12 UInt iden     : 1; // Bit 13 UInt pu_lo    : 1; // Bit 14 UInt testen   : 1; // Bit 15 UInt          : 16;// Bit 16-31} GCR2_STRUCT;typedef union{ GCR2_STRUCT field; uint32     all;} GCR2_UNION;// GCR3 structtypedef struct{ UInt dma_ch0_src_sel  : 4;  // Bit 0-3 UInt dma_ch1_src_sel  : 4;  // Bit 4-7 UInt dma_ch2_src_sel  : 4;  // Bit 8-11 UInt dma_ch3_src_sel  : 4;  // Bit 12-15 UInt                  : 16;} GCR3_STRUCT;typedef union{ GCR3_STRUCT field; uint32     all;} GCR3_UNION;// GCR4 structtypedef struct{ UInt f_idle           : 1;  // Bit 0 UInt comp_w           : 8;  // Bit 1-8 UInt                  : 7;  // Bit 9-15 UInt                  : 16;} GCR4_STRUCT;typedef union{ GCR4_STRUCT field; uint32     all;} GCR4_UNION;// GCR5 structtypedef struct{ UInt mon_0            : 6;  // Bit 0-5 UInt mon_1            : 6;  // Bit 6-11 UInt mon_2            : 3;  // Bit 12-14 UInt mon_sel          : 1;  // Bit 15 UInt                  : 16;} GCR5_STRUCT;typedef union{ GCR5_STRUCT field; uint32     all;} GCR5_UNION;// CGC_PCG1 Registertypedef struct{ UInt eic        : 1;  // Bit 0 UInt dmac       : 1;  // Bit 1 UInt sdramc     : 1;  // Bit 2 UInt exp_ram    : 1;  // Bit 3 UInt ch_itf     : 1;  // Bit 4 UInt src        : 1;  // Bit 5 UInt usb        : 1;  // Bit 6 UInt input_port : 1;  // Bit 7 UInt            : 8;  // Bit 8-15 UInt            : 16;} CGC_STRUCT;typedef union{ CGC_STRUCT field; uint32     all;} CGC_PCG1_UNION;typedef union{ CGC_STRUCT field; uint32     all;} CGC_PUR1_UNION;typedef union{ CGC_STRUCT field; uint32     all;} CGC_EMU1_UNION;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -