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

📄 main.lst

📁 穿口助手
💻 LST
📖 第 1 页 / 共 5 页
字号:
  344       =1 
  345       =1 #define P0_16_GPIO     0//通用数字输入输出管脚
  346       =1   #define P0_16_EINT0  1//**外部中断0输入
  347       =1   #define P0_16_MAT0_2 2//**定时器0的匹配输出通道2
  348       =1   #define P0_16_CAP0_2 3//***定时器0的捕获输入通道2
  349       =1 #define P0_16_PINSEL   2 * P0_0
  350       =1 
  351       =1 
  352       =1 #define P0_17_GPIO     0//通用数字输入输出管脚
  353       =1   #define P0_17_CAP1_2 1//**定时器1的捕获输入通道2
  354       =1   #define P0_17_SCK1   2//SPI1的串行时钟。SPI时钟从主机输出,从机输入
  355       =1   #define P0_17_MAT1_2 3//**定时器1的匹配输出通道2
  356       =1 #define P0_17_PINSEL   2 * P0_1
  357       =1 
  358       =1 #define P0_18_GPIO     0//通用数字输入输出管脚
  359       =1   #define P0_18_CAP1_3 1//**定时器1的捕获输入通道3
  360       =1   #define P0_18_MISO1  2//SPI1主机输入从机输出端。从机到主机的数据传输
  361       =1   #define P0_18_MAT1_3 3//**定时器1的匹配输出通道3
  362       =1 #define P0_18_PINSEL   2 * P0_2
  363       =1 
  364       =1 
  365       =1 #define P0_19_GPIO     0//通用数字输入输出管脚
  366       =1   #define P0_19_MAT1_2 1//**定时器1的匹配输出通道2
  367       =1   #define P0_19_MOSI1  2//SPI1主机输出从机输入端。主机到从机的数据传输
  368       =1   #define P0_19_CAP1_2 3//**定时器1的捕获输入通道2
  369       =1 #define P0_19_PINSEL   2 * P0_3
  370       =1 
  371       =1 
  372       =1 #define P0_20_GPIO     0//通用数字输入输出管脚
ARM COMPILER V2.50a,  main                                                                 01/03/06  17:21:14  PAGE 11  

  373       =1   #define P0_20_MAT1_3 1//**定时器1的匹配输出通道3
  374       =1   #define P0_20_SSEL1  2//SPI1从机选择。选择SPI接口用作从机
  375       =1   #define P0_20_EINT3  3//***外部中断3输入
  376       =1 #define P0_20_PINSEL   2 * P0_4
  377       =1 
  378       =1 
  379       =1 #define P0_21_GPIO     0//通用数字输入输出管脚
  380       =1   #define P0_21_PWM5   1//脉宽调制器输出5
  381       =1   #define P0_21_AD1_6  2//A/D转换器1输入6。该模拟输入总是连接到相应的管脚(仅用于 LPC2138)
  382       =1   #define P0_21_CAP1_3 3//**定时器1的捕获输入通道3
  383       =1 #define P0_21_PINSEL   2 * P0_5
  384       =1 
  385       =1 
  386       =1 #define P0_22_GPIO     0//通用数字输入输出管脚
  387       =1   #define P0_22_AD1_7  1//A/D转换器1输入7。该模拟输入总是连接到相应的管脚(仅用于 LPC2138)
  388       =1   #define P0_22_CAP0_0 2//***定时器0的捕获输入通道0
  389       =1   #define P0_22_MAT0_0 3//**定时器0的匹配输出通道0
  390       =1 #define P0_22_PINSEL   2 * P0_6
  391       =1 
  392       =1 
  393       =1 #define P0_23_GPIO     0//通用数字输入输出管脚
  394       =1 #define P0_23_PINSEL   2 * P0_7
  395       =1 
  396       =1 
  397       =1 //#define P0_24_GPIO     0//P0.24 脚未用
  398       =1 //#define P0_24_PINSEL 2 * P0_8
  399       =1 
  400       =1 
  401       =1 #define P0_25_GPIO     0//通用数字输入输出管脚
  402       =1   #define P0_25_AD0_4  1//A/D转换器0输入4。该模拟输入总是连接到相应的管脚.
  403       =1   #define P0_25_DAC    2//D/A 转换器输出(仅用于 LPC2138)
  404       =1 #define P0_25_PINSEL   2 * P0_9
  405       =1 
  406       =1 
  407       =1 #define P0_26_GPIO     0//通用数字输入输出管脚
  408       =1   #define P0_26_AD0_5  1//A/D转换器0输入5。该模拟输入总是连接到相应的管脚
  409       =1 #define P0_26_PINSEL   2 * P0_10
  410       =1 
  411       =1 
  412       =1 #define P0_27_GPIO     0//通用数字输入输出管脚
  413       =1   #define P0_27_AD0_0  1//A/D转换器0输入0。该模拟输入总是连接到相应的管脚
  414       =1   #define P0_27_CAP0_1 2//**定时器0的捕获输入通道1
  415       =1   #define P0_27_MAT0_1 3//**定时器0的捕获输入通道1
  416       =1 #define P0_27_PINSEL   2 * P0_11
  417       =1 
  418       =1 
  419       =1 #define P0_28_GPIO     0//通用数字输入输出管脚
  420       =1   #define P0_28_AD0_1  1//A/D转换器0输入1。该模拟输入总是连接到相应的管脚
  421       =1   #define P0_28_CAP0_2 2//***定时器0的捕获输入通道2
  422       =1   #define P0_28_MAT0_2 3//**定时器0的匹配输出通道2
  423       =1 #define P0_28_PINSEL   2 * P0_12
  424       =1 
  425       =1 
  426       =1 #define P0_29_GPIO     0//通用数字输入输出管脚
  427       =1   #define P0_29_AD0_2  1//A/D转换器0输入2。该模拟输入总是连接到相应的管脚
  428       =1   #define P0_29_CAP0_3 2//定时器0的捕获输入通道3
  429       =1   #define P0_29_MAT0_3 3//定时器0的匹配输出通道3
  430       =1 #define P0_29_PINSEL   2 * P0_13
  431       =1 
  432       =1 
  433       =1 #define P0_30_GPIO     0//通用数字输入输出管脚
  434       =1   #define P0_30_AD0_3  1//A/D转换器0输入3。该模拟输入总是连接到相应的管脚
  435       =1   #define P0_30_EINT3  2//***外部中断3输入
  436       =1   #define P0_30_CAP0_0 3//***定时器0的捕获输入通道0
  437       =1 #define P0_30_PINSEL   2 * P0_14
  438       =1 
