VAAleksandrov месяцев назад: 6
Родитель
Сommit
0ee52005c9
14 измененных файлов с 2687 добавлено и 2485 удалено
  1. 24 5
      Core/Src/RFDAproto.c
  2. 2 2
      Core/Src/main.c
  3. 5 4
      USB_DEVICE/App/usbd_cdc_if.c
  4. BIN
      build/RFDA4005.bin
  5. BIN
      build/RFDA4005.elf
  6. 1037 1028
      build/RFDA4005.hex
  7. 570 565
      build/RFDA4005.map
  8. 487 334
      build/RFDAproto.lst
  9. BIN
      build/RFDAproto.o
  10. 309 310
      build/main.lst
  11. BIN
      build/main.o
  12. 4 1
      build/usbd_cdc_if.d
  13. 249 236
      build/usbd_cdc_if.lst
  14. BIN
      build/usbd_cdc_if.o

+ 24 - 5
Core/Src/RFDAproto.c

@@ -2,17 +2,27 @@
 #include "usbd_cdc_if.h"
 
 #define RFDA_TIM TIM1 //timer
+#define RFDA_TIM_ARR 10U
+#define RFDA_TIM_CCR1 7U
+
 #define LE_AND_DATA_PORT GPIOA
 #define LE_S GPIO_BSRR_BS1
 #define LE_R GPIO_BSRR_BR1
 #define DATA_S GPIO_BSRR_BS2
 #define DATA_R GPIO_BSRR_BR2
 #define DMA_CH DMA1_Channel5
