ARM GAS  /tmp/ccmWDDxb.s 			page 1


   1              		.cpu cortex-m0
   2              		.arch armv6s-m
   3              		.fpu softvfp
   4              		.eabi_attribute 23, 1
   5              		.eabi_attribute 24, 1
   6              		.eabi_attribute 25, 1
   7              		.eabi_attribute 26, 1
   8              		.eabi_attribute 30, 2
   9              		.eabi_attribute 34, 0
  10              		.eabi_attribute 18, 4
  11              		.file	"adc.c"
  12              		.text
  13              	.Ltext0:
  14              		.cfi_sections	.debug_frame
  15              		.file 1 "Hardware/adc.c"
  16              		.section	.text.adc_init,"ax",%progbits
  17              		.align	1
  18              		.p2align 2,,3
  19              		.global	adc_init
  20              		.syntax unified
  21              		.code	16
  22              		.thumb_func
  24              	adc_init:
  25              	.LFB45:
   1:Hardware/adc.c **** #include "adc.h"
   2:Hardware/adc.c **** #include "lcm32f06x_conf.h"
   3:Hardware/adc.c **** #include "string.h"
   4:Hardware/adc.c **** #include "global.h"
   5:Hardware/adc.c **** 
   6:Hardware/adc.c **** void adc_init(void)
   7:Hardware/adc.c **** {
  26              		.loc 1 7 1 view -0
  27              		.cfi_startproc
  28              		@ args = 0, pretend = 0, frame = 64
  29              		@ frame_needed = 0, uses_anonymous_args = 0
   8:Hardware/adc.c ****     // Enable ADC clock
   9:Hardware/adc.c ****     RCC_APB0PeriphClockCmd(RCC_APB0Periph_ADC, ENABLE);
  30              		.loc 1 9 5 view .LVU1
  31 0000 8020     		movs	r0, #128
   7:Hardware/adc.c ****     // Enable ADC clock
  32              		.loc 1 7 1 is_stmt 0 view .LVU2
  33 0002 70B5     		push	{r4, r5, r6, lr}
  34              	.LCFI0:
  35              		.cfi_def_cfa_offset 16
  36              		.cfi_offset 4, -16
  37              		.cfi_offset 5, -12
  38              		.cfi_offset 6, -8
  39              		.cfi_offset 14, -4
  40              		.loc 1 9 5 view .LVU3
  41 0004 0121     		movs	r1, #1
   7:Hardware/adc.c ****     // Enable ADC clock
  42              		.loc 1 7 1 view .LVU4
  43 0006 92B0     		sub	sp, sp, #72
  44              	.LCFI1:
  45              		.cfi_def_cfa_offset 88
  46              		.loc 1 9 5 view .LVU5
  47 0008 8000     		lsls	r0, r0, #2
ARM GAS  /tmp/ccmWDDxb.s 			page 2


  48 000a FFF7FEFF 		bl	RCC_APB0PeriphClockCmd
  49              	.LVL0:
  10:Hardware/adc.c ****     RCC_AHBPeriphClockCmd(RCC_AHBPeriph_GPIOA | RCC_AHBPeriph_GPIOB, ENABLE);
  50              		.loc 1 10 5 is_stmt 1 view .LVU6
  51 000e 0121     		movs	r1, #1
  52 0010 0320     		movs	r0, #3
  53 0012 FFF7FEFF 		bl	RCC_AHBPeriphClockCmd
  54              	.LVL1:
  11:Hardware/adc.c ****     //  io init [PAB0:HALL ADC channel 4 | PA9:HALL Adc channel 14] [PA7:voltage ADC channel 7] [PA
  12:Hardware/adc.c ****     GPIO_InitTypeDef GPIO_InitStructure;
  55              		.loc 1 12 5 view .LVU7
  13:Hardware/adc.c ****     memset(&GPIO_InitStructure, 0, sizeof(GPIO_InitTypeDef));
  56              		.loc 1 13 5 view .LVU8
  14:Hardware/adc.c ****     GPIO_InitStructure.GPIO_Pin = GPIO_Pin_7 | GPIO_Pin_9 | GPIO_Pin_10; // PA4 PA5 PA9 PA10
  57              		.loc 1 14 33 is_stmt 0 view .LVU9
  58 0016 D023     		movs	r3, #208
  15:Hardware/adc.c ****     GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AN;
  16:Hardware/adc.c ****     GPIO_Init(GPIOA, &GPIO_InitStructure);
  59              		.loc 1 16 5 view .LVU10
  60 0018 9020     		movs	r0, #144
  14:Hardware/adc.c ****     GPIO_InitStructure.GPIO_Pin = GPIO_Pin_7 | GPIO_Pin_9 | GPIO_Pin_10; // PA4 PA5 PA9 PA10
  61              		.loc 1 14 33 view .LVU11
  62 001a DB00     		lsls	r3, r3, #3
  13:Hardware/adc.c ****     GPIO_InitStructure.GPIO_Pin = GPIO_Pin_7 | GPIO_Pin_9 | GPIO_Pin_10; // PA4 PA5 PA9 PA10
  63              		.loc 1 13 5 view .LVU12
  64 001c 0025     		movs	r5, #0
  15:Hardware/adc.c ****     GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AN;
  65              		.loc 1 15 34 view .LVU13
  66 001e 0324     		movs	r4, #3
  14:Hardware/adc.c ****     GPIO_InitStructure.GPIO_Pin = GPIO_Pin_7 | GPIO_Pin_9 | GPIO_Pin_10; // PA4 PA5 PA9 PA10
  67              		.loc 1 14 33 view .LVU14
  68 0020 0393     		str	r3, [sp, #12]
  15:Hardware/adc.c ****     GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AN;
  69              		.loc 1 15 34 view .LVU15
  70 0022 6B46     		mov	r3, sp
  71              		.loc 1 16 5 view .LVU16
  72 0024 03A9     		add	r1, sp, #12
  73 0026 C005     		lsls	r0, r0, #23
  17:Hardware/adc.c **** 
  18:Hardware/adc.c ****     GPIO_InitStructure.GPIO_Pin = GPIO_Pin_0; // PB0
  74              		.loc 1 18 33 view .LVU17
  75 0028 0126     		movs	r6, #1
  13:Hardware/adc.c ****     GPIO_InitStructure.GPIO_Pin = GPIO_Pin_7 | GPIO_Pin_9 | GPIO_Pin_10; // PA4 PA5 PA9 PA10
  76              		.loc 1 13 5 view .LVU18
  77 002a 0495     		str	r5, [sp, #16]
  14:Hardware/adc.c ****     GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AN;
  78              		.loc 1 14 5 is_stmt 1 view .LVU19
  15:Hardware/adc.c ****     GPIO_Init(GPIOA, &GPIO_InitStructure);
  79              		.loc 1 15 5 view .LVU20
  15:Hardware/adc.c ****     GPIO_Init(GPIOA, &GPIO_InitStructure);
  80              		.loc 1 15 34 is_stmt 0 view .LVU21
  81 002c 1C74     		strb	r4, [r3, #16]
  16:Hardware/adc.c **** 
  82              		.loc 1 16 5 is_stmt 1 view .LVU22
  83 002e FFF7FEFF 		bl	GPIO_Init
  84              	.LVL2:
  85              		.loc 1 18 5 view .LVU23
ARM GAS  /tmp/ccmWDDxb.s 			page 3


  19:Hardware/adc.c ****     GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AN;
  86              		.loc 1 19 34 is_stmt 0 view .LVU24
  87 0032 6B46     		mov	r3, sp
  20:Hardware/adc.c ****     GPIO_Init(GPIOB, &GPIO_InitStructure);
  88              		.loc 1 20 5 view .LVU25
  89 0034 03A9     		add	r1, sp, #12
  90 0036 6348     		ldr	r0, .L3
  19:Hardware/adc.c ****     GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AN;
  91              		.loc 1 19 34 view .LVU26
  92 0038 1C74     		strb	r4, [r3, #16]
  18:Hardware/adc.c ****     GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AN;
  93              		.loc 1 18 33 view .LVU27
  94 003a 0396     		str	r6, [sp, #12]
  19:Hardware/adc.c ****     GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AN;
  95              		.loc 1 19 5 is_stmt 1 view .LVU28
  96              		.loc 1 20 5 view .LVU29
  97 003c FFF7FEFF 		bl	GPIO_Init
  98              	.LVL3:
  21:Hardware/adc.c **** 
  22:Hardware/adc.c ****     GPIO_PinAFConfig(GPIOB, GPIO_PinSource0, GPIO_AF_1);  // PA4 ADC channel 4
  99              		.loc 1 22 5 view .LVU30
 100 0040 0122     		movs	r2, #1
 101 0042 0021     		movs	r1, #0
 102 0044 5F48     		ldr	r0, .L3
 103 0046 FFF7FEFF 		bl	GPIO_PinAFConfig
 104              	.LVL4:
  23:Hardware/adc.c ****     GPIO_PinAFConfig(GPIOA, GPIO_PinSource7, GPIO_AF_1);  // PA7 ADC channel 7
 105              		.loc 1 23 5 view .LVU31
 106 004a 9020     		movs	r0, #144
 107 004c 0122     		movs	r2, #1
 108 004e 0721     		movs	r1, #7
 109 0050 C005     		lsls	r0, r0, #23
 110 0052 FFF7FEFF 		bl	GPIO_PinAFConfig
 111              	.LVL5:
  24:Hardware/adc.c ****     GPIO_PinAFConfig(GPIOA, GPIO_PinSource9, GPIO_AF_2);  // PA9 ADC channel 14
 112              		.loc 1 24 5 view .LVU32
 113 0056 9020     		movs	r0, #144
 114 0058 0222     		movs	r2, #2
 115 005a 0921     		movs	r1, #9
 116 005c C005     		lsls	r0, r0, #23
 117 005e FFF7FEFF 		bl	GPIO_PinAFConfig
 118              	.LVL6:
  25:Hardware/adc.c ****     GPIO_PinAFConfig(GPIOA, GPIO_PinSource10, GPIO_AF_1); // PA10 ADC channel 15
 119              		.loc 1 25 5 view .LVU33
 120 0062 9020     		movs	r0, #144
 121 0064 0122     		movs	r2, #1
 122 0066 0A21     		movs	r1, #10
 123 0068 C005     		lsls	r0, r0, #23
 124 006a FFF7FEFF 		bl	GPIO_PinAFConfig
 125              	.LVL7:
  26:Hardware/adc.c **** 
  27:Hardware/adc.c ****     ADC_DeInit(ADC);
 126              		.loc 1 27 5 view .LVU34
 127 006e 5648     		ldr	r0, .L3+4
 128 0070 FFF7FEFF 		bl	ADC_DeInit
 129              	.LVL8:
  28:Hardware/adc.c **** 
ARM GAS  /tmp/ccmWDDxb.s 			page 4


  29:Hardware/adc.c ****     ADC_InitTypeDef ADC_InitStructure;
 130              		.loc 1 29 5 view .LVU35
  30:Hardware/adc.c ****     ADC_StructInit(&ADC_InitStructure);
 131              		.loc 1 30 5 view .LVU36
 132 0074 05A8     		add	r0, sp, #20
 133 0076 FFF7FEFF 		bl	ADC_StructInit
 134              	.LVL9:
  31:Hardware/adc.c ****     ADC_InitStructure.ADC_WorkMode = ADC_WorkMode_Stable;              // ADC工作模式，正常�
 135              		.loc 1 31 5 view .LVU37
 136              		.loc 1 31 36 is_stmt 0 view .LVU38
 137 007a 8023     		movs	r3, #128
 138 007c 1B03     		lsls	r3, r3, #12
 139 007e 0993     		str	r3, [sp, #36]
  32:Hardware/adc.c ****     ADC_InitStructure.ADC_ClkMode = ADC_ClockMode_SynClkDiv2;          // 测主频
 140              		.loc 1 32 5 is_stmt 1 view .LVU39
 141              		.loc 1 32 35 is_stmt 0 view .LVU40
 142 0080 8023     		movs	r3, #128
 143 0082 1B05     		lsls	r3, r3, #20
 144 0084 0593     		str	r3, [sp, #20]
  33:Hardware/adc.c ****     ADC_InitStructure.ADC_ReferenceVoltage = ADC_ReferenceVoltage_4V9; // 参考电压
 145              		.loc 1 33 5 is_stmt 1 view .LVU41
 146              		.loc 1 33 44 is_stmt 0 view .LVU42
 147 0086 8023     		movs	r3, #128
 148 0088 9B02     		lsls	r3, r3, #10
 149 008a 0693     		str	r3, [sp, #24]
  34:Hardware/adc.c ****     ADC_InitStructure.ADC_TempChanelMapping = ADC_TempChanel_SOC7;     //
 150              		.loc 1 34 5 is_stmt 1 view .LVU43
 151              		.loc 1 34 45 is_stmt 0 view .LVU44
 152 008c C023     		movs	r3, #192
 153 008e 9B01     		lsls	r3, r3, #6
 154 0090 0893     		str	r3, [sp, #32]
  35:Hardware/adc.c ****     ADC_InitStructure.ADC_VCCChanelMapping = ADC_VCCChanel_SOC15;      //
 155              		.loc 1 35 5 is_stmt 1 view .LVU45
 156              		.loc 1 35 44 is_stmt 0 view .LVU46
 157 0092 8023     		movs	r3, #128
  36:Hardware/adc.c ****     ADC_Init(ADC, &ADC_InitStructure);
 158              		.loc 1 36 5 view .LVU47
 159 0094 05A9     		add	r1, sp, #20
  35:Hardware/adc.c ****     ADC_InitStructure.ADC_VCCChanelMapping = ADC_VCCChanel_SOC15;      //
 160              		.loc 1 35 44 view .LVU48
 161 0096 DB01     		lsls	r3, r3, #7
 162              		.loc 1 36 5 view .LVU49
 163 0098 4B48     		ldr	r0, .L3+4
  37:Hardware/adc.c **** 
  38:Hardware/adc.c ****     ADC_ForExternVref_Cmd(ADC);
  39:Hardware/adc.c **** 
  40:Hardware/adc.c ****     // ia ib
  41:Hardware/adc.c ****     ADC_SOC_Config(ADC, SOC0, TriggerSelect0, ADCIN_11_B, SOC_SAMP_DOUBLE);
 164              		.loc 1 41 5 view .LVU50
 165 009a FD34     		adds	r4, r4, #253
  35:Hardware/adc.c ****     ADC_Init(ADC, &ADC_InitStructure);
 166              		.loc 1 35 44 view .LVU51
 167 009c 0793     		str	r3, [sp, #28]
  36:Hardware/adc.c ****     ADC_Init(ADC, &ADC_InitStructure);
 168              		.loc 1 36 5 is_stmt 1 view .LVU52
 169 009e FFF7FEFF 		bl	ADC_Init
 170              	.LVL10:
ARM GAS  /tmp/ccmWDDxb.s 			page 5


  38:Hardware/adc.c **** 
 171              		.loc 1 38 5 view .LVU53
 172 00a2 4948     		ldr	r0, .L3+4
 173 00a4 FFF7FEFF 		bl	ADC_ForExternVref_Cmd
 174              	.LVL11:
 175              		.loc 1 41 5 view .LVU54
 176 00a8 0B23     		movs	r3, #11
 177 00aa 0022     		movs	r2, #0
 178 00ac 0021     		movs	r1, #0
 179 00ae 4648     		ldr	r0, .L3+4
 180 00b0 0094     		str	r4, [sp]
 181 00b2 FFF7FEFF 		bl	ADC_SOC_Config
 182              	.LVL12:
  42:Hardware/adc.c ****     ADC_SOC_Config(ADC, SOC1, TriggerSelect0, ADCIN_2_A, SOC_SAMP_DOUBLE);
 183              		.loc 1 42 5 view .LVU55
 184 00b6 0223     		movs	r3, #2
 185 00b8 0022     		movs	r2, #0
 186 00ba 0121     		movs	r1, #1
 187 00bc 4248     		ldr	r0, .L3+4
 188 00be 0094     		str	r4, [sp]
 189 00c0 FFF7FEFF 		bl	ADC_SOC_Config
 190              	.LVL13:
  43:Hardware/adc.c **** 
  44:Hardware/adc.c ****     // hall
  45:Hardware/adc.c ****     ADC_SOC_Config(ADC, SOC2, TriggerSelect0, ADCIN_14_B, SOC_SAMP_DOUBLE);
 191              		.loc 1 45 5 view .LVU56
 192 00c4 0E23     		movs	r3, #14
 193 00c6 0022     		movs	r2, #0
 194 00c8 0221     		movs	r1, #2
 195 00ca 3F48     		ldr	r0, .L3+4
 196 00cc 0094     		str	r4, [sp]
 197 00ce FFF7FEFF 		bl	ADC_SOC_Config
 198              	.LVL14:
  46:Hardware/adc.c ****     ADC_SOC_Config(ADC, SOC3, TriggerSelect0, ADCIN_4_A, SOC_SAMP_DOUBLE);
 199              		.loc 1 46 5 view .LVU57
 200 00d2 0423     		movs	r3, #4
 201 00d4 0022     		movs	r2, #0
 202 00d6 0321     		movs	r1, #3
 203 00d8 3B48     		ldr	r0, .L3+4
 204 00da 0094     		str	r4, [sp]
 205 00dc FFF7FEFF 		bl	ADC_SOC_Config
 206              	.LVL15:
  47:Hardware/adc.c **** 
  48:Hardware/adc.c ****     ADC_SOC_Config(ADC, SOC4, TriggerSelect0, ADCIN_14_B, SOC_SAMP_DOUBLE);
 207              		.loc 1 48 5 view .LVU58
 208 00e0 0E23     		movs	r3, #14
 209 00e2 0022     		movs	r2, #0
 210 00e4 0421     		movs	r1, #4
 211 00e6 3848     		ldr	r0, .L3+4
 212 00e8 0094     		str	r4, [sp]
 213 00ea FFF7FEFF 		bl	ADC_SOC_Config
 214              	.LVL16:
  49:Hardware/adc.c ****     ADC_SOC_Config(ADC, SOC5, TriggerSelect0, ADCIN_4_A, SOC_SAMP_DOUBLE);
 215              		.loc 1 49 5 view .LVU59
 216 00ee 0423     		movs	r3, #4
 217 00f0 0022     		movs	r2, #0
 218 00f2 0521     		movs	r1, #5
ARM GAS  /tmp/ccmWDDxb.s 			page 6


 219 00f4 3448     		ldr	r0, .L3+4
 220 00f6 0094     		str	r4, [sp]
 221 00f8 FFF7FEFF 		bl	ADC_SOC_Config
 222              	.LVL17:
  50:Hardware/adc.c **** 
  51:Hardware/adc.c ****     ADC_SOC_Config(ADC, SOC8, TriggerSelect0, ADCIN_14_B, SOC_SAMP_DOUBLE);
 223              		.loc 1 51 5 view .LVU60
 224 00fc 0E23     		movs	r3, #14
 225 00fe 0022     		movs	r2, #0
 226 0100 0821     		movs	r1, #8
 227 0102 3148     		ldr	r0, .L3+4
 228 0104 0094     		str	r4, [sp]
 229 0106 FFF7FEFF 		bl	ADC_SOC_Config
 230              	.LVL18:
  52:Hardware/adc.c ****     ADC_SOC_Config(ADC, SOC9, TriggerSelect0, ADCIN_4_A, SOC_SAMP_DOUBLE);
 231              		.loc 1 52 5 view .LVU61
 232 010a 0423     		movs	r3, #4
 233 010c 0022     		movs	r2, #0
 234 010e 0921     		movs	r1, #9
 235 0110 2D48     		ldr	r0, .L3+4
 236 0112 0094     		str	r4, [sp]
 237 0114 FFF7FEFF 		bl	ADC_SOC_Config
 238              	.LVL19:
  53:Hardware/adc.c **** 
  54:Hardware/adc.c ****     ADC_SOC_Config(ADC, SOC10, TriggerSelect0, ADCIN_14_B, SOC_SAMP_DOUBLE);
 239              		.loc 1 54 5 view .LVU62
 240 0118 0E23     		movs	r3, #14
 241 011a 0022     		movs	r2, #0
 242 011c 0A21     		movs	r1, #10
 243 011e 2A48     		ldr	r0, .L3+4
 244 0120 0094     		str	r4, [sp]
 245 0122 FFF7FEFF 		bl	ADC_SOC_Config
 246              	.LVL20:
  55:Hardware/adc.c ****     ADC_SOC_Config(ADC, SOC11, TriggerSelect0, ADCIN_4_A, SOC_SAMP_DOUBLE);
 247              		.loc 1 55 5 view .LVU63
 248 0126 0423     		movs	r3, #4
 249 0128 0022     		movs	r2, #0
 250 012a 0B21     		movs	r1, #11
 251 012c 2648     		ldr	r0, .L3+4
 252 012e 0094     		str	r4, [sp]
 253 0130 FFF7FEFF 		bl	ADC_SOC_Config
 254              	.LVL21:
  56:Hardware/adc.c **** 
  57:Hardware/adc.c ****     ADC_SOC_Config(ADC, SOC12, TriggerSelect0, ADCIN_14_B, SOC_SAMP_DOUBLE);
 255              		.loc 1 57 5 view .LVU64
 256 0134 0E23     		movs	r3, #14
 257 0136 0022     		movs	r2, #0
 258 0138 0C21     		movs	r1, #12
 259 013a 2348     		ldr	r0, .L3+4
 260 013c 0094     		str	r4, [sp]
 261 013e FFF7FEFF 		bl	ADC_SOC_Config
 262              	.LVL22:
  58:Hardware/adc.c ****     ADC_SOC_Config(ADC, SOC13, TriggerSelect0, ADCIN_4_A, SOC_SAMP_DOUBLE);
 263              		.loc 1 58 5 view .LVU65
 264 0142 0423     		movs	r3, #4
 265 0144 0022     		movs	r2, #0
 266 0146 0D21     		movs	r1, #13
ARM GAS  /tmp/ccmWDDxb.s 			page 7


 267 0148 1F48     		ldr	r0, .L3+4
 268 014a 0094     		str	r4, [sp]
 269 014c FFF7FEFF 		bl	ADC_SOC_Config
 270              	.LVL23:
  59:Hardware/adc.c **** 
  60:Hardware/adc.c ****     // Temp
  61:Hardware/adc.c ****     ADC_SOC_Config(ADC, SOC6, TriggerSelect0, ADCIN_15_B, SOC_SAMP_SINGLE);
 271              		.loc 1 61 5 view .LVU66
 272 0150 0F23     		movs	r3, #15
 273 0152 0022     		movs	r2, #0
 274 0154 0621     		movs	r1, #6
 275 0156 1C48     		ldr	r0, .L3+4
 276 0158 0095     		str	r5, [sp]
 277 015a FFF7FEFF 		bl	ADC_SOC_Config
 278              	.LVL24:
  62:Hardware/adc.c ****     ADC_SOC_Config(ADC, SOC7, TriggerSelect0, ADCIN_ST, SOC_SAMP_SINGLE);
 279              		.loc 1 62 5 view .LVU67
 280 015e 0023     		movs	r3, #0
 281 0160 0022     		movs	r2, #0
 282 0162 0721     		movs	r1, #7
 283 0164 1848     		ldr	r0, .L3+4
 284 0166 0095     		str	r5, [sp]
 285 0168 FFF7FEFF 		bl	ADC_SOC_Config
 286              	.LVL25:
  63:Hardware/adc.c **** 
  64:Hardware/adc.c ****     // Voltage
  65:Hardware/adc.c ****     ADC_SOC_Config(ADC, SOC14, TriggerSelect0, ADCIN_7_A, SOC_SAMP_SINGLE);
 287              		.loc 1 65 5 view .LVU68
 288 016c 0723     		movs	r3, #7
 289 016e 0022     		movs	r2, #0
 290 0170 0E21     		movs	r1, #14
 291 0172 1548     		ldr	r0, .L3+4
 292 0174 0095     		str	r5, [sp]
 293 0176 FFF7FEFF 		bl	ADC_SOC_Config
 294              	.LVL26:
  66:Hardware/adc.c ****     ADC_SOC_Config(ADC, SOC15, TriggerSelect0, ADCIN_SV, SOC_SAMP_SINGLE);
 295              		.loc 1 66 5 view .LVU69
 296 017a 0023     		movs	r3, #0
 297 017c 0022     		movs	r2, #0
 298 017e 0F21     		movs	r1, #15
 299 0180 1148     		ldr	r0, .L3+4
 300 0182 0095     		str	r5, [sp]
 301 0184 FFF7FEFF 		bl	ADC_SOC_Config
 302              	.LVL27:
  67:Hardware/adc.c **** 
  68:Hardware/adc.c ****     TrigSelect_Config(ADC, TriggerSelect0, TriggerSelect0_TIM1_TRIG_OC4, Triggermode_falling);
 303              		.loc 1 68 5 view .LVU70
 304 0188 0123     		movs	r3, #1
 305 018a 4022     		movs	r2, #64
 306 018c 0021     		movs	r1, #0
 307 018e 0E48     		ldr	r0, .L3+4
 308 0190 FFF7FEFF 		bl	TrigSelect_Config
 309              	.LVL28:
  69:Hardware/adc.c **** 
  70:Hardware/adc.c ****     ADC_SOC_ITConfig(ADC, ADC_IT_EOC13, ENABLE);
 310              		.loc 1 70 5 view .LVU71
 311 0194 8021     		movs	r1, #128
ARM GAS  /tmp/ccmWDDxb.s 			page 8


 312 0196 0122     		movs	r2, #1
 313 0198 8901     		lsls	r1, r1, #6
 314 019a 0B48     		ldr	r0, .L3+4
 315 019c FFF7FEFF 		bl	ADC_SOC_ITConfig
 316              	.LVL29:
  71:Hardware/adc.c **** 
  72:Hardware/adc.c ****     // ADC_AnalogWatchdogSingleChannelConfig(ADC, AWD0, ADC_AWD_Channel_14, ENABLE);
  73:Hardware/adc.c ****     // ADC_AnalogWatchdogSingleChannelConfig(ADC, AWD1, ADC_AWD_Channel_0, ENABLE);
  74:Hardware/adc.c ****     // ADC_AnalogWatchdogSingleChannelConfig(ADC, AWD1, ADC_AWD_Channel_1, ENABLE);
  75:Hardware/adc.c **** 
  76:Hardware/adc.c ****     // ADC_AnalogWatchdogThresholdsConfg(ADC, AWD0, 1340, 268);                // 1340 268
  77:Hardware/adc.c ****     // ADC_AnalogWatchdogThresholdsConfg(ADC, AWD1, 2048 + 1475, 2048 - 1475); // 2048 + 1475 2048 
  78:Hardware/adc.c **** 
  79:Hardware/adc.c ****     // ADC_ITConfig(ADC, ADC_IT_AWD0, ENABLE);
  80:Hardware/adc.c ****     // ADC_ITConfig(ADC, ADC_IT_AWD1, ENABLE);
  81:Hardware/adc.c **** 
  82:Hardware/adc.c ****     NVIC_InitTypeDef NVIC_InitStructure;
 317              		.loc 1 82 5 view .LVU72
  83:Hardware/adc.c ****     NVIC_InitStructure.NVIC_IRQChannel = ADC_IRQn;
 318              		.loc 1 83 5 view .LVU73
  84:Hardware/adc.c ****     NVIC_InitStructure.NVIC_IRQChannelPriority = 2;
 319              		.loc 1 84 5 view .LVU74
  83:Hardware/adc.c ****     NVIC_InitStructure.NVIC_IRQChannel = ADC_IRQn;
 320              		.loc 1 83 40 is_stmt 0 view .LVU75
 321 01a0 8323     		movs	r3, #131
 322 01a2 6A46     		mov	r2, sp
 323 01a4 9B00     		lsls	r3, r3, #2
  85:Hardware/adc.c ****     NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
  86:Hardware/adc.c ****     NVIC_Init(&NVIC_InitStructure);
 324              		.loc 1 86 5 view .LVU76
 325 01a6 02A8     		add	r0, sp, #8
  83:Hardware/adc.c ****     NVIC_InitStructure.NVIC_IRQChannelPriority = 2;
 326              		.loc 1 83 40 view .LVU77
 327 01a8 1381     		strh	r3, [r2, #8]
  85:Hardware/adc.c ****     NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
 328              		.loc 1 85 5 is_stmt 1 view .LVU78
  85:Hardware/adc.c ****     NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
 329              		.loc 1 85 43 is_stmt 0 view .LVU79
 330 01aa 9672     		strb	r6, [r2, #10]
 331              		.loc 1 86 5 is_stmt 1 view .LVU80
 332 01ac FFF7FEFF 		bl	NVIC_Init
 333              	.LVL30:
  87:Hardware/adc.c **** 
  88:Hardware/adc.c ****     ADC_Cmd(ADC, ENABLE);
 334              		.loc 1 88 5 view .LVU81
 335 01b0 0121     		movs	r1, #1
 336 01b2 0548     		ldr	r0, .L3+4
 337 01b4 FFF7FEFF 		bl	ADC_Cmd
 338              	.LVL31:
  89:Hardware/adc.c **** 
  90:Hardware/adc.c ****     ADC_StartOfConversion(ADC);
 339              		.loc 1 90 5 view .LVU82
 340 01b8 0348     		ldr	r0, .L3+4
 341 01ba FFF7FEFF 		bl	ADC_StartOfConversion
 342              	.LVL32:
  91:Hardware/adc.c **** }
 343              		.loc 1 91 1 is_stmt 0 view .LVU83
ARM GAS  /tmp/ccmWDDxb.s 			page 9


 344 01be 12B0     		add	sp, sp, #72
 345              		@ sp needed
 346 01c0 70BD     		pop	{r4, r5, r6, pc}
 347              	.L4:
 348 01c2 C046     		.align	2
 349              	.L3:
 350 01c4 00020048 		.word	1207960064
 351 01c8 00A00140 		.word	1073848320
 352              		.cfi_endproc
 353              	.LFE45:
 355              		.text
 356              	.Letext0:
 357              		.file 2 "Library/inc/lcm32f06x.h"
 358              		.file 3 "/home/ha/toolchain/arm-gnu-toolchain-14.3/arm-none-eabi/include/machine/_default_types.h"
 359              		.file 4 "/home/ha/toolchain/arm-gnu-toolchain-14.3/arm-none-eabi/include/sys/_stdint.h"
 360              		.file 5 "Library/inc/lcm32f06x_adc.h"
 361              		.file 6 "Library/inc/lcm32f06x_gpio.h"
 362              		.file 7 "Library/inc/lcm32f06x_exti.h"
 363              		.file 8 "Library/inc/lcm32f06x_rcc.h"
 364              		.file 9 "/home/ha/toolchain/arm-gnu-toolchain-14.3/arm-none-eabi/include/string.h"
ARM GAS  /tmp/ccmWDDxb.s 			page 10


DEFINED SYMBOLS
                            *ABS*:00000000 adc.c
     /tmp/ccmWDDxb.s:17     .text.adc_init:00000000 $t
     /tmp/ccmWDDxb.s:24     .text.adc_init:00000000 adc_init
     /tmp/ccmWDDxb.s:350    .text.adc_init:000001c4 $d

UNDEFINED SYMBOLS
RCC_APB0PeriphClockCmd
RCC_AHBPeriphClockCmd
GPIO_Init
GPIO_PinAFConfig
ADC_DeInit
ADC_StructInit
ADC_Init
ADC_ForExternVref_Cmd
ADC_SOC_Config
TrigSelect_Config
ADC_SOC_ITConfig
NVIC_Init
ADC_Cmd
ADC_StartOfConversion
