RFDAproto.lst 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. ARM GAS /tmp/cchZupNE.s page 1
  2. 1 .cpu cortex-m3
  3. 2 .arch armv7-m
  4. 3 .fpu softvfp
  5. 4 .eabi_attribute 20, 1
  6. 5 .eabi_attribute 21, 1
  7. 6 .eabi_attribute 23, 3
  8. 7 .eabi_attribute 24, 1
  9. 8 .eabi_attribute 25, 1
  10. 9 .eabi_attribute 26, 1
  11. 10 .eabi_attribute 30, 1
  12. 11 .eabi_attribute 34, 1
  13. 12 .eabi_attribute 18, 4
  14. 13 .file "RFDAproto.c"
  15. 14 .text
  16. 15 .Ltext0:
  17. 16 .cfi_sections .debug_frame
  18. 17 .file 1 "Core/Src/RFDAproto.c"
  19. 18 .section .text.PWM_init,"ax",%progbits
  20. 19 .align 1
  21. 20 .global PWM_init
  22. 21 .syntax unified
  23. 22 .thumb
  24. 23 .thumb_func
  25. 25 PWM_init:
  26. 26 .LFB655:
  27. 1:Core/Src/RFDAproto.c **** #include "RFDAproto.h"
  28. 2:Core/Src/RFDAproto.c **** #include "usbd_cdc_if.h"
  29. 3:Core/Src/RFDAproto.c ****
  30. 4:Core/Src/RFDAproto.c **** #define RFDA_TIM TIM1 //timer [CH1] --- PA8
  31. 5:Core/Src/RFDAproto.c **** #define RFDA_TIM_ARR 10U
  32. 6:Core/Src/RFDAproto.c **** #define RFDA_TIM_CCR1 7U
  33. 7:Core/Src/RFDAproto.c ****
  34. 8:Core/Src/RFDAproto.c **** #define LE_AND_DATA_PORT GPIOA
  35. 9:Core/Src/RFDAproto.c **** #define LE_S GPIO_BSRR_BS1 //[LE] --- PA1
  36. 10:Core/Src/RFDAproto.c **** #define LE_R GPIO_BSRR_BR1
  37. 11:Core/Src/RFDAproto.c **** #define DATA_S GPIO_BSRR_BS2 //[DATA] --- PA2
  38. 12:Core/Src/RFDAproto.c **** #define DATA_R GPIO_BSRR_BR2
  39. 13:Core/Src/RFDAproto.c **** #define DMA_CH DMA1_Channel5
  40. 14:Core/Src/RFDAproto.c **** #define BUF_LEN 7U
  41. 15:Core/Src/RFDAproto.c **** uint32_t buf[BUF_LEN];
  42. 16:Core/Src/RFDAproto.c **** uint8_t i;
  43. 17:Core/Src/RFDAproto.c ****
  44. 18:Core/Src/RFDAproto.c **** void PWM_init(void){
  45. 27 .loc 1 18 20 view -0
  46. 28 .cfi_startproc
  47. 29 @ args = 0, pretend = 0, frame = 0
  48. 30 @ frame_needed = 0, uses_anonymous_args = 0
  49. 31 @ link register save eliminated.
  50. 19:Core/Src/RFDAproto.c ****
  51. 20:Core/Src/RFDAproto.c **** SET_BIT(RFDA_TIM->BDTR,TIM_BDTR_MOE);//OUTPUT ENABLE
  52. 32 .loc 1 20 2 view .LVU1
  53. 33 0000 044B ldr r3, .L2
  54. 34 0002 5A6C ldr r2, [r3, #68]
  55. 35 0004 42F40042 orr r2, r2, #32768
  56. 36 0008 5A64 str r2, [r3, #68]
  57. 21:Core/Src/RFDAproto.c ****
  58. 22:Core/Src/RFDAproto.c **** SET_BIT(RFDA_TIM->CCER, TIM_CCER_CC1E); //Capture/Compare 1 output enable
  59. ARM GAS /tmp/cchZupNE.s page 2
  60. 37 .loc 1 22 2 view .LVU2
  61. 38 000a 1A6A ldr r2, [r3, #32]
  62. 39 000c 42F00102 orr r2, r2, #1
  63. 40 0010 1A62 str r2, [r3, #32]
  64. 23:Core/Src/RFDAproto.c **** }
  65. 41 .loc 1 23 1 is_stmt 0 view .LVU3
  66. 42 0012 7047 bx lr
  67. 43 .L3:
  68. 44 .align 2
  69. 45 .L2:
  70. 46 0014 002C0140 .word 1073818624
  71. 47 .cfi_endproc
  72. 48 .LFE655:
  73. 50 .section .text.PWM,"ax",%progbits
  74. 51 .align 1
  75. 52 .global PWM
  76. 53 .syntax unified
  77. 54 .thumb
  78. 55 .thumb_func
  79. 57 PWM:
  80. 58 .LVL0:
  81. 59 .LFB656:
  82. 24:Core/Src/RFDAproto.c **** void PWM(uint8_t ar,uint8_t cc){
  83. 60 .loc 1 24 32 is_stmt 1 view -0
  84. 61 .cfi_startproc
  85. 62 @ args = 0, pretend = 0, frame = 0
  86. 63 @ frame_needed = 0, uses_anonymous_args = 0
  87. 64 @ link register save eliminated.
  88. 25:Core/Src/RFDAproto.c **** //TIM CFG
  89. 26:Core/Src/RFDAproto.c **** CLEAR_BIT(RFDA_TIM->CR1, TIM_CR1_CEN); //turn off counter
  90. 65 .loc 1 26 5 view .LVU5
  91. 66 0000 0C4B ldr r3, .L5
  92. 67 0002 1A68 ldr r2, [r3]
  93. 68 0004 22F00102 bic r2, r2, #1
  94. 69 0008 1A60 str r2, [r3]
  95. 27:Core/Src/RFDAproto.c **** CLEAR_BIT(RFDA_TIM->CCER, TIM_CCER_CC1E); //disable data OUTPUT
  96. 70 .loc 1 27 5 view .LVU6
  97. 71 000a 1A6A ldr r2, [r3, #32]
  98. 72 000c 22F00102 bic r2, r2, #1
  99. 73 0010 1A62 str r2, [r3, #32]
  100. 28:Core/Src/RFDAproto.c **** WRITE_REG(RFDA_TIM->ARR,ar); //SET autoreload value
  101. 74 .loc 1 28 2 view .LVU7
  102. 75 0012 D862 str r0, [r3, #44]
  103. 29:Core/Src/RFDAproto.c **** WRITE_REG(RFDA_TIM->CCR1,cc);//SET capture-compare value
  104. 76 .loc 1 29 2 view .LVU8
  105. 77 0014 5963 str r1, [r3, #52]
  106. 30:Core/Src/RFDAproto.c **** WRITE_REG(RFDA_TIM->CNT,0U); //Set TIM counter to zero
  107. 78 .loc 1 30 2 view .LVU9
  108. 79 0016 0022 movs r2, #0
  109. 80 0018 5A62 str r2, [r3, #36]
  110. 31:Core/Src/RFDAproto.c **** SET_BIT(RFDA_TIM->CCER, TIM_CCER_CC1E); //enable data OUTPUT
  111. 81 .loc 1 31 2 view .LVU10
  112. 82 001a 1A6A ldr r2, [r3, #32]
  113. 83 001c 42F00102 orr r2, r2, #1
  114. 84 0020 1A62 str r2, [r3, #32]
  115. 32:Core/Src/RFDAproto.c **** SET_BIT(RFDA_TIM->EGR, TIM_EGR_UG); //update gen
  116. 85 .loc 1 32 5 view .LVU11
  117. ARM GAS /tmp/cchZupNE.s page 3
  118. 86 0022 5A69 ldr r2, [r3, #20]
  119. 87 0024 42F00102 orr r2, r2, #1
  120. 88 0028 5A61 str r2, [r3, #20]
  121. 33:Core/Src/RFDAproto.c **** SET_BIT(RFDA_TIM->CR1,TIM_CR1_CEN); //enable counter
  122. 89 .loc 1 33 2 view .LVU12
  123. 90 002a 1A68 ldr r2, [r3]
  124. 91 002c 42F00102 orr r2, r2, #1
  125. 92 0030 1A60 str r2, [r3]
  126. 34:Core/Src/RFDAproto.c ****
  127. 35:Core/Src/RFDAproto.c **** }
  128. 93 .loc 1 35 1 is_stmt 0 view .LVU13
  129. 94 0032 7047 bx lr
  130. 95 .L6:
  131. 96 .align 2
  132. 97 .L5:
  133. 98 0034 002C0140 .word 1073818624
  134. 99 .cfi_endproc
  135. 100 .LFE656:
  136. 102 .section .text.DMA1_Channel5_IRQHandler,"ax",%progbits
  137. 103 .align 1
  138. 104 .global DMA1_Channel5_IRQHandler
  139. 105 .syntax unified
  140. 106 .thumb
  141. 107 .thumb_func
  142. 109 DMA1_Channel5_IRQHandler:
  143. 110 .LFB657:
  144. 36:Core/Src/RFDAproto.c ****
  145. 37:Core/Src/RFDAproto.c **** /**
  146. 38:Core/Src/RFDAproto.c **** * @brief This function handles DMA1 channel2 global interrupt.
  147. 39:Core/Src/RFDAproto.c **** */
  148. 40:Core/Src/RFDAproto.c **** void DMA1_Channel5_IRQHandler(void)
  149. 41:Core/Src/RFDAproto.c **** {
  150. 111 .loc 1 41 1 is_stmt 1 view -0
  151. 112 .cfi_startproc
  152. 113 @ args = 0, pretend = 0, frame = 0
  153. 114 @ frame_needed = 0, uses_anonymous_args = 0
  154. 115 @ link register save eliminated.
  155. 42:Core/Src/RFDAproto.c **** /* USER CODE BEGIN DMA1_Channel2_IRQn 0 */
  156. 43:Core/Src/RFDAproto.c **** // CLEAR_BIT(RFDA_TIM->CR1, TIM_CR1_CEN); //turn off counter
  157. 44:Core/Src/RFDAproto.c **** // CLEAR_BIT(RFDA_TIM->CCER, TIM_CCER_CC1E); //disable data channel
  158. 45:Core/Src/RFDAproto.c **** // WRITE_REG(LE_AND_DATA_PORT->BSRR,LE_S|DATA_R); //LE SET and DATA RESET at the END of transfer
  159. 46:Core/Src/RFDAproto.c **** // SET_BIT(DMA1->IFCR, DMA_IFCR_CTCIF5); //CTCIFx: Channel x transfer complete flag clear (x = 1 ..
  160. 47:Core/Src/RFDAproto.c **** /* USER CODE END DMA1_Channel2_IRQn 0 */
  161. 48:Core/Src/RFDAproto.c ****
  162. 49:Core/Src/RFDAproto.c **** /* USER CODE BEGIN DMA1_Channel2_IRQn 1 */
  163. 50:Core/Src/RFDAproto.c ****
  164. 51:Core/Src/RFDAproto.c ****
  165. 52:Core/Src/RFDAproto.c **** /* USER CODE END DMA1_Channel2_IRQn 1 */
  166. 53:Core/Src/RFDAproto.c **** }
  167. 116 .loc 1 53 1 view .LVU15
  168. 117 0000 7047 bx lr
  169. 118 .cfi_endproc
  170. 119 .LFE657:
  171. 121 .global i
  172. 122 .section .bss.i,"aw",%nobits
  173. 125 i:
  174. 126 0000 00 .space 1
  175. ARM GAS /tmp/cchZupNE.s page 4
  176. 127 .global buf
  177. 128 .section .bss.buf,"aw",%nobits
  178. 129 .align 2
  179. 132 buf:
  180. 133 0000 00000000 .space 28
  181. 133 00000000
  182. 133 00000000
  183. 133 00000000
  184. 133 00000000
  185. 134 .text
  186. 135 .Letext0:
  187. 136 .file 2 "/opt/gcc-arm/arm-none-eabi/include/machine/_default_types.h"
  188. 137 .file 3 "/opt/gcc-arm/arm-none-eabi/include/sys/_stdint.h"
  189. 138 .file 4 "Drivers/CMSIS/Device/ST/STM32F1xx/Include/stm32f103xb.h"
  190. 139 .file 5 "Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_dma.h"
  191. 140 .file 6 "Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_tim.h"
  192. ARM GAS /tmp/cchZupNE.s page 5
  193. DEFINED SYMBOLS
  194. *ABS*:00000000 RFDAproto.c
  195. /tmp/cchZupNE.s:19 .text.PWM_init:00000000 $t
  196. /tmp/cchZupNE.s:25 .text.PWM_init:00000000 PWM_init
  197. /tmp/cchZupNE.s:46 .text.PWM_init:00000014 $d
  198. /tmp/cchZupNE.s:51 .text.PWM:00000000 $t
  199. /tmp/cchZupNE.s:57 .text.PWM:00000000 PWM
  200. /tmp/cchZupNE.s:98 .text.PWM:00000034 $d
  201. /tmp/cchZupNE.s:103 .text.DMA1_Channel5_IRQHandler:00000000 $t
  202. /tmp/cchZupNE.s:109 .text.DMA1_Channel5_IRQHandler:00000000 DMA1_Channel5_IRQHandler
  203. /tmp/cchZupNE.s:125 .bss.i:00000000 i
  204. /tmp/cchZupNE.s:126 .bss.i:00000000 $d
  205. /tmp/cchZupNE.s:132 .bss.buf:00000000 buf
  206. /tmp/cchZupNE.s:129 .bss.buf:00000000 $d
  207. NO UNDEFINED SYMBOLS