Skip to content

Commit fee89d5

Browse files
committed
Implement crude but functional CDC + MSC USB device.
1 parent ed65605 commit fee89d5

21 files changed

Lines changed: 787 additions & 1638 deletions

stm/Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ LD = arm-none-eabi-ld
99
CFLAGS_CORTEX_M4 = -mthumb -mtune=cortex-m4 -mabi=aapcs-linux -mcpu=cortex-m4 -mfloat-abi=hard -DSTM32F40XX -DHSE_VALUE=8000000
1010
CFLAGS = -I. -I$(PYSRC) -I$(FATFSSRC) -I$(STMSRC) -Wall -ansi -std=gnu99 -Os -DNDEBUG $(CFLAGS_CORTEX_M4)
1111
CFLAGS_PY = -DEMIT_ENABLE_THUMB
12-
LDFLAGS = --nostdlib -T stm.ld
12+
LDFLAGS = --nostdlib -T stm32f405.ld
1313

1414
SRC_C = \
1515
main.c \
@@ -63,10 +63,9 @@ SRC_STM = \
6363
usbd_req.c \
6464
usbd_usr.c \
6565
usbd_desc.c \
66-
usbd_cdc_core.c \
66+
usbd_pyb_core.c \
6767
usbd_cdc_vcp.c \
6868
usbd_msc_bot.c \
69-
usbd_msc_core.c \
7069
usbd_msc_data.c \
7170
usbd_msc_scsi.c \
7271
usbd_storage_msd.c \

stm/lib/usb_conf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@
170170
#ifdef USB_OTG_FS_CORE
171171
#define RX_FIFO_FS_SIZE 128
172172
#define TX0_FIFO_FS_SIZE 32
173-
#define TX1_FIFO_FS_SIZE 128
173+
#define TX1_FIFO_FS_SIZE 64
174174
#define TX2_FIFO_FS_SIZE 32
175-
#define TX3_FIFO_FS_SIZE 0
175+
#define TX3_FIFO_FS_SIZE 64
176176

177177
// #define USB_OTG_FS_LOW_PWR_MGMT_SUPPORT
178178
// #define USB_OTG_FS_SOF_OUTPUT_ENABLED

stm/lib/usbd_cdc_conf.h

Lines changed: 0 additions & 105 deletions
This file was deleted.

0 commit comments

Comments
 (0)