📄 probe_rs232c.lst
字号:
444 *
445 * Argument(s): c is the byte to transmit.
446 *
447 * Returns : None
448 *********************************************************************************************************
449 */
450
\ In segment CODE, align 4, keep-with-next
451 void ProbeRS232_Tx1 (CPU_INT08U c)
452 {
\ ProbeRS232_Tx1:
\ 00000000 00B5 PUSH {LR}
453 #if (PROBE_RS232_COMM_SEL == PROBE_RS232_UART_1)
454 USART_SendData(USART1, c);
\ 00000002 0100 MOVS R1,R0
\ 00000004 .... LDR.N R0,??DataTable12 ;; 0x40013800
\ 00000006 ........ _BLF USART_SendData,??USART_SendData??rT
455 #endif
456
457 #if (PROBE_RS232_COMM_SEL == PROBE_RS232_UART_2)
458 USART_SendData(USART2, c);
459 #endif
460
461 #if (PROBE_RS232_COMM_SEL == PROBE_RS232_UART_3)
462 USART_SendData(USART3, c);
463 #endif
464 }
\ 0000000A 00BD POP {PC} ;; return
465
466 /*
467 *********************************************************************************************************
468 * Enable/disable Tx Interrupts
469 *
470 * Description: Enables or disables Tx interrupts.
471 *
472 * Argument(s): None
473 *
474 * Returns : None
475 *********************************************************************************************************
476 */
477
\ In segment CODE, align 4, keep-with-next
478 void ProbeRS232_TxIntDis (void)
479 {
\ ProbeRS232_TxIntDis:
\ 00000000 00B5 PUSH {LR}
480 #if (PROBE_RS232_COMM_SEL == PROBE_RS232_UART_1)
481 USART_ITConfig(USART1, USART_IT_TXE, DISABLE);
\ 00000002 0022 MOVS R2,#+0
\ 00000004 .... LDR.N R1,??DataTable7 ;; 0x727
\ 00000006 .... LDR.N R0,??DataTable12 ;; 0x40013800
\ 00000008 ........ _BLF USART_ITConfig,??USART_ITConfig??rT
482 #endif
483
484 #if (PROBE_RS232_COMM_SEL == PROBE_RS232_UART_2)
485 USART_ITConfig(USART2, USART_IT_TXE, DISABLE);
486 #endif
487
488 #if (PROBE_RS232_COMM_SEL == PROBE_RS232_UART_3)
489 USART_ITConfig(USART3, USART_IT_TXE, DISABLE);
490 #endif
491 }
\ 0000000C 00BD POP {PC} ;; return
492
\ In segment CODE, align 4, keep-with-next
493 void ProbeRS232_TxIntEn (void)
494 {
\ ProbeRS232_TxIntEn:
\ 00000000 00B5 PUSH {LR}
495 #if (PROBE_RS232_COMM_SEL == PROBE_RS232_UART_1)
496 USART_ITConfig(USART1, USART_IT_TXE, ENABLE);
\ 00000002 0122 MOVS R2,#+1
\ 00000004 .... LDR.N R1,??DataTable7 ;; 0x727
\ 00000006 .... LDR.N R0,??DataTable12 ;; 0x40013800
\ 00000008 ........ _BLF USART_ITConfig,??USART_ITConfig??rT
497 #endif
498
499 #if (PROBE_RS232_COMM_SEL == PROBE_RS232_UART_2)
500 USART_ITConfig(USART2, USART_IT_TXE, ENABLE);
501 #endif
502
503 #if (PROBE_RS232_COMM_SEL == PROBE_RS232_UART_3)
504 USART_ITConfig(USART3, USART_IT_TXE, ENABLE);
505 #endif
506 }
\ 0000000C 00BD POP {PC} ;; return
507
508 /*
509 *********************************************************************************************************
510 * Enable/disable Rx Interrupts
511 *
512 * Description: Enables or disables Rx interrupts.
513 *
514 * Argument(s): None
515 *
516 * Returns : None
517 *********************************************************************************************************
518 */
519
\ In segment CODE, align 4, keep-with-next
520 void ProbeRS232_RxIntDis (void)
521 {
\ ProbeRS232_RxIntDis:
\ 00000000 00B5 PUSH {LR}
522 #if (PROBE_RS232_COMM_SEL == PROBE_RS232_UART_1)
523 USART_ITConfig(USART1, USART_IT_RXNE, DISABLE);
\ 00000002 0022 MOVS R2,#+0
\ 00000004 .... LDR.N R1,??DataTable11 ;; 0x525
\ 00000006 .... LDR.N R0,??DataTable12 ;; 0x40013800
\ 00000008 ........ _BLF USART_ITConfig,??USART_ITConfig??rT
524 #endif
525
526 #if (PROBE_RS232_COMM_SEL == PROBE_RS232_UART_2)
527 USART_ITConfig(USART2, USART_IT_RXNE, DISABLE);
528 #endif
529
530 #if (PROBE_RS232_COMM_SEL == PROBE_RS232_UART_3)
531 USART_ITConfig(USART3, USART_IT_RXNE, DISABLE);
532 #endif
533 }
\ 0000000C 00BD POP {PC} ;; return
534
\ In segment CODE, align 4, keep-with-next
535 void ProbeRS232_RxIntEn (void)
536 {
\ ProbeRS232_RxIntEn:
\ 00000000 00B5 PUSH {LR}
537 #if (PROBE_RS232_COMM_SEL == PROBE_RS232_UART_1)
538 USART_ITConfig(USART1, USART_IT_RXNE, ENABLE);
\ 00000002 0122 MOVS R2,#+1
\ 00000004 .... LDR.N R1,??DataTable11 ;; 0x525
\ 00000006 .... LDR.N R0,??DataTable12 ;; 0x40013800
\ 00000008 ........ _BLF USART_ITConfig,??USART_ITConfig??rT
539 #endif
540
541 #if (PROBE_RS232_COMM_SEL == PROBE_RS232_UART_2)
542 USART_ITConfig(USART2, USART_IT_RXNE, ENABLE);
543 #endif
544
545 #if (PROBE_RS232_COMM_SEL == PROBE_RS232_UART_3)
546 USART_ITConfig(USART3, USART_IT_RXNE, ENABLE);
547 #endif
548 }
\ 0000000C 00BD POP {PC} ;; return
\ In segment CODE, align 4, keep-with-next
\ ??DataTable7:
\ 00000000 27070000 DC32 0x727
\ In segment CODE, align 4, keep-with-next
\ ??DataTable11:
\ 00000000 25050000 DC32 0x525
\ In segment CODE, align 4, keep-with-next
\ ??DataTable12:
\ 00000000 00380140 DC32 0x40013800
Maximum stack usage in bytes:
Function CSTACK
-------- ------
ProbeRS232_InitTarget 48
ProbeRS232_RxISRHandler 0
ProbeRS232_RxIntDis 4
ProbeRS232_RxIntEn 4
ProbeRS232_RxTxISRHandler 12
ProbeRS232_Tx1 4
ProbeRS232_TxISRHandler 0
ProbeRS232_TxIntDis 4
ProbeRS232_TxIntEn 4
Segment part sizes:
Function/Label Bytes
-------------- -----
ProbeRS232_InitTarget 168
ProbeRS232_RxTxISRHandler 92
ProbeRS232_RxISRHandler 2
ProbeRS232_TxISRHandler 2
ProbeRS232_Tx1 12
ProbeRS232_TxIntDis 14
ProbeRS232_TxIntEn 14
ProbeRS232_RxIntDis 14
ProbeRS232_RxIntEn 14
??DataTable7 4
??DataTable11 4
??DataTable12 4
Others 120
464 bytes in segment CODE
344 bytes of CODE memory (+ 120 bytes shared)
Errors: none
Warnings: none
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -