Skip to content

Commit 9ba0dc6

Browse files
authored
Merge pull request cnlohr#816 from biemster/usb-bulk-echo
USBFS/HS bulk echo demo
2 parents 69fdb56 + 89d5432 commit 9ba0dc6

18 files changed

Lines changed: 2188 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
all : flash
2+
3+
TARGET:=usbfs_bulk_echo
4+
TARGET_MCU:=CH585
5+
TARGET_MCU_PACKAGE:=CH585M
6+
7+
include ../../../ch32fun/ch32fun.mk
8+
9+
bootloader :
10+
./$(TARGET).py -b
11+
12+
flash : bootloader cv_flash
13+
clean : cv_clean
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#ifndef _FUNCONFIG_H
2+
#define _FUNCONFIG_H
3+
4+
#define FUNCONF_USE_HSI 0
5+
#define FUNCONF_USE_HSE 1
6+
#define CLK_SOURCE_CH5XX CLK_SOURCE_HSE_PLL_62_4MHz
7+
#define FUNCONF_SYSTEM_CORE_CLOCK 624 * 100 * 1000 // keep in line with CLK_SOURCE_CH5XX
8+
9+
#define FUNCONF_DEBUG_HARDFAULT 0
10+
#define FUNCONF_USE_CLK_SEC 0
11+
#define FUNCONF_USE_DEBUGPRINTF 0
12+
13+
#endif
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
all : testtop
2+
3+
# to make CI happy.
4+
testtop.bulk.elf : testtop.c
5+
gcc -o $@ $^ -I../../../minichlink -ludev -lusb-1.0
6+
7+
testtop : testtop.c
8+
gcc -o $@ $^ -I../../../minichlink -ludev -lusb-1.0
9+
10+
11+
clean :
12+
rm -rf *.o *~ testtop
13+

0 commit comments

Comments
 (0)