; generated by ARM C/C++ Compiler with , RVCT4.0 [Build 524] for uVision
; commandline ArmCC [--split_sections --debug -c --asm --interleave -o.\Out\stm32f10x_tim.o --depend=.\Out\stm32f10x_tim.d --device=DARMSTM --apcs=interwork -O0 -I..\inc -I..\..\..\Libraries\CMSIS\Core\CM3 -I..\..\..\Libraries\STM32_USB-FS-Device_Driver\inc -I..\..\..\Libraries\STM32F10x_StdPeriph_Driver\inc -I"D:\Program Files\KeilARM350\ARM\INC\ST\STM32F10x" ..\..\..\Libraries\STM32F10x_StdPeriph_Driver\src\stm32f10x_tim.c]
THUMB
AREA ||i.TI1_Config||, CODE, READONLY, ALIGN=1
TI1_Config PROC
;;;2696 */
;;;2697 static void TI1_Config(TIM_TypeDef* TIMx, uint16_t TIM_ICPolarity, uint16_t TIM_ICSelection,
000000 b5f0 PUSH {r4-r7,lr}
;;;2698 uint16_t TIM_ICFilter)
;;;2699 {
;;;2700 uint16_t tmpccmr1 = 0, tmpccer = 0;
000002 2400 MOVS r4,#0
000004 2500 MOVS r5,#0
;;;2701 /* Disable the Channel 1: Reset the CC1E Bit */
;;;2702 TIMx->CCER &= CCER_CC1E_Reset;
000006 8c06 LDRH r6,[r0,#0x20]
000008 f64f77fe MOV r7,#0xfffe
00000c 403e ANDS r6,r6,r7
00000e 8406 STRH r6,[r0,#0x20]
;;;2703 tmpccmr1 = TIMx->CCMR1;
000010 8b04 LDRH r4,[r0,#0x18]
;;;2704 tmpccer = TIMx->CCER;
000012 8c05 LDRH r5,[r0,#0x20]
;;;2705 /* Select the Input and set the filter */
;;;2706 tmpccmr1 &= CCMR_CC13S_Mask & CCMR_IC13F_Mask;
000014 f64f760c MOV r6,#0xff0c
000018 4034 ANDS r4,r4,r6
;;;2707 tmpccmr1 |= TIM_ICSelection | (uint16_t)(TIM_ICFilter << 4);
00001a 051e LSLS r6,r3,#20
00001c ea424616 ORR r6,r2,r6,LSR #16
000020 4334 ORRS r4,r4,r6
;;;2708 /* Select the Polarity and set the CC1E Bit */
;;;2709 tmpccer &= CCER_CC1P_Reset;
000022 1e7e SUBS r6,r7,#1
000024 4035 ANDS r5,r5,r6
;;;2710 tmpccer |= TIM_ICPolarity | CCER_CC1E_Set;
000026 f0410601 ORR r6,r1,#1
00002a 4335 ORRS r5,r5,r6
;;;2711 /* Write to TIMx CCMR1 and CCER registers */
;;;2712 TIMx->CCMR1 = tmpccmr1;
00002c 8304 STRH r4,[r0,#0x18]
;;;2713 TIMx->CCER = tmpccer;
00002e 8405 STRH r5,[r0,#0x20]
;;;2714 }
000030 bdf0 POP {r4-r7,pc}
;;;2715
ENDP
AREA ||i.TI2_Config||, CODE, READONLY, ALIGN=1
TI2_Config PROC
;;;2735 */
;;;2736 static void TI2_Config(TIM_TypeDef* TIMx, uint16_t TIM_ICPolarity, uint16_t TIM_ICSelection,
000000 b5f0 PUSH {r4-r7,lr}
;;;2737 uint16_t TIM_ICFilter)
;;;2738 {
;;;2739 uint16_t tmpccmr1 = 0, tmpccer = 0, tmp = 0;
000002 2400 MOVS r4,#0
000004 2500 MOVS r5,#0
000006 2600 MOVS r6,#0
;;;2740 /* Disable the Channel 2: Reset the CC2E Bit */
;;;2741 TIMx->CCER &= CCER_CC2E_Reset;
000008 8c07 LDRH r7,[r0,#0x20]
00000a f64f7cef MOV r12,#0xffef
00000e ea07070c AND r7,r7,r12
000012 8407 STRH r7,[r0,#0x20]
;;;2742 tmpccmr1 = TIMx->CCMR1;
000014 8b04 LDRH r4,[r0,#0x18]
;;;2743 tmpccer = TIMx->CCER;
000016 8c05 LDRH r5,[r0,#0x20]
;;;2744 tmp = (uint16_t)(TIM_ICPolarity << 4);
000018 050f LSLS r7,r1,#20
00001a 0c3e LSRS r6,r7,#16
;;;2745 /* Select the Input and set the filter */
;;;2746 tmpccmr1 &= CCMR_CC24S_Mask & CCMR_IC24F_Mask;
00001c f64047ff MOV r7,#0xcff
000020 403c ANDS r4,r4,r7
;;;2747 tmpccmr1 |= (uint16_t)(TIM_ICFilter << 12);
000022 071f LSLS r7,r3,#28
000024 ea444417 ORR r4,r4,r7,LSR #16
;;;2748 tmpccmr1 |= (uint16_t)(TIM_ICSelection << 8);
000028 0617 LSLS r7,r2,#24
00002a ea444417 ORR r4,r4,r7,LSR #16
;;;2749 /* Select the Polarity and set the CC2E Bit */
;;;2750 tmpccer &= CCER_CC2P_Reset;
00002e f64f77df MOV r7,#0xffdf
000032 403d ANDS r5,r5,r7
;;;2751 tmpccer |= tmp | CCER_CC2E_Set;
000034 f0460710 ORR r7,r6,#0x10
000038 433d ORRS r5,r5,r7
;;;2752 /* Write to TIMx CCMR1 and CCER registers */
;;;2753 TIMx->CCMR1 = tmpccmr1 ;
00003a 8304 STRH r4,[r0,#0x18]
;;;2754 TIMx->CCER = tmpccer;
00003c 8405 STRH r5,[r0,#0x20]
;;;2755 }
00003e bdf0 POP {r4-r7,pc}
;;;2756
ENDP
AREA ||i.TI3_Config||, CODE, READONLY, ALIGN=1
TI3_Config PROC
;;;2776 */
;;;2777 static void TI3_Config(TIM_TypeDef* TIMx, uint16_t TIM_ICPolarity, uint16_t TIM_ICSelection,
000000 b5f0 PUSH {r4-r7,lr}
;;;2778 uint16_t TIM_ICFilter)
;;;2779 {
;;;2780 uint16_t tmpccmr2 = 0, tmpccer = 0, tmp = 0;
000002 2400 MOVS r4,#0
000004 2500 MOVS r5,#0
000006 2600 MOVS r6,#0
;;;2781 /* Disable the Channel 3: Reset the CC3E Bit */
;;;2782 TIMx->CCER &= CCER_CC3E_Reset;
000008 8c07 LDRH r7,[r0,#0x20]
00000a f64f6cff MOV r12,#0xfeff
00000e ea07070c AND r7,r7,r12
000012 8407 STRH r7,[r0,#0x20]
;;;2783 tmpccmr2 = TIMx->CCMR2;
000014 8b84 LDRH r4,[r0,#0x1c]
;;;2784 tmpccer = TIMx->CCER;
000016 8c05 LDRH r5,[r0,#0x20]
;;;2785 tmp = (uint16_t)(TIM_ICPolarity << 8);
000018 060f LSLS r7,r1,#24
00001a 0c3e LSRS r6,r7,#16
;;;2786 /* Select the Input and set the filter */
;;;2787 tmpccmr2 &= CCMR_CC13S_Mask & CCMR_IC13F_Mask;
00001c f64f770c MOV r7,#0xff0c
000020 403c ANDS r4,r4,r7
;;;2788 tmpccmr2 |= TIM_ICSelection | (uint16_t)(TIM_ICFilter << 4);
000022 051f LSLS r7,r3,#20
000024 ea424717 ORR r7,r2,r7,LSR #16
000028 433c ORRS r4,r4,r7
;;;2789 /* Select the Polarity and set the CC3E Bit */
;;;2790 tmpccer &= CCER_CC3P_Reset;
00002a f64f57ff MOV r7,#0xfdff
00002e 403d ANDS r5,r5,r7
;;;2791 tmpccer |= tmp | CCER_CC3E_Set;
000030 f4467780 ORR r7,r6,#0x100
000034 433d ORRS r5,r5,r7
;;;2792 /* Write to TIMx CCMR2 and CCER registers */
;;;2793 TIMx->CCMR2 = tmpccmr2;
000036 8384 STRH r4,[r0,#0x1c]
;;;2794 TIMx->CCER = tmpccer;
000038 8405 STRH r5,[r0,#0x20]
;;;2795 }
00003a bdf0 POP {r4-r7,pc}
;;;2796
ENDP
AREA ||i.TI4_Config||, CODE, READONLY, ALIGN=1
TI4_Config PROC
;;;2816 */
;;;2817 static void TI4_Config(TIM_TypeDef* TIMx, uint16_t TIM_ICPolarity, uint16_t TIM_ICSelection,
000000 b5f0 PUSH {r4-r7,lr}
;;;2818 uint16_t TIM_ICFilter)
;;;2819 {
;;;2820 uint16_t tmpccmr2 = 0, tmpccer = 0, tmp = 0;
000002 2400 MOVS r4,#0
000004 2500 MOVS r5,#0
000006 2600 MOVS r6,#0
;;;2821 /* Disable the Channel 4: Reset the CC4E Bit */
;;;2822 TIMx->CCER &= CCER_CC4E_Reset;
000008 8c07 LDRH r7,[r0,#0x20]
00000a f64e7cff MOV r12,#0xefff
00000e ea07070c AND r7,r7,r12
000012 8407 STRH r7,[r0,#0x20]
没有合适的资源?快使用搜索试试~ 我知道了~
VirtualCOMPort.rar_STM32Virtualcomport_VirtualCOMPort_stm32 usb
共147个文件
h:42个
c:40个
i:20个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 99 浏览量
2022-07-13
19:37:35
上传
评论
收藏 568KB RAR 举报
温馨提示
STM32单片机实现USB转串口的源码程序,一个完整的项目文件
资源推荐
资源详情
资源评论
收起资源包目录
VirtualCOMPort.rar_STM32Virtualcomport_VirtualCOMPort_stm32 usb (147个子文件)
VirtualCOMPort.cspy.bat 2KB
stm32f10x_tim.c 100KB
stm32f10x_adc.c 46KB
stm32f10x_i2c.c 36KB
stm32f10x_usart.c 34KB
stm32f10x_fsmc.c 34KB
stm32f10x_rcc.c 33KB
usb_core.c 30KB
stm32f10x_can.c 30KB
usb_regs.c 29KB
stm32f10x_sdio.c 28KB
stm32f10x_spi.c 27KB
stm32f10x_dma.c 27KB
stm32f10x_flash.c 26KB
system_stm32f10x.c 24KB
hw_config.c 19KB
stm32f10x_gpio.c 17KB
startup_stm32f10x_hd.c 16KB
core_cm3.c 16KB
usb_prop.c 14KB
stm32f10x_dac.c 13KB
startup_stm32f10x_md.c 13KB
startup_stm32f10x_ld.c 12KB
stm32f10x_pwr.c 9KB
stm32f10x_it.c 8KB
stm32f10x_rtc.c 8KB
stm32f10x_bkp.c 8KB
usb_pwr.c 7KB
usb_desc.c 7KB
misc.c 7KB
stm32f10x_exti.c 7KB
usb_int.c 6KB
stm32f10x_wwdg.c 5KB
usb_istr.c 5KB
stm32f10x_iwdg.c 5KB
stm32f10x_dbgmcu.c 4KB
usb_endp.c 4KB
usb_mem.c 3KB
stm32f10x_crc.c 3KB
main.c 3KB
usb_init.c 3KB
VirtualCOMPort.dbgdt 8KB
VirtualCOMPort_FLASH.dep 8KB
VirtualCOMPort.dni 1KB
VirtualCOMPort.ewd 19KB
VirtualCOMPort.ewp 24KB
VirtualCOMPort.eww 168B
stm32f10x.h 518KB
stm32f10x_tim.h 48KB
core_cm3.h 41KB
usb_regs.h 28KB
stm32f10x_adc.h 19KB
stm32f10x_dma.h 18KB
stm32f10x_sdio.h 18KB
stm32f10x_fsmc.h 17KB
stm32f10x_i2c.h 17KB
stm32f10x_rcc.h 16KB
stm32f10x_gpio.h 15KB
stm32f10x_spi.h 15KB
stm32f10x_usart.h 14KB
stm32f10x_flash.h 14KB
stm32f10x_can.h 14KB
stm32f10x_dac.h 10KB
usb_core.h 9KB
stm32f10x_bkp.h 7KB
stm32f10x_exti.h 6KB
misc.h 5KB
stm32f10x_pwr.h 4KB
stm32f10x_iwdg.h 4KB
stm32f10x_rtc.h 4KB
usb_prop.h 3KB
stm32f10x_conf.h 3KB
usb_conf.h 3KB
stm32f10x_dbgmcu.h 3KB
hw_config.h 3KB
usb_desc.h 3KB
usb_type.h 3KB
usb_def.h 3KB
stm32f10x_wwdg.h 3KB
usb_istr.h 3KB
usb_init.h 3KB
usb_pwr.h 2KB
system_stm32f10x.h 2KB
stm32f10x_crc.h 2KB
stm32f10x_it.h 2KB
usb_mem.h 2KB
usb_lib.h 2KB
usb_int.h 2KB
platform_config.h 2KB
VirtualCOMPort.hex 28KB
stm32f10x_tim.i 108KB
hw_config.i 98KB
stm32f10x_rcc.i 86KB
main.i 86KB
stm32f10x_usart.i 83KB
usb_core.i 82KB
stm32f10x_it.i 82KB
stm32f10x_gpio.i 80KB
usb_regs.i 77KB
misc.i 74KB
共 147 条
- 1
- 2
资源评论
Kinonoyomeo
- 粉丝: 74
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功