-#define BUF_LEN 9U
-uint32_t buff[BUF_LEN] = {LE_S,DATA_S|LE_R,DATA_R,DATA_S,DATA_R,DATA_S, DATA_R,LE_S,LE_R};
+#define BUF_LEN 7U
+uint32_t buf[BUF_LEN];
+uint8_t i;
 
 void RFDA_init(void){
+
+	//GPIO CFG
+	WRITE_REG(LE_AND_DATA_PORT->BSRR,LE_S);
+
 	//TIM CFG
+	WRITE_REG(RFDA_TIM->ARR,RFDA_TIM_ARR);
+	WRITE_REG(RFDA_TIM->CCR1,RFDA_TIM_CCR1);
 
 	SET_BIT(RFDA_TIM->BDTR,TIM_BDTR_MOE);//OUTPUT ENABLE
 	SET_BIT(RFDA_TIM->DIER,TIM_DIER_UDE); //UDE: Update DMA request enable
@@ -22,7 +32,7 @@ void RFDA_init(void){
 	CLEAR_BIT(DMA_CH->CCR, DMA_CCR_EN); //disable channel
 	/////////////////////////////////////
 	WRITE_REG(DMA_CH->CPAR, (uint32_t)(&(LE_AND_DATA_PORT->BSRR))); //peripherial address
-	WRITE_REG(DMA_CH->CMAR, (uint32_t)((buff))); //mem address
+	WRITE_REG(DMA_CH->CMAR, (uint32_t)((buf))); //mem address
 	SET_BIT(DMA_CH->CCR, DMA_CCR_TCIE); //TCIE: Transfer complete interrupt enable
 	NVIC_EnableIRQ(DMA1_Channel5_IRQn);
 	SET_BIT(DMA1->IFCR, DMA_IFCR_CTCIF5); //CTCIFx: Channel x transfer complete flag clear (x = 1 ..7)
@@ -30,11 +40,20 @@ void RFDA_init(void){
 	SET_BIT(DMA_CH->CCR,DMA_CCR_EN); //enable channel
 }
 void RFDA(uint8_t k){
-
+	if(k!=7U){
+		for(i=0;i<BUF_LEN-1-k;i++) buf[i] = DATA_S;
+		buf[BUF_LEN-1-k] = DATA_R;
+		for(i=BUF_LEN-k;i<BUF_LEN-1;i++) buf[i] = DATA_S;
+	}
+	else{
+		for(i=0;i<BUF_LEN;i++) buf[i]= DATA_R;
+	}
+	//DMA CFG
 	CLEAR_BIT(DMA_CH->CCR,DMA_CCR_EN); //disable channel
 	MODIFY_REG(DMA_CH->CNDTR, DMA_CNDTR_NDT, BUF_LEN);
 	SET_BIT(DMA_CH->CCR,DMA_CCR_EN); //enable channel
 
+	WRITE_REG(LE_AND_DATA_PORT->BSRR,LE_R); //LE RESET
 	WRITE_REG(RFDA_TIM->CNT,0U);
 	SET_BIT(RFDA_TIM->CCER, TIM_CCER_CC1E);
 	SET_BIT(RFDA_TIM->CR1,TIM_CR1_CEN);
@@ -47,9 +66,9 @@ void RFDA(uint8_t k){
 void DMA1_Channel5_IRQHandler(void)
 {
   /* USER CODE BEGIN DMA1_Channel2_IRQn 0 */
-
 	CLEAR_BIT(RFDA_TIM->CR1, TIM_CR1_CEN);
 	CLEAR_BIT(RFDA_TIM->CCER, TIM_CCER_CC1E);
+	WRITE_REG(LE_AND_DATA_PORT->BSRR,LE_S); //LE SET
 	SET_BIT(DMA1->IFCR, DMA_IFCR_CTCIF5); //CTCIFx: Channel x transfer complete flag clear (x = 1 ..7)
   /* USER CODE END DMA1_Channel2_IRQn 0 */
 

+ 2 - 2
Core/Src/main.c

@@ -95,6 +95,7 @@ int main(void)
   MX_TIM1_Init();
   /* USER CODE BEGIN 2 */
   RFDA_init();
+  LL_mDelay(500);
   /* USER CODE END 2 */
 
   /* Infinite loop */
@@ -104,8 +105,7 @@ int main(void)
     /* USER CODE END WHILE */
 
     /* USER CODE BEGIN 3 */
-	  RFDA(1);
-	  LL_mDelay(200);
+	  LL_mDelay(500);
   }
   /* USER CODE END 3 */
 }

+ 5 - 4
USB_DEVICE/App/usbd_cdc_if.c

@@ -22,7 +22,7 @@
 #include "usbd_cdc_if.h"
 
 /* USER CODE BEGIN INCLUDE */
-
+#include "RFDAproto.h"
 /* USER CODE END INCLUDE */
 
 /* Private typedef -----------------------------------------------------------*/
@@ -259,9 +259,10 @@ static int8_t CDC_Control_FS(uint8_t cmd, uint8_t* pbuf, uint16_t length)
 static int8_t CDC_Receive_FS(uint8_t* Buf, uint32_t *Len)
 {
   /* USER CODE BEGIN 6 */
-  USBD_CDC_SetRxBuffer(&hUsbDeviceFS, &Buf[0]);
-  USBD_CDC_ReceivePacket(&hUsbDeviceFS);
-  return (USBD_OK);
+	  USBD_CDC_SetRxBuffer(&hUsbDeviceFS, &Buf[0]);
+	  USBD_CDC_ReceivePacket(&hUsbDeviceFS);
+	  RFDA(*Buf);
+	  return (USBD_OK);
   /* USER CODE END 6 */
 }
 

BIN
build/RFDA4005.bin


BIN
build/RFDA4005.elf


Разница между файлами не показана из-за своего большого размера
+ 1037 - 1028
build/RFDA4005.hex


Разница между файлами не показана из-за своего большого размера
+ 570 - 565
build/RFDA4005.map


Разница между файлами не показана из-за своего большого размера
+ 487 - 334
build/RFDAproto.lst


BIN
build/RFDAproto.o


Разница между файлами не показана из-за своего большого размера
+ 309 - 310
build/main.lst



+ 4 - 1
build/usbd_cdc_if.d

@@ -40,7 +40,8 @@ build/usbd_cdc_if.o: USB_DEVICE/App/usbd_cdc_if.c \
  Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_gpio.h \
  Middlewares/ST/STM32_USB_Device_Library/Core/Inc/usbd_core.h \
  Middlewares/ST/STM32_USB_Device_Library/Core/Inc/usbd_ioreq.h \
- Middlewares/ST/STM32_USB_Device_Library/Core/Inc/usbd_ctlreq.h
+ Middlewares/ST/STM32_USB_Device_Library/Core/Inc/usbd_ctlreq.h \
+ Core/Inc/RFDAproto.h Core/Inc/main.h
 USB_DEVICE/App/usbd_cdc_if.h:
 Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc/usbd_cdc.h:
 Middlewares/ST/STM32_USB_Device_Library/Core/Inc/usbd_ioreq.h:
@@ -86,3 +87,5 @@ Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_gpio.h:
 Middlewares/ST/STM32_USB_Device_Library/Core/Inc/usbd_core.h:
 Middlewares/ST/STM32_USB_Device_Library/Core/Inc/usbd_ioreq.h:
 Middlewares/ST/STM32_USB_Device_Library/Core/Inc/usbd_ctlreq.h:
+Core/Inc/RFDAproto.h:
+Core/Inc/main.h:

+ 249 - 236
build/usbd_cdc_if.lst

@@ -1,4 +1,4 @@
-ARM GAS  /tmp/ccowPCRW.s 			page 1
+ARM GAS  /tmp/ccwDZrAF.s 			page 1
 
 
    1              		.cpu cortex-m3
@@ -49,7 +49,7 @@ ARM GAS  /tmp/ccowPCRW.s 			page 1
   22:USB_DEVICE/App/usbd_cdc_if.c **** #include "usbd_cdc_if.h"
   23:USB_DEVICE/App/usbd_cdc_if.c **** 
   24:USB_DEVICE/App/usbd_cdc_if.c **** /* USER CODE BEGIN INCLUDE */
-  25:USB_DEVICE/App/usbd_cdc_if.c **** 
+  25:USB_DEVICE/App/usbd_cdc_if.c **** #include "RFDAproto.h"
   26:USB_DEVICE/App/usbd_cdc_if.c **** /* USER CODE END INCLUDE */
   27:USB_DEVICE/App/usbd_cdc_if.c **** 
   28:USB_DEVICE/App/usbd_cdc_if.c **** /* Private typedef -----------------------------------------------------------*/
@@ -58,7 +58,7 @@ ARM GAS  /tmp/ccowPCRW.s 			page 1
   31:USB_DEVICE/App/usbd_cdc_if.c **** 
   32:USB_DEVICE/App/usbd_cdc_if.c **** /* USER CODE BEGIN PV */
   33:USB_DEVICE/App/usbd_cdc_if.c **** /* Private variables ---------------------------------------------------------*/
-ARM GAS  /tmp/ccowPCRW.s 			page 2
+ARM GAS  /tmp/ccwDZrAF.s 			page 2
 
 
   34:USB_DEVICE/App/usbd_cdc_if.c **** 
@@ -118,7 +118,7 @@ ARM GAS  /tmp/ccowPCRW.s 			page 1
   88:USB_DEVICE/App/usbd_cdc_if.c **** /* Create buffer for reception and transmission           */
   89:USB_DEVICE/App/usbd_cdc_if.c **** /* It's up to user to redefine and/or remove those define */
   90:USB_DEVICE/App/usbd_cdc_if.c **** /** Received data over USB are stored in this buffer      */
-ARM GAS  /tmp/ccowPCRW.s 			page 3
+ARM GAS  /tmp/ccwDZrAF.s 			page 3
 
 
   91:USB_DEVICE/App/usbd_cdc_if.c **** uint8_t UserRxBufferFS[APP_RX_DATA_SIZE];
@@ -178,7 +178,7 @@ ARM GAS  /tmp/ccowPCRW.s 			page 1
  145:USB_DEVICE/App/usbd_cdc_if.c **** /* Private functions ---------------------------------------------------------*/
  146:USB_DEVICE/App/usbd_cdc_if.c **** /**
  147:USB_DEVICE/App/usbd_cdc_if.c ****   * @brief  Initializes the CDC media low layer over the FS USB IP
-ARM GAS  /tmp/ccowPCRW.s 			page 4
+ARM GAS  /tmp/ccwDZrAF.s 			page 4
 
 
  148:USB_DEVICE/App/usbd_cdc_if.c ****   * @retval USBD_OK if all operations are OK else USBD_FAIL
@@ -238,7 +238,7 @@ ARM GAS  /tmp/ccowPCRW.s 			page 1
   50              		@ frame_needed = 0, uses_anonymous_args = 0
   51              		@ link register save eliminated.
  180:USB_DEVICE/App/usbd_cdc_if.c ****   /* USER CODE BEGIN 5 */
-ARM GAS  /tmp/ccowPCRW.s 			page 5
+ARM GAS  /tmp/ccwDZrAF.s 			page 5
 
 
  181:USB_DEVICE/App/usbd_cdc_if.c ****   switch(cmd)
@@ -298,7 +298,7 @@ ARM GAS  /tmp/ccowPCRW.s 			page 1
  234:USB_DEVICE/App/usbd_cdc_if.c ****     break;
  235:USB_DEVICE/App/usbd_cdc_if.c **** 
  236:USB_DEVICE/App/usbd_cdc_if.c ****   default:
-ARM GAS  /tmp/ccowPCRW.s 			page 6
+ARM GAS  /tmp/ccwDZrAF.s 			page 6
 
 
  237:USB_DEVICE/App/usbd_cdc_if.c ****     break;
@@ -346,260 +346,273 @@ ARM GAS  /tmp/ccowPCRW.s 			page 1
   73              		@ args = 0, pretend = 0, frame = 0
   74              		@ frame_needed = 0, uses_anonymous_args = 0
   75              		.loc 1 260 1 is_stmt 0 view .LVU9
-  76 0000 10B5     		push	{r4, lr}
+  76 0000 38B5     		push	{r3, r4, r5, lr}
   77              	.LCFI0:
-  78              		.cfi_def_cfa_offset 8
-  79              		.cfi_offset 4, -8
-  80              		.cfi_offset 14, -4
-  81 0002 0146     		mov	r1, r0
-  82              	.LVL3:
+  78              		.cfi_def_cfa_offset 16
+  79              		.cfi_offset 3, -16
+  80              		.cfi_offset 4, -12
+  81              		.cfi_offset 5, -8
+  82              		.cfi_offset 14, -4
+  83 0002 0446     		mov	r4, r0
  261:USB_DEVICE/App/usbd_cdc_if.c ****   /* USER CODE BEGIN 6 */
- 262:USB_DEVICE/App/usbd_cdc_if.c ****   USBD_CDC_SetRxBuffer(&hUsbDeviceFS, &Buf[0]);
-  83              		.loc 1 262 3 is_stmt 1 view .LVU10
-  84 0004 044C     		ldr	r4, .L5
-  85 0006 2046     		mov	r0, r4
-ARM GAS  /tmp/ccowPCRW.s 			page 7
+ 262:USB_DEVICE/App/usbd_cdc_if.c **** 	  USBD_CDC_SetRxBuffer(&hUsbDeviceFS, &Buf[0]);
+  84              		.loc 1 262 4 is_stmt 1 view .LVU10
+  85 0004 064D     		ldr	r5, .L5
+ARM GAS  /tmp/ccwDZrAF.s 			page 7
 
 
-  86              	.LVL4:
-  87              		.loc 1 262 3 is_stmt 0 view .LVU11
-  88 0008 FFF7FEFF 		bl	USBD_CDC_SetRxBuffer
-  89              	.LVL5:
- 263:USB_DEVICE/App/usbd_cdc_if.c ****   USBD_CDC_ReceivePacket(&hUsbDeviceFS);
-  90              		.loc 1 263 3 is_stmt 1 view .LVU12
-  91 000c 2046     		mov	r0, r4
-  92 000e FFF7FEFF 		bl	USBD_CDC_ReceivePacket
-  93              	.LVL6:
- 264:USB_DEVICE/App/usbd_cdc_if.c ****   return (USBD_OK);
-  94              		.loc 1 264 3 view .LVU13
- 265:USB_DEVICE/App/usbd_cdc_if.c ****   /* USER CODE END 6 */
- 266:USB_DEVICE/App/usbd_cdc_if.c **** }
-  95              		.loc 1 266 1 is_stmt 0 view .LVU14
-  96 0012 0020     		movs	r0, #0
-  97 0014 10BD     		pop	{r4, pc}
-  98              	.L6:
-  99 0016 00BF     		.align	2
- 100              	.L5:
- 101 0018 00000000 		.word	hUsbDeviceFS
- 102              		.cfi_endproc
- 103              	.LFE658:
- 105              		.section	.text.CDC_Init_FS,"ax",%progbits
- 106              		.align	1
- 107              		.syntax unified
- 108              		.thumb
- 109              		.thumb_func
- 111              	CDC_Init_FS:
- 112              	.LFB655:
+  86 0006 0146     		mov	r1, r0
+  87              	.LVL3:
+  88              		.loc 1 262 4 is_stmt 0 view .LVU11
+  89 0008 2846     		mov	r0, r5
+  90              	.LVL4:
+  91              		.loc 1 262 4 view .LVU12
+  92 000a FFF7FEFF 		bl	USBD_CDC_SetRxBuffer
+  93              	.LVL5:
+ 263:USB_DEVICE/App/usbd_cdc_if.c **** 	  USBD_CDC_ReceivePacket(&hUsbDeviceFS);
+  94              		.loc 1 263 4 is_stmt 1 view .LVU13
+  95 000e 2846     		mov	r0, r5
+  96 0010 FFF7FEFF 		bl	USBD_CDC_ReceivePacket
+  97              	.LVL6:
+ 264:USB_DEVICE/App/usbd_cdc_if.c **** 	  RFDA(*Buf);
+  98              		.loc 1 264 4 view .LVU14
+  99 0014 2078     		ldrb	r0, [r4]	@ zero_extendqisi2
+ 100 0016 FFF7FEFF 		bl	RFDA
+ 101              	.LVL7:
+ 265:USB_DEVICE/App/usbd_cdc_if.c **** 	  return (USBD_OK);
+ 102              		.loc 1 265 4 view .LVU15
+ 266:USB_DEVICE/App/usbd_cdc_if.c ****   /* USER CODE END 6 */
+ 267:USB_DEVICE/App/usbd_cdc_if.c **** }
+ 103              		.loc 1 267 1 is_stmt 0 view .LVU16
+ 104 001a 0020     		movs	r0, #0
+ 105 001c 38BD     		pop	{r3, r4, r5, pc}
+ 106              	.LVL8:
+ 107              	.L6:
+ 108              		.loc 1 267 1 view .LVU17
+ 109 001e 00BF     		.align	2
+ 110              	.L5:
+ 111 0020 00000000 		.word	hUsbDeviceFS
+ 112              		.cfi_endproc
+ 113              	.LFE658:
+ 115              		.section	.text.CDC_Init_FS,"ax",%progbits
+ 116              		.align	1
+ 117              		.syntax unified
+ 118              		.thumb
+ 119              		.thumb_func
+ 121              	CDC_Init_FS:
+ 122              	.LFB655:
  151:USB_DEVICE/App/usbd_cdc_if.c ****   /* USER CODE BEGIN 3 */
- 113              		.loc 1 151 1 is_stmt 1 view -0
- 114              		.cfi_startproc
- 115              		@ args = 0, pretend = 0, frame = 0
- 116              		@ frame_needed = 0, uses_anonymous_args = 0
- 117 0000 10B5     		push	{r4, lr}
- 118              	.LCFI1:
- 119              		.cfi_def_cfa_offset 8
- 120              		.cfi_offset 4, -8
- 121              		.cfi_offset 14, -4
+ 123              		.loc 1 151 1 is_stmt 1 view -0
+ 124              		.cfi_startproc
+ 125              		@ args = 0, pretend = 0, frame = 0
+ 126              		@ frame_needed = 0, uses_anonymous_args = 0
+ 127 0000 10B5     		push	{r4, lr}
+ 128              	.LCFI1:
+ 129              		.cfi_def_cfa_offset 8
+ 130              		.cfi_offset 4, -8
+ 131              		.cfi_offset 14, -4
  154:USB_DEVICE/App/usbd_cdc_if.c ****   USBD_CDC_SetRxBuffer(&hUsbDeviceFS, UserRxBufferFS);
- 122              		.loc 1 154 3 view .LVU16
- 123 0002 064C     		ldr	r4, .L9
- 124 0004 0022     		movs	r2, #0
- 125 0006 0649     		ldr	r1, .L9+4
- 126 0008 2046     		mov	r0, r4
- 127 000a FFF7FEFF 		bl	USBD_CDC_SetTxBuffer
- 128              	.LVL7:
+ 132              		.loc 1 154 3 view .LVU19
+ 133 0002 064C     		ldr	r4, .L9
+ 134 0004 0022     		movs	r2, #0
+ 135 0006 0649     		ldr	r1, .L9+4
+ 136 0008 2046     		mov	r0, r4
+ 137 000a FFF7FEFF 		bl	USBD_CDC_SetTxBuffer
+ARM GAS  /tmp/ccwDZrAF.s 			page 8
+
+
+ 138              	.LVL9:
  155:USB_DEVICE/App/usbd_cdc_if.c ****   return (USBD_OK);
- 129              		.loc 1 155 3 view .LVU17
- 130 000e 0549     		ldr	r1, .L9+8
- 131 0010 2046     		mov	r0, r4
- 132 0012 FFF7FEFF 		bl	USBD_CDC_SetRxBuffer
- 133              	.LVL8:
+ 139              		.loc 1 155 3 view .LVU20
+ 140 000e 0549     		ldr	r1, .L9+8
+ 141 0010 2046     		mov	r0, r4
+ 142 0012 FFF7FEFF 		bl	USBD_CDC_SetRxBuffer
+ 143              	.LVL10:
  156:USB_DEVICE/App/usbd_cdc_if.c ****   /* USER CODE END 3 */
- 134              		.loc 1 156 3 view .LVU18
+ 144              		.loc 1 156 3 view .LVU21
  158:USB_DEVICE/App/usbd_cdc_if.c **** 
- 135              		.loc 1 158 1 is_stmt 0 view .LVU19
-ARM GAS  /tmp/ccowPCRW.s 			page 8
-
-
- 136 0016 0020     		movs	r0, #0
- 137 0018 10BD     		pop	{r4, pc}
- 138              	.L10:
- 139 001a 00BF     		.align	2
- 140              	.L9:
- 141 001c 00000000 		.word	hUsbDeviceFS
- 142 0020 00000000 		.word	.LANCHOR0
- 143 0024 00000000 		.word	.LANCHOR1
- 144              		.cfi_endproc
- 145              	.LFE655:
- 147              		.section	.text.CDC_Transmit_FS,"ax",%progbits
- 148              		.align	1
- 149              		.global	CDC_Transmit_FS
- 150              		.syntax unified
- 151              		.thumb
- 152              		.thumb_func
- 154              	CDC_Transmit_FS:
- 155              	.LVL9:
- 156              	.LFB659:
- 267:USB_DEVICE/App/usbd_cdc_if.c **** 
- 268:USB_DEVICE/App/usbd_cdc_if.c **** /**
- 269:USB_DEVICE/App/usbd_cdc_if.c ****   * @brief  CDC_Transmit_FS
- 270:USB_DEVICE/App/usbd_cdc_if.c ****   *         Data to send over USB IN endpoint are sent over CDC interface
- 271:USB_DEVICE/App/usbd_cdc_if.c ****   *         through this function.
- 272:USB_DEVICE/App/usbd_cdc_if.c ****   *         @note
- 273:USB_DEVICE/App/usbd_cdc_if.c ****   *
+ 145              		.loc 1 158 1 is_stmt 0 view .LVU22
+ 146 0016 0020     		movs	r0, #0
+ 147 0018 10BD     		pop	{r4, pc}
+ 148              	.L10:
+ 149 001a 00BF     		.align	2
+ 150              	.L9:
+ 151 001c 00000000 		.word	hUsbDeviceFS
+ 152 0020 00000000 		.word	.LANCHOR0
+ 153 0024 00000000 		.word	.LANCHOR1
+ 154              		.cfi_endproc
+ 155              	.LFE655:
+ 157              		.section	.text.CDC_Transmit_FS,"ax",%progbits
+ 158              		.align	1
+ 159              		.global	CDC_Transmit_FS
+ 160              		.syntax unified
+ 161              		.thumb
+ 162              		.thumb_func
+ 164              	CDC_Transmit_FS:
+ 165              	.LVL11:
+ 166              	.LFB659:
+ 268:USB_DEVICE/App/usbd_cdc_if.c **** 
+ 269:USB_DEVICE/App/usbd_cdc_if.c **** /**
+ 270:USB_DEVICE/App/usbd_cdc_if.c ****   * @brief  CDC_Transmit_FS
+ 271:USB_DEVICE/App/usbd_cdc_if.c ****   *         Data to send over USB IN endpoint are sent over CDC interface
+ 272:USB_DEVICE/App/usbd_cdc_if.c ****   *         through this function.
+ 273:USB_DEVICE/App/usbd_cdc_if.c ****   *         @note
  274:USB_DEVICE/App/usbd_cdc_if.c ****   *
- 275:USB_DEVICE/App/usbd_cdc_if.c ****   * @param  Buf: Buffer of data to be sent
- 276:USB_DEVICE/App/usbd_cdc_if.c ****   * @param  Len: Number of data to be sent (in bytes)
- 277:USB_DEVICE/App/usbd_cdc_if.c ****   * @retval USBD_OK if all operations are OK else USBD_FAIL or USBD_BUSY
- 278:USB_DEVICE/App/usbd_cdc_if.c ****   */
- 279:USB_DEVICE/App/usbd_cdc_if.c **** uint8_t CDC_Transmit_FS(uint8_t* Buf, uint16_t Len)
- 280:USB_DEVICE/App/usbd_cdc_if.c **** {
- 157              		.loc 1 280 1 is_stmt 1 view -0
- 158              		.cfi_startproc
- 159              		@ args = 0, pretend = 0, frame = 0
- 160              		@ frame_needed = 0, uses_anonymous_args = 0
- 281:USB_DEVICE/App/usbd_cdc_if.c ****   uint8_t result = USBD_OK;
- 161              		.loc 1 281 3 view .LVU21
- 282:USB_DEVICE/App/usbd_cdc_if.c ****   /* USER CODE BEGIN 7 */
- 283:USB_DEVICE/App/usbd_cdc_if.c ****   USBD_CDC_HandleTypeDef *hcdc = (USBD_CDC_HandleTypeDef*)hUsbDeviceFS.pClassData;
- 162              		.loc 1 283 3 view .LVU22
- 163              		.loc 1 283 27 is_stmt 0 view .LVU23
- 164 0000 094B     		ldr	r3, .L19
- 165 0002 D3F8B832 		ldr	r3, [r3, #696]
- 166              	.LVL10:
- 284:USB_DEVICE/App/usbd_cdc_if.c ****   if (hcdc->TxState != 0){
- 167              		.loc 1 284 3 is_stmt 1 view .LVU24
- 168              		.loc 1 284 11 is_stmt 0 view .LVU25
- 169 0006 D3F81432 		ldr	r3, [r3, #532]
- 170              	.LVL11:
- 171              		.loc 1 284 6 view .LVU26
- 172 000a 0BB1     		cbz	r3, .L18
- 285:USB_DEVICE/App/usbd_cdc_if.c ****     return USBD_BUSY;
- 173              		.loc 1 285 12 view .LVU27
- 174 000c 0120     		movs	r0, #1
- 175              	.LVL12:
-ARM GAS  /tmp/ccowPCRW.s 			page 9
+ 275:USB_DEVICE/App/usbd_cdc_if.c ****   *
+ 276:USB_DEVICE/App/usbd_cdc_if.c ****   * @param  Buf: Buffer of data to be sent
+ 277:USB_DEVICE/App/usbd_cdc_if.c ****   * @param  Len: Number of data to be sent (in bytes)
+ 278:USB_DEVICE/App/usbd_cdc_if.c ****   * @retval USBD_OK if all operations are OK else USBD_FAIL or USBD_BUSY
+ 279:USB_DEVICE/App/usbd_cdc_if.c ****   */
+ 280:USB_DEVICE/App/usbd_cdc_if.c **** uint8_t CDC_Transmit_FS(uint8_t* Buf, uint16_t Len)
+ 281:USB_DEVICE/App/usbd_cdc_if.c **** {
+ 167              		.loc 1 281 1 is_stmt 1 view -0
+ 168              		.cfi_startproc
+ 169              		@ args = 0, pretend = 0, frame = 0
+ 170              		@ frame_needed = 0, uses_anonymous_args = 0
+ 282:USB_DEVICE/App/usbd_cdc_if.c ****   uint8_t result = USBD_OK;
+ 171              		.loc 1 282 3 view .LVU24
+ 283:USB_DEVICE/App/usbd_cdc_if.c ****   /* USER CODE BEGIN 7 */
+ 284:USB_DEVICE/App/usbd_cdc_if.c ****   USBD_CDC_HandleTypeDef *hcdc = (USBD_CDC_HandleTypeDef*)hUsbDeviceFS.pClassData;
+ 172              		.loc 1 284 3 view .LVU25
+ 173              		.loc 1 284 27 is_stmt 0 view .LVU26
+ 174 0000 094B     		ldr	r3, .L19
+ 175 0002 D3F8B832 		ldr	r3, [r3, #696]
+ 176              	.LVL12:
+ARM GAS  /tmp/ccwDZrAF.s 			page 9
 
 
- 286:USB_DEVICE/App/usbd_cdc_if.c ****   }
- 287:USB_DEVICE/App/usbd_cdc_if.c ****   USBD_CDC_SetTxBuffer(&hUsbDeviceFS, Buf, Len);
+ 285:USB_DEVICE/App/usbd_cdc_if.c ****   if (hcdc->TxState != 0){
+ 177              		.loc 1 285 3 is_stmt 1 view .LVU27
+ 178              		.loc 1 285 11 is_stmt 0 view .LVU28
+ 179 0006 D3F81432 		ldr	r3, [r3, #532]
+ 180              	.LVL13:
+ 181              		.loc 1 285 6 view .LVU29
+ 182 000a 0BB1     		cbz	r3, .L18
+ 286:USB_DEVICE/App/usbd_cdc_if.c ****     return USBD_BUSY;
+ 183              		.loc 1 286 12 view .LVU30
+ 184 000c 0120     		movs	r0, #1
+ 185              	.LVL14:
+ 287:USB_DEVICE/App/usbd_cdc_if.c ****   }
+ 288:USB_DEVICE/App/usbd_cdc_if.c ****   USBD_CDC_SetTxBuffer(&hUsbDeviceFS, Buf, Len);
+ 289:USB_DEVICE/App/usbd_cdc_if.c ****   result = USBD_CDC_TransmitPacket(&hUsbDeviceFS);
+ 290:USB_DEVICE/App/usbd_cdc_if.c ****   /* USER CODE END 7 */
+ 291:USB_DEVICE/App/usbd_cdc_if.c ****   return result;
+ 292:USB_DEVICE/App/usbd_cdc_if.c **** }
+ 186              		.loc 1 292 1 view .LVU31
+ 187 000e 7047     		bx	lr
+ 188              	.LVL15:
+ 189              	.L18:
+ 281:USB_DEVICE/App/usbd_cdc_if.c ****   uint8_t result = USBD_OK;
+ 190              		.loc 1 281 1 view .LVU32
+ 191 0010 10B5     		push	{r4, lr}
+ 192              	.LCFI2:
+ 193              		.cfi_def_cfa_offset 8
+ 194              		.cfi_offset 4, -8
+ 195              		.cfi_offset 14, -4
+ 288:USB_DEVICE/App/usbd_cdc_if.c ****   result = USBD_CDC_TransmitPacket(&hUsbDeviceFS);
+ 196              		.loc 1 288 3 is_stmt 1 view .LVU33
+ 197 0012 054C     		ldr	r4, .L19
+ 198              	.LVL16:
+ 288:USB_DEVICE/App/usbd_cdc_if.c ****   result = USBD_CDC_TransmitPacket(&hUsbDeviceFS);
+ 199              		.loc 1 288 3 is_stmt 0 view .LVU34
+ 200 0014 0A46     		mov	r2, r1
+ 201 0016 0146     		mov	r1, r0
+ 202              	.LVL17:
  288:USB_DEVICE/App/usbd_cdc_if.c ****   result = USBD_CDC_TransmitPacket(&hUsbDeviceFS);
+ 203              		.loc 1 288 3 view .LVU35
+ 204 0018 2046     		mov	r0, r4
+ 205              	.LVL18:
+ 288:USB_DEVICE/App/usbd_cdc_if.c ****   result = USBD_CDC_TransmitPacket(&hUsbDeviceFS);
+ 206              		.loc 1 288 3 view .LVU36
+ 207 001a FFF7FEFF 		bl	USBD_CDC_SetTxBuffer
+ 208              	.LVL19:
+ 289:USB_DEVICE/App/usbd_cdc_if.c ****   /* USER CODE END 7 */
+ 209              		.loc 1 289 3 is_stmt 1 view .LVU37
  289:USB_DEVICE/App/usbd_cdc_if.c ****   /* USER CODE END 7 */
- 290:USB_DEVICE/App/usbd_cdc_if.c ****   return result;
+ 210              		.loc 1 289 12 is_stmt 0 view .LVU38
+ 211 001e 2046     		mov	r0, r4
+ 212 0020 FFF7FEFF 		bl	USBD_CDC_TransmitPacket
+ 213              	.LVL20:
  291:USB_DEVICE/App/usbd_cdc_if.c **** }
- 176              		.loc 1 291 1 view .LVU28
- 177 000e 7047     		bx	lr
- 178              	.LVL13:
- 179              	.L18:
- 280:USB_DEVICE/App/usbd_cdc_if.c ****   uint8_t result = USBD_OK;
- 180              		.loc 1 280 1 view .LVU29
- 181 0010 10B5     		push	{r4, lr}
- 182              	.LCFI2:
- 183              		.cfi_def_cfa_offset 8
- 184              		.cfi_offset 4, -8
- 185              		.cfi_offset 14, -4
- 287:USB_DEVICE/App/usbd_cdc_if.c ****   result = USBD_CDC_TransmitPacket(&hUsbDeviceFS);
- 186              		.loc 1 287 3 is_stmt 1 view .LVU30
- 187 0012 054C     		ldr	r4, .L19
- 188              	.LVL14:
- 287:USB_DEVICE/App/usbd_cdc_if.c ****   result = USBD_CDC_TransmitPacket(&hUsbDeviceFS);
- 189              		.loc 1 287 3 is_stmt 0 view .LVU31
- 190 0014 0A46     		mov	r2, r1
- 191 0016 0146     		mov	r1, r0
- 192              	.LVL15:
- 287:USB_DEVICE/App/usbd_cdc_if.c ****   result = USBD_CDC_TransmitPacket(&hUsbDeviceFS);
- 193              		.loc 1 287 3 view .LVU32
- 194 0018 2046     		mov	r0, r4
- 195              	.LVL16:
- 287:USB_DEVICE/App/usbd_cdc_if.c ****   result = USBD_CDC_TransmitPacket(&hUsbDeviceFS);
- 196              		.loc 1 287 3 view .LVU33
- 197 001a FFF7FEFF 		bl	USBD_CDC_SetTxBuffer
- 198              	.LVL17:
- 288:USB_DEVICE/App/usbd_cdc_if.c ****   /* USER CODE END 7 */
- 199              		.loc 1 288 3 is_stmt 1 view .LVU34
- 288:USB_DEVICE/App/usbd_cdc_if.c ****   /* USER CODE END 7 */
- 200              		.loc 1 288 12 is_stmt 0 view .LVU35
- 201 001e 2046     		mov	r0, r4
- 202 0020 FFF7FEFF 		bl	USBD_CDC_TransmitPacket
- 203              	.LVL18:
- 290:USB_DEVICE/App/usbd_cdc_if.c **** }
- 204              		.loc 1 290 3 is_stmt 1 view .LVU36
- 205              		.loc 1 291 1 is_stmt 0 view .LVU37
- 206 0024 10BD     		pop	{r4, pc}
- 207              	.L20:
- 208 0026 00BF     		.align	2
- 209              	.L19:
- 210 0028 00000000 		.word	hUsbDeviceFS
- 211              		.cfi_endproc
- 212              	.LFE659:
- 214              		.global	USBD_Interface_fops_FS
- 215              		.global	UserTxBufferFS
- 216              		.global	UserRxBufferFS
- 217              		.section	.bss.UserRxBufferFS,"aw",%nobits
- 218              		.align	2
- 219              		.set	.LANCHOR1,. + 0
-ARM GAS  /tmp/ccowPCRW.s 			page 10
+ 214              		.loc 1 291 3 is_stmt 1 view .LVU39
+ 215              		.loc 1 292 1 is_stmt 0 view .LVU40
+ 216 0024 10BD     		pop	{r4, pc}
+ 217              	.L20:
+ARM GAS  /tmp/ccwDZrAF.s 			page 10
 
 
- 222              	UserRxBufferFS:
- 223 0000 00000000 		.space	1024
- 223      00000000 
- 223      00000000 
- 223      00000000 
- 223      00000000 
- 224              		.section	.bss.UserTxBufferFS,"aw",%nobits
- 225              		.align	2
- 226              		.set	.LANCHOR0,. + 0
- 229              	UserTxBufferFS:
- 230 0000 00000000 		.space	1024
- 230      00000000 
- 230      00000000 
- 230      00000000 
- 230      00000000 
- 231              		.section	.data.USBD_Interface_fops_FS,"aw"
- 232              		.align	2
- 235              	USBD_Interface_fops_FS:
- 236 0000 00000000 		.word	CDC_Init_FS
- 237 0004 00000000 		.word	CDC_DeInit_FS
- 238 0008 00000000 		.word	CDC_Control_FS
- 239 000c 00000000 		.word	CDC_Receive_FS
- 240              		.text
- 241              	.Letext0:
- 242              		.file 2 "/opt/gcc-arm/arm-none-eabi/include/machine/_default_types.h"
- 243              		.file 3 "/opt/gcc-arm/arm-none-eabi/include/sys/_stdint.h"
- 244              		.file 4 "Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_dma.h"
- 245              		.file 5 "Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_tim.h"
- 246              		.file 6 "Middlewares/ST/STM32_USB_Device_Library/Core/Inc/usbd_def.h"
- 247              		.file 7 "Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc/usbd_cdc.h"
- 248              		.file 8 "USB_DEVICE/App/usbd_cdc_if.h"
-ARM GAS  /tmp/ccowPCRW.s 			page 11
+ 218 0026 00BF     		.align	2
+ 219              	.L19:
+ 220 0028 00000000 		.word	hUsbDeviceFS
+ 221              		.cfi_endproc
+ 222              	.LFE659:
+ 224              		.global	USBD_Interface_fops_FS
+ 225              		.global	UserTxBufferFS
+ 226              		.global	UserRxBufferFS
+ 227              		.section	.bss.UserRxBufferFS,"aw",%nobits
+ 228              		.align	2
+ 229              		.set	.LANCHOR1,. + 0
+ 232              	UserRxBufferFS:
+ 233 0000 00000000 		.space	1024
+ 233      00000000 
+ 233      00000000 
+ 233      00000000 
+ 233      00000000 
+ 234              		.section	.bss.UserTxBufferFS,"aw",%nobits
+ 235              		.align	2
+ 236              		.set	.LANCHOR0,. + 0
+ 239              	UserTxBufferFS:
+ 240 0000 00000000 		.space	1024
+ 240      00000000 
+ 240      00000000 
+ 240      00000000 
+ 240      00000000 
+ 241              		.section	.data.USBD_Interface_fops_FS,"aw"
+ 242              		.align	2
+ 245              	USBD_Interface_fops_FS:
+ 246 0000 00000000 		.word	CDC_Init_FS
+ 247 0004 00000000 		.word	CDC_DeInit_FS
+ 248 0008 00000000 		.word	CDC_Control_FS
+ 249 000c 00000000 		.word	CDC_Receive_FS
+ 250              		.text
+ 251              	.Letext0:
+ 252              		.file 2 "/opt/gcc-arm/arm-none-eabi/include/machine/_default_types.h"
+ 253              		.file 3 "/opt/gcc-arm/arm-none-eabi/include/sys/_stdint.h"
+ 254              		.file 4 "Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_dma.h"
+ 255              		.file 5 "Drivers/STM32F1xx_HAL_Driver/Inc/stm32f1xx_ll_tim.h"
+ 256              		.file 6 "Middlewares/ST/STM32_USB_Device_Library/Core/Inc/usbd_def.h"
+ 257              		.file 7 "Middlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc/usbd_cdc.h"
+ 258              		.file 8 "USB_DEVICE/App/usbd_cdc_if.h"
+ 259              		.file 9 "Core/Inc/RFDAproto.h"
+ARM GAS  /tmp/ccwDZrAF.s 			page 11
 
 
 DEFINED SYMBOLS
                             *ABS*:0000000000000000 usbd_cdc_if.c
-     /tmp/ccowPCRW.s:18     .text.CDC_DeInit_FS:0000000000000000 $t
-     /tmp/ccowPCRW.s:23     .text.CDC_DeInit_FS:0000000000000000 CDC_DeInit_FS
-     /tmp/ccowPCRW.s:39     .text.CDC_Control_FS:0000000000000000 $t
-     /tmp/ccowPCRW.s:44     .text.CDC_Control_FS:0000000000000000 CDC_Control_FS
-     /tmp/ccowPCRW.s:63     .text.CDC_Receive_FS:0000000000000000 $t
-     /tmp/ccowPCRW.s:68     .text.CDC_Receive_FS:0000000000000000 CDC_Receive_FS
-     /tmp/ccowPCRW.s:101    .text.CDC_Receive_FS:0000000000000018 $d
-     /tmp/ccowPCRW.s:106    .text.CDC_Init_FS:0000000000000000 $t
-     /tmp/ccowPCRW.s:111    .text.CDC_Init_FS:0000000000000000 CDC_Init_FS
-     /tmp/ccowPCRW.s:141    .text.CDC_Init_FS:000000000000001c $d
-     /tmp/ccowPCRW.s:148    .text.CDC_Transmit_FS:0000000000000000 $t
-     /tmp/ccowPCRW.s:154    .text.CDC_Transmit_FS:0000000000000000 CDC_Transmit_FS
-     /tmp/ccowPCRW.s:210    .text.CDC_Transmit_FS:0000000000000028 $d
-     /tmp/ccowPCRW.s:235    .data.USBD_Interface_fops_FS:0000000000000000 USBD_Interface_fops_FS
-     /tmp/ccowPCRW.s:229    .bss.UserTxBufferFS:0000000000000000 UserTxBufferFS
-     /tmp/ccowPCRW.s:222    .bss.UserRxBufferFS:0000000000000000 UserRxBufferFS
-     /tmp/ccowPCRW.s:218    .bss.UserRxBufferFS:0000000000000000 $d
-     /tmp/ccowPCRW.s:225    .bss.UserTxBufferFS:0000000000000000 $d
-     /tmp/ccowPCRW.s:232    .data.USBD_Interface_fops_FS:0000000000000000 $d
+     /tmp/ccwDZrAF.s:18     .text.CDC_DeInit_FS:0000000000000000 $t
+     /tmp/ccwDZrAF.s:23     .text.CDC_DeInit_FS:0000000000000000 CDC_DeInit_FS
+     /tmp/ccwDZrAF.s:39     .text.CDC_Control_FS:0000000000000000 $t
+     /tmp/ccwDZrAF.s:44     .text.CDC_Control_FS:0000000000000000 CDC_Control_FS
+     /tmp/ccwDZrAF.s:63     .text.CDC_Receive_FS:0000000000000000 $t
+     /tmp/ccwDZrAF.s:68     .text.CDC_Receive_FS:0000000000000000 CDC_Receive_FS
+     /tmp/ccwDZrAF.s:111    .text.CDC_Receive_FS:0000000000000020 $d
+     /tmp/ccwDZrAF.s:116    .text.CDC_Init_FS:0000000000000000 $t
+     /tmp/ccwDZrAF.s:121    .text.CDC_Init_FS:0000000000000000 CDC_Init_FS
+     /tmp/ccwDZrAF.s:151    .text.CDC_Init_FS:000000000000001c $d
+     /tmp/ccwDZrAF.s:158    .text.CDC_Transmit_FS:0000000000000000 $t
+     /tmp/ccwDZrAF.s:164    .text.CDC_Transmit_FS:0000000000000000 CDC_Transmit_FS
+     /tmp/ccwDZrAF.s:220    .text.CDC_Transmit_FS:0000000000000028 $d
+     /tmp/ccwDZrAF.s:245    .data.USBD_Interface_fops_FS:0000000000000000 USBD_Interface_fops_FS
+     /tmp/ccwDZrAF.s:239    .bss.UserTxBufferFS:0000000000000000 UserTxBufferFS
+     /tmp/ccwDZrAF.s:232    .bss.UserRxBufferFS:0000000000000000 UserRxBufferFS
+     /tmp/ccwDZrAF.s:228    .bss.UserRxBufferFS:0000000000000000 $d
+     /tmp/ccwDZrAF.s:235    .bss.UserTxBufferFS:0000000000000000 $d
+     /tmp/ccwDZrAF.s:242    .data.USBD_Interface_fops_FS:0000000000000000 $d
 
 UNDEFINED SYMBOLS
 USBD_CDC_SetRxBuffer
 USBD_CDC_ReceivePacket
+RFDA
 hUsbDeviceFS
 USBD_CDC_SetTxBuffer
 USBD_CDC_TransmitPacket

BIN
build/usbd_cdc_if.o