ARM COMPILER V2.50a,  main                                                                 01/03/06  17:21:14  PAGE 12  

  439       =1 
  440       =1 #define P0_31_GPO      0//通用数字输出管脚(注意:此管脚仅为输出)
  441       =1 #define P0_31_PINSEL   2 * P0_15
  442       =1 
  443       =1 
  444       =1 #define P0_31_GPO      0//通用数字输出管脚(注意:此管脚仅为输出)
  445       =1 #define P0_31_PINSEL   2 * P0_15
  446       =1 
  447       =1 
  448       =1 //RSIR
  449       =1 #define RSIR          (*((volatile unsigned char *) 0xE01FC180))//
  450       =1   
  451       =1   #define POR          0//RSIR.0//POR信号有效时该位置位,并清除RSIR寄存器的其它位
  452       =1   #define EXTR         1//RSIR.1//RESET信号有效时该位置位
  453       =1   #define WDTR         2//RSIR.2//当看门狗定时器溢出和看门狗方式寄存器的WDTRESET位为1时,该位置位。
  454       =1                                 //该位可被其它任何一个复位源清除。
  455       =1   #define BODR         3//RSIR.3//当3.3V的电源降到低于2.6V时该位置位
  456       =1 
  457       =1 
  458       =1 
  459       =1 
  460       =1 
  461       =1 
  462       =1 
  463       =1 
  464       =1 
  465       =1 //SPI0
  466       =1 
  467       =1 //S0SPCR位定义
  468       =1 #define CPHA 3
  469       =1 #define CPOL 4
  470       =1 #define MSTR 5
  471       =1 #define LSBF 6
  472       =1 #define SPIE 7
  473       =1 
  474       =1 //S0SPSR位定义
  475       =1 #define SPIF 7
  476       =1 
  477       =1 
  478       =1 
  479       =1 //PCONP
  480       =1 #define PCSPI1     10//该位为1 时,SSP 接口使能。为0 时,SSP 接口被关闭以实现节电。
  481       =1 
  482       =1 //WDMOD
  483       =1 #define WDEN        0//
  484       =1 #define WDRESET     1//
  485       =1 #define WDTOF       2//
  486       =1 #define WDINT       3//
  487       =1 
  488       =1 /*------------------------------------------------------------------------
  489       =1   结构指针在ARM之应用(情人节版)
  490       =1 ------------------------------------------------------------------------*/
  491       =1 
  492       =1 typedef volatile unsigned long LPC_REG;// Hardware register definition
  493       =1 
  494       =1 typedef struct _LPCS_VIC {
  495       =1   LPC_REG IRQStatus;//IRQ 状态寄存器
  496       =1   LPC_REG FIQStatus;//FIQ 状态请求
  497       =1   LPC_REG RawIntr;//所有中断的状态寄存器
  498       =1   LPC_REG IntSelect;//中断选择寄存器
  499       =1   LPC_REG IntEnable;//中断使能寄存器
  500       =1   LPC_REG IntEnClr;//中断使能清零寄存器
  501       =1   LPC_REG SoftInt;//软件中断寄存器
  502       =1   LPC_REG SoftIntClr;//软件中断清零寄存器
  503       =1   LPC_REG Protection;//保护使能寄存器
  504       =1   LPC_REG Reserved1[3]; //保留3个空位
ARM COMPILER V2.50a,  main                                                                 01/03/06  17:21:14  PAGE 13  

  505       =1   LPC_REG VectAddr;//向量地址寄存器
  506       =1   LPC_REG DefVectAddr;//默认向量地址寄存器
  507       =1   LPC_REG Reserved2[2]; //保留2个空位
  508       =1   LPC_REG Reserved3[48];//保留48个空位
  509       =1   LPC_REG VectAddrs[16];//向量地址寄存器,VICVectAddr0~VICVectAddr15
  510       =1   LPC_REG Reserved4[48];//保留48个空位
  511       =1   LPC_REG VectCntls[16];//向量控制寄存器,VICVectCntl0~VICVectCntl15
  512       =1 }LPCS_VIC, *LPCPS_VIC;
  513       =1 
  514       =1 #define LPC_BASE_VIC  ((LPCPS_VIC)  0xFFFFF000)//定义硬件结构指针(硬件地址)
  515       =1 const LPCPS_VIC VIC = LPC_BASE_VIC;//定义全局结构指针变量
  516       =1 
  517       =1 typedef struct _LPCS_PINSEL {
  518       =1   LPC_REG PIN_SEL0;//管脚功能选择寄存器0
  519       =1   LPC_REG PIN_SEL1;//管脚功能选择寄存器1
  520       =1   LPC_REG Reserved[4]; //保留4个空位
  521       =1   LPC_REG PIN_SEL2;//管脚功能选择寄存器2
  522       =1 }LPCS_PINSEL, *LPCPS_PINSEL;
  523       =1 
  524       =1 #define LPC_BASE_PINSEL  ((LPCPS_PINSEL)    0xE002C000)//定义硬件结构指针(硬件地址)
  525       =1 const LPCPS_PINSEL PINSEL = LPC_BASE_PINSEL;//定义全局结构指针变量PINSEL
  526       =1 
  527       =1 typedef struct _LPCS_MAM {
  528       =1   LPC_REG MAM_CR;//存储器加速器模块控制寄存器
  529       =1   LPC_REG MAM_TIM;//存储器加速器定时控制
  530       =1   LPC_REG Reserved[14]; //保留14个空位
  531       =1   LPC_REG MEM_MAP;//存储器映射控制
  532       =1 }LPCS_MAM, *LPCPS_MAM;
  533       =1 
  534       =1 #define LPC_BASE_MAM  ((LPCPS_MAM)  0xE01FC000)//定义硬件结构指针(硬件地址)
  535       =1 const LPCPS_MAM MAM = LPC_BASE_MAM;//定义全局结构指针变量MAM
  536       =1 
  537       =1 typedef struct _LPCS_PLL {//锁相环
  538       =1   LPC_REG PLL_CON;//PLL 控制寄存器
  539       =1   LPC_REG PLL_CFG;//PLL 配置寄存器
  540       =1   LPC_REG PLL_STAT;//PLL 状态寄存器
  541       =1   LPC_REG PLL_FEED;//PLL 愦送寄存器
  542       =1 }LPCS_PLL, *LPCPS_PLL;
  543       =1 
  544       =1 #define LPC_BASE_PLL  ((LPCPS_PLL)  0xE01FC080)//定义硬件结构指针(硬件地址)
  545       =1 const LPCPS_PLL PLL = LPC_BASE_PLL;//定义全局结构指针变量PLL
  546       =1 
  547       =1 
  548       =1 typedef struct _LPCS_GPIO {//通用I/O口
  549       =1   LPC_REG IOPIN;//GPIO管脚值寄存器
  550       =1   LPC_REG IOSET;//GPIO输出置位寄存器
  551       =1   LPC_REG IODIR;//GPIO方向寄存器
  552       =1   LPC_REG IOCLR;//GPIO输出清零寄存器
  553       =1 }LPCS_GPIO, *LPCPS_GPIO;
  554       =1 

⌨️ 快捷键说明

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