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

📄 functions.ls

📁 STM8-触摸例程
💻 LS
字号:
   1                     ; C Compiler for STM8 (COSMIC Software)
   2                     ; Generator V4.2.8 - 03 Dec 2008
   3                     ; Optimizer V4.2.8 - 03 Dec 2008
  34                     ; 32 void Init_GPIO(void)
  34                     ; 33 {
  36                     	switch	.text
  37  0000               _Init_GPIO:
  41                     ; 35     GPIO_Init(GPIOC, GPIO_PIN_6 | GPIO_PIN_5, GPIO_MODE_OUT_PP_LOW_FAST);		
  43  0000 4bc0          	push	#192
  44  0002 4b60          	push	#96
  45  0004 ae500a        	ldw	x,#20490
  46  0007 cd0000        	call	_GPIO_Init
  48  000a 85            	popw	x
  49                     ; 36     GPIO_Init(GPIOE, GPIO_PIN_5 | GPIO_PIN_6 , GPIO_MODE_OUT_PP_LOW_FAST);
  51  000b 4bc0          	push	#192
  52  000d 4b60          	push	#96
  53  000f ae5014        	ldw	x,#20500
  54  0012 cd0000        	call	_GPIO_Init
  56  0015 85            	popw	x
  57                     ; 39 		GPIO_Init(GPIOE, GPIO_PIN_0 | GPIO_PIN_1|GPIO_PIN_2 | GPIO_PIN_3|GPIO_PIN_4,GPIO_MODE_OUT_PP_LOW_FAST);
  59  0016 4bc0          	push	#192
  60  0018 4b1f          	push	#31
  61  001a ae5014        	ldw	x,#20500
  62  001d cd0000        	call	_GPIO_Init
  64  0020 85            	popw	x
  65                     ; 40 		GPIO_Init(GPIOG, GPIO_PIN_4 | GPIO_PIN_5|GPIO_PIN_6 | GPIO_PIN_7|GPIO_PIN_3,GPIO_MODE_OUT_PP_LOW_FAST);
  67  0021 4bc0          	push	#192
  68  0023 4bf8          	push	#248
  69  0025 ae501e        	ldw	x,#20510
  70  0028 cd0000        	call	_GPIO_Init
  72  002b 85            	popw	x
  73                     ; 43     GPIO_Init(GPIOF, GPIO_PIN_0, GPIO_MODE_OUT_PP_LOW_FAST);
  75  002c 4bc0          	push	#192
  76  002e 4b01          	push	#1
  77  0030 ae5019        	ldw	x,#20505
  78  0033 cd0000        	call	_GPIO_Init
  80  0036 85            	popw	x
  81                     ; 46     GPIO_Init(GPIOG, GPIO_PIN_2, GPIO_MODE_IN_FL_NO_IT);
  83  0037 4b00          	push	#0
  84  0039 4b04          	push	#4
  85  003b ae501e        	ldw	x,#20510
  86  003e cd0000        	call	_GPIO_Init
  88  0041 85            	popw	x
  89                     ; 47 }
  92  0042 81            	ret	
 116                     ; 49 void Init_Clock(void)
 116                     ; 50 {
 117                     	switch	.text
 118  0043               _Init_Clock:
 122                     ; 53     CLK_SYSCLKConfig(CLK_PRESCALER_HSIDIV1);//CLK_PRESCALER_CPUDIV1
 124  0043 4f            	clr	a
 126                     ; 58 }
 129  0044 cc0000        	jp	_CLK_SYSCLKConfig
 142                     	xdef	_Init_Clock
 143                     	xdef	_Init_GPIO
 144                     	xref	_GPIO_Init
 145                     	xref	_CLK_SYSCLKConfig
 164                     	end

⌨️ 快捷键说明

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