misc: Renamed cdcacm.{c,h} to usb_serial.{c,h}

This commit is contained in:
dragonmux 2022-08-10 10:41:20 +01:00 committed by Piotr Esden-Tempski
parent 8f41217d29
commit 0f37edc36a
31 changed files with 41 additions and 43 deletions

View File

@ -15,8 +15,8 @@ LDFLAGS = -lopencm3_stm32f4 -Wl,--defsym,_stack=0x20006000 \
VPATH += platforms/stm32
SRC += cdcacm.c \
traceswodecode.c \
SRC += \
traceswodecode.c \
traceswo.c \
usbuart.c \
serialno.c \

View File

@ -23,7 +23,7 @@
*/
#include "general.h"
#include "cdcacm.h"
#include "usb.h"
#include "usbuart.h"
#include "morse.h"

View File

@ -27,8 +27,8 @@ endif
VPATH += platforms/stm32
SRC += cdcacm.c \
traceswodecode.c \
SRC += \
traceswodecode.c \
traceswo.c \
usbuart.c \
serialno.c \

View File

@ -23,7 +23,7 @@
*/
#include "general.h"
#include "cdcacm.h"
#include "usb.h"
#include "usbuart.h"
#include "morse.h"

View File

@ -25,4 +25,5 @@ SRC += \
jtagtap.c \
swdptap.c \
usb.c \
usb_serial.c \
usb_dfu_stub.c \

View File

@ -23,8 +23,8 @@
#include "general.h"
#include "usb.h"
#include "usb_descriptors.h"
#include "usb_serial.h"
#include "usb_dfu_stub.h"
#include "cdcacm.h"
#include "serialno.h"
usbd_device *usbdev = NULL;

View File

@ -40,7 +40,7 @@
#include "general.h"
#include "gdb_if.h"
#include "cdcacm.h"
#include "usb_serial.h"
#if defined(PLATFORM_HAS_TRACESWO)
# include "traceswo.h"
#endif

View File

@ -25,8 +25,8 @@
*
* The device's unique id is used as the USB serial number string.
*/
#ifndef __CDCACM_H
#define __CDCACM_H
#ifndef USB_SERIAL_H
#define USB_SERIAL_H
#include <stdint.h>
#include <stdbool.h>
@ -36,4 +36,4 @@ void usb_serial_set_config(usbd_device *dev, uint16_t wValue);
bool gdb_uart_get_dtr(void);
#endif
#endif /*USB_SERIAL_H*/

View File

@ -13,8 +13,8 @@ LDFLAGS = --specs=nano.specs -lopencm3_stm32f0 \
VPATH += platforms/stm32
SRC += cdcacm.c \
traceswodecode.c\
SRC += \
traceswodecode.c \
traceswo.c \
usbuart.c \
serialno.c \

View File

@ -22,7 +22,7 @@
*/
#include "general.h"
#include "cdcacm.h"
#include "usb.h"
#include "usbuart.h"
#include "morse.h"

View File

@ -15,8 +15,8 @@ LDFLAGS = --specs=nano.specs -lopencm3_stm32f3 \
VPATH += platforms/stm32
SRC += cdcacm.c \
traceswodecode.c\
SRC += \
traceswodecode.c \
traceswo.c \
usbuart.c \
serialno.c \

View File

@ -22,7 +22,7 @@
*/
#include "general.h"
#include "cdcacm.h"
#include "usb.h"
#include "usbuart.h"
#include "morse.h"

View File

@ -27,8 +27,8 @@ endif
VPATH += platforms/stm32
SRC += cdcacm.c \
traceswodecode.c \
SRC += \
traceswodecode.c \
traceswo.c \
usbuart.c \
serialno.c \

View File

@ -23,7 +23,7 @@
*/
#include "general.h"
#include "cdcacm.h"
#include "usb.h"
#include "usbuart.h"
#include "morse.h"

View File

@ -15,8 +15,8 @@ LDFLAGS = -lopencm3_stm32f4 \
VPATH += platforms/stm32
SRC += cdcacm.c \
traceswodecode.c \
SRC += \
traceswodecode.c \
traceswo.c \
usbuart.c \
serialno.c \

View File

