Commit Graph

1744 Commits

Author SHA1 Message Date
Brent Kowal
5122d6d109 Combined DCD MUSB implementations
Combined the new MAX32 MUSB implementation with the existing (TI) implementation to provide generic code base for working the MUSB DCD peripheral.
 - Added abstraction calls for FIFO setup, EP registers, Ctrl registers and interrupt setup.
 - Combined TM4C and MSP432E into a single header file.
 - Created musb_max32.h, and removed the MAX32 specific C implementation.
 - Updated MAX32 build system to use dcd_musb.c.
 - Added MAX32 conditions for cdc_dual_ports example descriptors missed during first testing.
2024-07-25 09:08:37 -04:00
Brent Kowal
13f5f20c98 Pre-commit fixes.
Resolve codespell and EOF errors found in the pre-commit CI task.
2024-07-11 12:13:30 -04:00
Brent Kowal
494533f9d7 Minor build system fix
Correct a case-sensitive file extension issue in the MAX32690 build scripts.  Did not present itself as an issue under MinGW or MSYS, just Linux.
2024-07-10 15:52:43 -04:00
Brent Kowal
f49725d2c9 BSP Cleanup
- Added MSDK flash rules for CMake
 - Removed partial IAR support. Uniform GCC support across MAX32 parts
 - Updated build scripts for correctly signing the MAX32651
 - Added README files for the BSPs to describe flashing and limitiations
2024-07-10 15:18:59 -04:00
Brent Kowal
0c37f93bc8 MAX32650/1/2 Support
Added support for the MAX32650/1/2 series parts
 - MAX32650FTHR, MAX32650EvKit, MAX32651EvKit
 - Added special flash rule for MAX32651 due to signing required
 - Added depencies to flash-msdk rules for executable
2024-07-02 18:02:11 -04:00
Brent Kowal
61beb6316d MAX32666 Support
Added support for the MAX32666, Boards MAX32666EvKit and MAX32666FTHR.
2024-07-02 14:31:38 -04:00
Brent Kowal
835a6ed622 Build System Updates
Updated MAX32690 and MAX78002 linker and cmake scripts to work with CMake + Ninja build system.  Verified all example projects build with the tools/build.py script for both board, and both make and cmake build systems.
2024-07-02 11:54:23 -04:00
Brent Kowal
2353c4ffba Add MAX78002 Support
-Added support for MAX78002, MAX78002EVKIT
 -Added provisions for remaining MAX32 USB parts
2024-07-01 17:31:38 -04:00
Brent Kowal
0b82af61f3 AD-APARD32690-SL Support and Cleanup
- Added BSP for AD-APARD32690-SL board (apard32690)
 - Ran clang-formatting on previously committed code
 - Removed LOG messages from dcd_max32.c
2024-07-01 16:31:17 -04:00
Brent Kowal
0f288326cc Initial Commit for MAX32 Support
Initial commit for the port of TUSB to MAX32xxx parts, staring with MAX32690
 - Added dcd_max32.c (based on dcd_musb.c) for interfacing with the peripheral
 - Added MAX32690 part family support
 - Added max32690evkit board support
 - Updated examples for unique EP number requirement
 - Updated get_deps.py to fetch the MSDK

Known Issues / Additional Testing Required
 - msc_dual_lun only shown 1 volume on Windows
 - USBTMC does not have a valid Windowsdriver
 - DFU does not have a valid Windows driver
 - WebUSB is "Device not Recognized"
 - Need to test build scripts with IAR and Clang
