hathach
6e88895dbc
always define CFG_TUH_WCH_USBIP_USBFS=1 for ch32v20x since only port1 support host mode
...
reformat hcd usbfs
add uart rx for ch32v20x bsp
2025-07-05 11:26:48 +07:00
hathach
1b5f97ff23
Merge branch 'refs/heads/master' into fork/verylowfreq/pr-ch32v-usbfs-host
2025-07-04 09:49:28 +07:00
Radomir Dopieralski
1f2f92d97a
Allow different port and mode for LED on ch32v boards
...
While there is a define for the port, the clock enable is hardcoded for
GPIOA, so setting a different port than GPIOA doesn't work. This fixes
it by adding a define for enabling the port clock.
It also adds a define for the pin mode, because not all boards have the
LED connected in a way that open drain works with it.
2025-04-06 17:14:32 +02:00
verylowfreq
382dcca5d6
Update ch32v20x family.cmake
2025-03-16 10:13:26 +09:00
verylowfreq
7ed5503a5c
Fix the condition related to CFG_TUH_WCH_USBIP_USBFS macro
2025-03-16 10:13:25 +09:00
verylowfreq
c61dfc7c7a
Add ch32v20x usbfs hcd initial support.
2025-03-16 10:13:25 +09:00
hathach
6b3a5957c2
cmake remove EXAMPLE-tinyusb target as library
2025-01-25 16:08:40 +07:00
hathach
b53801a8ac
add cmake RTOS=zephyr (default noos) for zephyr build
2025-01-24 15:06:05 +07:00
hathach
6080f89f3d
- change to use CMAKE_SYSTEM_CPU to prevent CMAKE_SYSTEM_PROCESSOR conflict with zephyr
...
- change tinyusb CMakeLists.txt to function tinyusb_target_add() instead of defining tinyusb lib target
2025-01-22 22:31:08 +07:00
hathach
6a36c74b10
embed metadata to family.c and board.h to generate supported boards doc
2024-12-27 09:11:09 +07:00
hathach
86419df42c
use zero wait flash for nano v203
2024-08-13 16:01:51 +07:00
hathach
c0f38ebf8d
fsdev read/write packet use unaligned function
2024-07-23 19:53:41 +07:00
hathach
4de46fcf97
fix a bug in fsdev introduced by #1942
2024-07-22 21:07:28 +07:00
hathach
e251493a16
skip FLASH_ function to reduce dependency
2024-07-10 22:58:00 +07:00
hathach
c1175b7013
enable full 224KB flash for ch32v203 with flash enhanced read mode in SystemInit (better with startup).
...
add flash with wlink-rs
2024-07-10 22:48:06 +07:00
hathach
8d5dbb9577
add board_reset_to_bootloader(), try to implement that for ch32v203 but not working yet
2024-07-05 15:40:02 +07:00
hathach
02bea8982e
add new ch32v203g6u board, sysfreq is defined in board.cmake/mk
2024-06-21 16:08:37 +07:00
hathach
33f5547ed4
add ch32v103 bsp support, compile but does not run, probably due to compile/linker issue
2024-06-14 16:06:37 +07:00
hathach
2ed027f2bd
use stock core_riscv.h for ch32 v2 v3
2024-06-14 12:51:28 +07:00
hathach
90deeddf3d
add c6 devkit, tested with max3421e
2024-06-06 15:49:20 +07:00
hathach
3175aaa0eb
increase version as pre-releases, still need more clean up before actual relesae
2024-05-24 20:17:53 +07:00
hathach
937b2eac36
change default clock to 144mhz
2024-05-24 14:00:02 +07:00
hathach
4ce439a75a
add ch32 support for fsdev driver. v20x can select fsdev or usbfs with make/cmake PORT=0/1. default to fsdev
2024-05-24 13:58:44 +07:00
hathach
b19295c1c1
use correct wch usbhs, usbfs for ch32v307 using CFG_TUD_MAX_SPEED
2024-05-20 17:26:04 +07:00
hathach
4a5fee503b
- update ch203 family to allow to specify flash and ram size. Introduce
...
- add ch32v203_ro_1v0 board
- CFG_EXAMPLE_MSC_DUAL_READONLY to build msc_dual_lun for ch32v203
2024-05-20 13:24:57 +07:00
hathach
2a67ce773d
change default risv-gcc to riscv-none-elf- and add _zicsr extension
...
add cmake for ch32v20x, skip freertos examples for CH32V20X, also skip net webserver due to lack of RAM
update to use openocd with wlinke adapter
2024-05-16 19:18:43 +07:00
Matthew Tran
db60fa1c63
add CH32V20x USB OTG/FS driver
2024-05-15 20:01:00 +07:00