@ -23,7 +23,7 @@
*/
#include "general.h"
#include "cdcacm.h"
#include "usb.h"
#include "usbuart.h"
#include "morse.h"

View File

@ -12,13 +12,12 @@ CFLAGS += -DDFU_SERIAL_LENGTH=9
LINKER_SCRIPT="platforms/tm4c/tm4c.ld"
LDFLAGS = -nostartfiles -lc $(CPU_FLAGS) -nodefaultlibs -T$(LINKER_SCRIPT) -Wl,--gc-sections \
-L../libopencm3/lib -lopencm3_lm4f -lnosys -lm -lgcc
VPATH += platforms/tm4c
SRC += cdcacm.c \
SRC += \
usbuart.c \
timing.c \
traceswo.o
all: blackmagic.bin

View File

@ -16,7 +16,7 @@
*/
#include "general.h"
#include "gdb_if.h"
#include "cdcacm.h"
#include "usb.h"
#include "usbuart.h"
#include <libopencm3/lm4f/rcc.h>

View File

@ -20,8 +20,8 @@ endif
VPATH += platforms/stm32
SRC += cdcacm.c \
traceswodecode.c \
SRC += \
traceswodecode.c \
traceswo.c \
usbuart.c \
serialno.c \

View File

@ -23,7 +23,7 @@
*/
#include "general.h"
#include "cdcacm.h"
#include "usb.h"
#include "usbuart.h"
#include "morse.h"

View File

@ -31,7 +31,7 @@ endif
VPATH += platforms/stm32
SRC += cdcacm.c \
SRC += \
usbuart.c \
serialno.c \
timing.c \

View File

@ -23,7 +23,7 @@
*/
#include "general.h"
#include "cdcacm.h"
#include "usb.h"
#include "usbuart.h"
#include <libopencm3/stm32/rcc.h>

View File

@ -26,7 +26,7 @@
#include <libopencmsis/core_cm3.h>
#include "general.h"
#include "cdcacm.h"
#include "usb_serial.h"
#include "gdb_if.h"
static uint32_t count_out;

View File

@ -27,7 +27,7 @@
#include "general.h"
#include "platform.h"
#include <assert.h>
#include "cdcacm.h"
#include "usb_serial.h"
#include "rtt.h"
#include "rtt_if.h"

View File

@ -32,7 +32,7 @@
* The core can then process the buffer to extract the frame.
*/
#include "general.h"
#include "cdcacm.h"
#include "usb.h"
#include "traceswo.h"
#include <libopencm3/cm3/nvic.h>

View File

@ -29,7 +29,7 @@
*/
#include "general.h"
#include "cdcacm.h"
#include "usb.h"
#include "traceswo.h"
#include <libopencmsis/core_cm3.h>

View File

@ -19,7 +19,7 @@
/* Print decoded swo stream on the usb serial */
#include "general.h"
#include "cdcacm.h"
#include "usb_serial.h"
#include "traceswo.h"
/* SWO decoding */

View File

@ -19,7 +19,7 @@ endif
VPATH += platforms/stm32
SRC += cdcacm.c \
SRC += \
usbuart.c \
serialno.c \
timing.c \
@ -36,4 +36,3 @@ blackmagic_dfu.elf: usbdfu.o dfucore.o dfu_f1.o platform_common.o serialno.o
host_clean:
-$(Q)$(RM) blackmagic.bin blackmagic_dfu blackmagic_dfu.bin blackmagic_dfu.hex

View File

@ -24,7 +24,7 @@
*/
#include "general.h"
#include "cdcacm.h"
#include "usb.h"
#include "usbuart.h"
#include <libopencm3/stm32/rcc.h>

View File

@ -25,7 +25,7 @@
#include "general.h"
#include "gdb_if.h"
#include "cdcacm.h"
#include "usb_serial.h"
#include <libopencm3/usb/usbd.h>

View File

@ -28,7 +28,7 @@
*/
#include "general.h"
#include "cdcacm.h"
#include "usb.h"
#include <libopencm3/cm3/nvic.h>
#include <libopencm3/lm4f/rcc.h>
@ -158,4 +158,3 @@ void TRACEUART_ISR(void)
trace_buf_push();
}
}