2024-06-28 16:55:27 -04: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
927015baae wch usbfs/usbhs need to specify which driver to use. for v307 default to highspeed 2024-05-24 11:38:44 +07:00
hathach
953e3bd634 - minor update to ep_set_response_and_toggle/xfer_data_packet
- merge USBHS_ISO_ACT_FLAG, USBHS_TRANSFER_FLAG handler since they are similar
- improve uart output
- add note for link speed in bus reset
2024-05-21 17:50:50 +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
5fee292606 temp code 2024-05-20 11:54:48 +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
hathach
aa2685536b implement max3421e hcd_edpt_abort_xfer() 2024-05-15 16:00:15 +07:00
Ha Thach
7cf1bdd284 Ci tweak3 (#2643)
- enable --one-per-family to build 1 board per family, also skip family if board specified in -b also present
- minimize ci run for push event
  - only build one board per family
  - skip hil test on both pi4 and hfp
- full build will be runn for PR event
- IAR always build 1 board per family regardless of event 
- update build.py to optimize make
- remove all setup python since we don't really need it
2024-05-13 20:27:49 +07:00
Ha Thach
3e2ea77506 More ci tweak (#2636)
* change concurrency group to ${{ github.workflow }}-${{ github.ref }}
* use argparse for build.py hil_test.py, remove the need to install click
* move ci win/mac to build_cmake.yml
* rename build_family.yml to build_util.yml
* build_util.yml support esp32
* integrate build-espressif into build.yml
* build.py support make with --board option
* add get_deps action
* update hil test to reuse action
2024-05-10 18:55:43 +07:00
Ha Thach
ba6babf570 Rework ci (#2631)
* add name field to usbd_class_driver_t
* ci: use set matrix py script
* add riscv32 and cmake support for ch32v307, fomu,  gd32vf103
* update build_cmake.py to take --family --board --toolchain
* separate hil test to its own workflow
* move esp32 board into separated hil json
* add make build to ci
* remov build_make.py
* build.py support esp32 board
* setup toolchain support esp-idf
* fix missing click
* merge family in matrix build to reduce jobs
* skip cifuzz since it still has issue with get_deps and click
2024-05-09 20:43:46 +07:00
hathach
dfda0b124f fix typo 2024-05-06 17:31:00 +07:00
hathach
a9f1c62dff temp fix for mm32 redundant-decls of SystemCoreClock 2024-05-06 17:28:48 +07:00
hathach
497785393d add cmake for mm32, remove mm32 bluepill since it is custom/reworked board (not available for order) 2024-05-06 17:14:35 +07:00
hathach
d79c71abf5 update flash openocd 2024-05-06 10:52:52 +07:00
hathach
3791514908 add cmake for samg55 2024-05-04 17:23:16 +07:00
hathach
c020a0190d add cmake for f1c100s 2024-05-04 12:36:40 +07:00
hathach
58248f3e7f mm32 temp 2024-05-03 23:15:14 +07:00
hathach
fcfd5a6625 fix ci 2024-05-03 18:12:55 +07:00
hathach
f38fbbfb2b add cmake for xmc4000 2024-05-03 16:48:55 +07:00
hathach
704412bb48 add cmake for tm4c 2024-05-03 16:15:29 +07:00
hathach
59f8e9dff9 rename to samd5x_e5x 2024-05-03 15:17:07 +07:00
hathach
4b86b49260 merge samd51 and same5x 2024-05-03 15:15:27 +07:00
hathach
1cf68f98b3 - add cmake to samd11
- build_cmake.py always build with -DCMAKE_BUILD_TYPE=MinSizeRel
2024-05-03 12:45:41 +07:00
hathach
43f4317a97 add missing FreeRTOSConfig.h 2024-05-03 12:21:02 +07:00
hathach
6524e26e62 add cmake for stm32wb 2024-05-03 11:39:42 +07:00
hathach
1b97cec995 fix missing linker entry with cmake for broadcom family 2024-05-03 11:19:44 +07:00
hathach
fc843c5827 add cmake for saml2x 2024-05-03 10:59:29 +07:00
hathach
dde13a3d4b add cmake to msp432e4 2024-05-02 21:28:43 +07:00
hathach
68a4d0c8db add cmake to lpc51 2024-05-02 20:50:41 +07:00
hathach
2213fe40e5 add cmake for lpc15 2024-05-02 18:24:47 +07:00
hathach
19cb2f1a3c add cmake to lpc1347 2024-05-02 18:15:55 +07:00
hathach
c717e52ab2 add cmake for lpc11 2024-05-02 17:54:44 +07:00
hathach
4b537a4f8c add cmake for kinetis k32l2 family 2024-05-02 16:58:43 +07:00
hathach
980f5992c8 add cmake for broadcom 64-bit, like 32-bit it compiles but text is only 8 bytes (incorrect) 2024-05-02 16:57:50 +07:00
hathach
ea3f1d39e8 add cmake for pi zero (renamed from pi zero_w), build but the flash size seem wrong (only 24 bytes for text) 2024-05-02 13:29:29 +07:00