📄 stm32f10x_spi.lst
字号:
289:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c ****
290:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /* Write to SPIx I2SCFGR */
291:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** SPIx->I2SCFGR = tmpreg;
292:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** }
293:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c ****
294:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /**
295:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * @brief Fills each SPI_InitStruct member with its default value.
296:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * @param SPI_InitStruct : pointer to a SPI_InitTypeDef structure
297:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * which will be initialized.
298:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * @retval : None
299:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** */
300:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** void SPI_StructInit(SPI_InitTypeDef* SPI_InitStruct)
301:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** {
89 .loc 1 301 0
90 @ args = 0, pretend = 0, frame = 0
91 @ frame_needed = 0, uses_anonymous_args = 0
92 @ link register save eliminated.
93 .LVL4:
302:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /*--------------- Reset SPI init structure parameters values -----------------*/
303:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /* Initialize the SPI_Direction member */
304:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** SPI_InitStruct->SPI_Direction = SPI_Direction_2Lines_FullDuplex;
94 .loc 1 304 0
95 0000 0023 movs r3, #0
96 0002 0380 strh r3, [r0, #0] @ movhi
305:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /* initialize the SPI_Mode member */
306:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** SPI_InitStruct->SPI_Mode = SPI_Mode_Slave;
97 .loc 1 306 0
98 0004 4380 strh r3, [r0, #2] @ movhi
307:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /* initialize the SPI_DataSize member */
308:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** SPI_InitStruct->SPI_DataSize = SPI_DataSize_8b;
99 .loc 1 308 0
100 0006 8380 strh r3, [r0, #4] @ movhi
309:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /* Initialize the SPI_CPOL member */
310:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** SPI_InitStruct->SPI_CPOL = SPI_CPOL_Low;
101 .loc 1 310 0
102 0008 C380 strh r3, [r0, #6] @ movhi
311:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /* Initialize the SPI_CPHA member */
312:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** SPI_InitStruct->SPI_CPHA = SPI_CPHA_1Edge;
103 .loc 1 312 0
104 000a 0381 strh r3, [r0, #8] @ movhi
313:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /* Initialize the SPI_NSS member */
314:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** SPI_InitStruct->SPI_NSS = SPI_NSS_Hard;
105 .loc 1 314 0
106 000c 4381 strh r3, [r0, #10] @ movhi
315:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /* Initialize the SPI_BaudRatePrescaler member */
316:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** SPI_InitStruct->SPI_BaudRatePrescaler = SPI_BaudRatePrescaler_2;
107 .loc 1 316 0
108 000e 8381 strh r3, [r0, #12] @ movhi
317:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /* Initialize the SPI_FirstBit member */
318:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** SPI_InitStruct->SPI_FirstBit = SPI_FirstBit_MSB;
109 .loc 1 318 0
110 0010 C381 strh r3, [r0, #14] @ movhi
319:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /* Initialize the SPI_CRCPolynomial member */
320:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** SPI_InitStruct->SPI_CRCPolynomial = 7;
111 .loc 1 320 0
112 0012 4FF00703 mov r3, #7 @ movhi
113 0016 0382 strh r3, [r0, #16] @ movhi
321:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** }
114 .loc 1 321 0
115 0018 7047 bx lr
116 .LFE29:
118 001a C046 .section .text.I2S_StructInit,"ax",%progbits
119 .align 2
120 .global I2S_StructInit
121 .thumb
122 .thumb_func
124 I2S_StructInit:
125 .LFB30:
322:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c ****
323:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /**
324:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * @brief Fills each I2S_InitStruct member with its default value.
325:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * @param I2S_InitStruct : pointer to a I2S_InitTypeDef structure
326:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * which will be initialized.
327:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * @retval : None
328:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** */
329:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** void I2S_StructInit(I2S_InitTypeDef* I2S_InitStruct)
330:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** {
126 .loc 1 330 0
127 @ args = 0, pretend = 0, frame = 0
128 @ frame_needed = 0, uses_anonymous_args = 0
129 @ link register save eliminated.
130 .LVL5:
331:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /*--------------- Reset I2S init structure parameters values -----------------*/
332:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /* Initialize the I2S_Mode member */
333:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** I2S_InitStruct->I2S_Mode = I2S_Mode_SlaveTx;
131 .loc 1 333 0
132 0000 0023 movs r3, #0
334:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c ****
335:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /* Initialize the I2S_Standard member */
336:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** I2S_InitStruct->I2S_Standard = I2S_Standard_Phillips;
337:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c ****
338:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /* Initialize the I2S_DataFormat member */
339:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** I2S_InitStruct->I2S_DataFormat = I2S_DataFormat_16b;
340:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c ****
341:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /* Initialize the I2S_MCLKOutput member */
342:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** I2S_InitStruct->I2S_MCLKOutput = I2S_MCLKOutput_Disable;
343:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c ****
344:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /* Initialize the I2S_AudioFreq member */
345:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** I2S_InitStruct->I2S_AudioFreq = I2S_AudioFreq_Default;
133 .loc 1 345 0
134 0002 4FF00202 mov r2, #2 @ movhi
135 .loc 1 333 0
136 0006 0380 strh r3, [r0, #0] @ movhi
137 .loc 1 336 0
138 0008 4380 strh r3, [r0, #2] @ movhi
139 .loc 1 339 0
140 000a 8380 strh r3, [r0, #4] @ movhi
141 .loc 1 342 0
142 000c C380 strh r3, [r0, #6] @ movhi
143 .loc 1 345 0
144 000e 0281 strh r2, [r0, #8] @ movhi
346:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c ****
347:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /* Initialize the I2S_CPOL member */
348:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** I2S_InitStruct->I2S_CPOL = I2S_CPOL_Low;
145 .loc 1 348 0
146 0010 4381 strh r3, [r0, #10] @ movhi
349:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** }
147 .loc 1 349 0
148 0012 7047 bx lr
149 .LFE30:
151 .section .text.SPI_Cmd,"ax",%progbits
152 .align 2
153 .global SPI_Cmd
154 .thumb
155 .thumb_func
157 SPI_Cmd:
158 .LFB31:
350:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c ****
351:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /**
352:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * @brief Enables or disables the specified SPI peripheral.
353:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * @param SPIx: where x can be 1, 2 or 3 to select the SPI peripheral.
354:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * @param NewState: new state of the SPIx peripheral.
355:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * This parameter can be: ENABLE or DISABLE.
356:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * @retval : None
357:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** */
358:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** void SPI_Cmd(SPI_TypeDef* SPIx, FunctionalState NewState)
359:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** {
159 .loc 1 359 0
160 @ args = 0, pretend = 0, frame = 0
161 @ frame_needed = 0, uses_anonymous_args = 0
162 @ link register save eliminated.
163 .LVL6:
360:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /* Check the parameters */
361:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** assert_param(IS_SPI_ALL_PERIPH(SPIx));
362:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** assert_param(IS_FUNCTIONAL_STATE(NewState));
363:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** if (NewState != DISABLE)
164 .loc 1 363 0
165 0000 21B1 cbz r1, .L8
364:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** {
365:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /* Enable the selected SPI peripheral */
366:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** SPIx->CR1 |= CR1_SPE_Set;
166 .loc 1 366 0
167 0002 0388 ldrh r3, [r0, #0]
168 0004 9BB2 uxth r3, r3
169 0006 43F04003 orr r3, r3, #64
170 000a 04E0 b .L11
171 .L8:
367:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** }
368:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** else
369:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** {
370:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /* Disable the selected SPI peripheral */
371:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** SPIx->CR1 &= CR1_SPE_Reset;
172 .loc 1 371 0
173 000c 0388 ldrh r3, [r0, #0]
174 000e 23F04003 bic r3, r3, #64
175 0012 1B04 lsls r3, r3, #16
176 0014 1B0C lsrs r3, r3, #16
177 .L11:
178 0016 0380 strh r3, [r0, #0] @ movhi
372:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** }
373:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** }
179 .loc 1 373 0
180 0018 7047 bx lr
181 .LFE31:
183 001a C046 .section .text.I2S_Cmd,"ax",%progbits
184 .align 2
185 .global I2S_Cmd
186 .thumb
187 .thumb_func
189 I2S_Cmd:
190 .LFB32:
374:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c ****
375:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /**
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -