📄 stm32f10x_spi.lst
字号:
376:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * @brief Enables or disables the specified SPI peripheral (in I2S mode).
377:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * @param SPIx: where x can be 2 or 3 to select the SPI peripheral.
378:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * @param NewState: new state of the SPIx peripheral.
379:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * This parameter can be: ENABLE or DISABLE.
380:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * @retval : None
381:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** */
382:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** void I2S_Cmd(SPI_TypeDef* SPIx, FunctionalState NewState)
383:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** {
191 .loc 1 383 0
192 @ args = 0, pretend = 0, frame = 0
193 @ frame_needed = 0, uses_anonymous_args = 0
194 @ link register save eliminated.
195 .LVL7:
384:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /* Check the parameters */
385:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** assert_param(IS_SPI_23_PERIPH(SPIx));
386:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** assert_param(IS_FUNCTIONAL_STATE(NewState));
387:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** if (NewState != DISABLE)
196 .loc 1 387 0
197 0000 21B1 cbz r1, .L13
388:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** {
389:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /* Enable the selected SPI peripheral (in I2S mode) */
390:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** SPIx->I2SCFGR |= I2SCFGR_I2SE_Set;
198 .loc 1 390 0
199 0002 838B ldrh r3, [r0, #28]
200 0004 9BB2 uxth r3, r3
201 0006 43F48063 orr r3, r3, #1024
202 000a 04E0 b .L16
203 .L13:
391:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** }
392:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** else
393:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** {
394:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /* Disable the selected SPI peripheral (in I2S mode) */
395:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** SPIx->I2SCFGR &= I2SCFGR_I2SE_Reset;
204 .loc 1 395 0
205 000c 838B ldrh r3, [r0, #28]
206 000e 23F48063 bic r3, r3, #1024
207 0012 1B04 lsls r3, r3, #16
208 0014 1B0C lsrs r3, r3, #16
209 .L16:
210 0016 8383 strh r3, [r0, #28] @ movhi
396:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** }
397:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** }
211 .loc 1 397 0
212 0018 7047 bx lr
213 .LFE32:
215 001a C046 .section .text.SPI_I2S_ITConfig,"ax",%progbits
216 .align 2
217 .global SPI_I2S_ITConfig
218 .thumb
219 .thumb_func
221 SPI_I2S_ITConfig:
222 .LFB33:
398:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c ****
399:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /**
400:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * @brief Enables or disables the specified SPI/I2S interrupts.
401:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * @param SPIx: where x can be :
402:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * 1, 2 or 3 in SPI mode
403:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * 2 or 3 in I2S mode
404:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * @param SPI_I2S_IT: specifies the SPI/I2S interrupt source to be
405:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * enabled or disabled.
406:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * This parameter can be one of the following values:
407:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * @arg SPI_I2S_IT_TXE: Tx buffer empty interrupt mask
408:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * @arg SPI_I2S_IT_RXNE: Rx buffer not empty interrupt mask
409:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * @arg SPI_I2S_IT_ERR: Error interrupt mask
410:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * @param NewState: new state of the specified SPI/I2S interrupt.
411:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * This parameter can be: ENABLE or DISABLE.
412:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * @retval : None
413:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** */
414:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** void SPI_I2S_ITConfig(SPI_TypeDef* SPIx, uint8_t SPI_I2S_IT, FunctionalState NewState)
415:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** {
223 .loc 1 415 0
224 @ args = 0, pretend = 0, frame = 0
225 @ frame_needed = 0, uses_anonymous_args = 0
226 @ link register save eliminated.
227 .LVL8:
416:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** uint16_t itpos = 0, itmask = 0 ;
417:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /* Check the parameters */
418:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** assert_param(IS_SPI_ALL_PERIPH(SPIx));
419:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** assert_param(IS_FUNCTIONAL_STATE(NewState));
420:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** assert_param(IS_SPI_I2S_CONFIG_IT(SPI_I2S_IT));
421:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /* Get the SPI/I2S IT index */
422:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** itpos = SPI_I2S_IT >> 4;
423:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /* Set the IT mask */
424:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** itmask = (uint16_t)((uint16_t)1 << itpos);
228 .loc 1 424 0
229 0000 0909 lsrs r1, r1, #4
230 .LVL9:
231 0002 0123 movs r3, #1
232 0004 8B40 lsls r3, r3, r1
233 0006 99B2 uxth r1, r3
234 .LVL10:
425:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** if (NewState != DISABLE)
235 .loc 1 425 0
236 0008 22B1 cbz r2, .L18
426:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** {
427:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /* Enable the selected SPI/I2S interrupt */
428:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** SPIx->CR2 |= itmask;
237 .loc 1 428 0
238 000a 8388 ldrh r3, [r0, #4]
239 000c 9BB2 uxth r3, r3
240 000e 41EA0303 orr r3, r1, r3
241 0012 03E0 b .L21
242 .L18:
429:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** }
430:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** else
431:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** {
432:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /* Disable the selected SPI/I2S interrupt */
433:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** SPIx->CR2 &= (uint16_t)~itmask;
243 .loc 1 433 0
244 0014 8388 ldrh r3, [r0, #4]
245 0016 9BB2 uxth r3, r3
246 0018 23EA0103 bic r3, r3, r1
247 .L21:
248 001c 8380 strh r3, [r0, #4] @ movhi
434:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** }
435:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** }
249 .loc 1 435 0
250 001e 7047 bx lr
251 .LFE33:
253 .section .text.SPI_I2S_DMACmd,"ax",%progbits
254 .align 2
255 .global SPI_I2S_DMACmd
256 .thumb
257 .thumb_func
259 SPI_I2S_DMACmd:
260 .LFB34:
436:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c ****
437:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /**
438:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * @brief Enables or disables the SPIx/I2Sx DMA interface.
439:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * @param SPIx: where x can be :
440:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * 1, 2 or 3 in SPI mode
441:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * 2 or 3 in I2S mode
442:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * @param SPI_I2S_DMAReq: specifies the SPI/I2S DMA transfer request
443:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * to be enabled or disabled.
444:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * This parameter can be any combination of the following values:
445:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * @arg SPI_I2S_DMAReq_Tx: Tx buffer DMA transfer request
446:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * @arg SPI_I2S_DMAReq_Rx: Rx buffer DMA transfer request
447:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * @param NewState: new state of the selected SPI/I2S DMA transfer
448:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * request.
449:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * This parameter can be: ENABLE or DISABLE.
450:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** * @retval : None
451:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** */
452:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** void SPI_I2S_DMACmd(SPI_TypeDef* SPIx, uint16_t SPI_I2S_DMAReq, FunctionalState NewState)
453:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** {
261 .loc 1 453 0
262 @ args = 0, pretend = 0, frame = 0
263 @ frame_needed = 0, uses_anonymous_args = 0
264 @ link register save eliminated.
265 .LVL11:
454:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /* Check the parameters */
455:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** assert_param(IS_SPI_ALL_PERIPH(SPIx));
456:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** assert_param(IS_FUNCTIONAL_STATE(NewState));
457:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** assert_param(IS_SPI_I2S_DMAREQ(SPI_I2S_DMAReq));
458:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** if (NewState != DISABLE)
266 .loc 1 458 0
267 0000 22B1 cbz r2, .L23
459:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** {
460:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /* Enable the selected SPI/I2S DMA requests */
461:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** SPIx->CR2 |= SPI_I2S_DMAReq;
268 .loc 1 461 0
269 0002 8388 ldrh r3, [r0, #4]
270 0004 9BB2 uxth r3, r3
271 0006 41EA0303 orr r3, r1, r3
272 000a 03E0 b .L26
273 .L23:
462:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** }
463:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** else
464:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** {
465:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** /* Disable the selected SPI/I2S DMA requests */
466:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** SPIx->CR2 &= (uint16_t)~SPI_I2S_DMAReq;
274 .loc 1 466 0
275 000c 8388 ldrh r3, [r0, #4]
276 000e 9BB2 uxth r3, r3
277 0010 23EA0103 bic r3, r3, r1
278 .L26:
279 0014 8380 strh r3, [r0, #4] @ movhi
467:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** }
468:lib/STM32F10x_StdPeriph_Driver/src/stm32f10x_spi.c **** }
280 .loc 1 468 0
281 0016 7047 bx lr
282 .LFE34:
284 .section .text.SPI_I2S_SendData,"ax",%progbits
285 .align 2
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -