Commit Graph
100 Commits
Author SHA1 Message Date
hathach 1d6918ce41 suppress redundant-decls warnings for freertos examples 2022-06-24 21:53:46 +07:00
hathach 835ab01cab fix stm32 g4 and wb build issue with freertos, also add them to ci build 2022-06-24 21:52:51 +07:00
hathach 4f6e770eda add more warning option, also fix -Wconversion with rp2040
-Wuninitialized, -Wunused,  -Wredundant-decls
2022-06-24 19:46:19 +07:00
Ha Thach 4639cac85c Merge pull request #1526 from ccrome/chc-add-teensy-41
Added The Teensy 4.1 board
2022-06-22 11:22:44 +07:00
Ha Thach 070382d599 Merge pull request #1509 from liamfraser/rp2040_hcd_improvements
RP2040 HCD Improvements (Hub + Keyboard + Mouse working)
2022-06-21 15:55:02 +07:00
Ha Thach ae8b8f0c93 Merge pull request #1515 from maddyaby/dcd_edpt_close
Stub out dcd_edpt_close for samd
2022-06-18 12:40:39 +07:00
Ha Thach b4e62d1cda Merge pull request #1518 from mingpepe/master
Fix typo for log format
2022-06-18 12:39:16 +07:00
Ha Thach d09d0b3147 Merge pull request #1519 from kilograham/rp2040_shared_handler
rp2040: use shared IRQ handlers, so user can also hook the USB IRQ
2022-06-17 22:17:42 +07:00
Ha Thach e0d7c16788 Merge pull request #1516 from hathach/fix-example-with-highspeed
correct bulk size for highspeed endpoint in dynamic_configuration and usbtmc exmaples
2022-06-17 15:11:55 +07:00
hathach 905a0b2457 correct bulk size for highspeed endpoint in dynamic_configuration and usbtmc exmaples 2022-06-17 14:37:35 +07:00
Ha Thach 80121303eb Merge pull request #1512 from kilograham/make_ram_code_optional
rp2040: make moving 1K of code into RAM optional - and off by default
2022-06-16 23:30:29 +07:00
Ha Thach d7b579a978 Merge pull request #1480 from Ryzee119/multihub_rebase
Host: Add support for multi-level usb hubs
2022-06-16 16:33:48 +07:00
hathach 2036a0b62a update readme 2022-06-16 14:41:10 +07:00
hathach f4a7b5b80c add note for recursive calls of process_device_unplugged() in case of hub 2022-06-16 14:37:57 +07:00
Ha Thach eb7d359efc Merge pull request #1506 from hathach/more-dynamic-rhport
more dynamic controller for host
2022-06-10 15:24:26 +07:00
hathach 040ef0640d more dynamic controller for host 2022-06-10 14:53:03 +07:00
Ha Thach 96fecedabe Merge pull request #1505 from hathach/revert-sof-rename
revert sof_isr driver rename since it cause issue with existing code
2022-06-10 12:00:42 +07:00
hathach 8451d05c50 revert sof_isr driver rename since it cause issue with existing code
also removed commented tud_sof_isr_set() API
2022-06-10 01:45:48 +07:00
Ha Thach 806806d61b Merge pull request #1501 from hathach/more-rp2040-ramfunc
make all hcd/dcd function used in isr into ram
2022-06-08 17:29:19 +07:00
hathach dd035b0eb2 make all hcd/dcd function used in isr into ram with __no_inline_not_in_flash_func() for faster irq handling
result is 1KB of code moved from rom -> ram
2022-06-08 16:08:53 +07:00
Ha Thach 8c4b142b9e Merge pull request #1498 from hathach/add-tuh_config-port-specific-setup
add tuh_configure() for port/dynamic host behavior config
2022-06-08 15:36:37 +07:00
hathach 8cbc34de11 add tuh_configure() for port/dynamic host behavior config 2022-06-08 01:17:01 +07:00
Ha Thach 896c707cd4 Merge pull request #1496 from hathach/rp2040-sof-fastfunc
add TU_ATTR_FAST_FUNC for audio sof isr call chain
2022-06-07 13:38:26 +07:00
hathach 06392247eb add TU_ATTR_FAST_FUNC for audio sof isr call chain 2022-06-07 11:50:50 +07:00
Ha Thach a03a03d74e Merge pull request #1495 from hathach/enhance-tusb-config
Better support multiple controllers configuration
2022-06-07 01:13:08 +07:00
hathach 7c8278303b update all host examples 2022-06-06 23:16:49 +07:00
hathach 9794a2b865 more example update 2022-06-06 22:41:04 +07:00
hathach f4c80dd218 clean up example to use CFG_TUD_ENABLED + CFG_TUD_MAX_SPEED instead of CFG_TUSB_RHPORT0_MODE 2022-06-06 17:35:17 +07:00
Ha Thach afd9b1883d Merge pull request #1481 from cr1901/msp430-misopt-fix
msp430x5xx: Add fix for possible bug in msp430-elf-gcc 9.3.0.
2022-06-06 15:37:45 +07:00
hathach 1b08672945 more ci fix 2022-06-06 13:25:48 +07:00
hathach 7187cd9a85 fix ci, remove use of CFG_TUSB_RHPORT0_MODE in bsp 2022-06-06 12:51:10 +07:00
hathach f626916a57 update all dwc2 ports to support new dynamic controller support 2022-06-04 23:52:12 +07:00
hathach 31134f41a1 make dwc2 stm32 rhport support dynamic 2022-06-03 17:24:28 +07:00
hathach 2571211957 remove static port defined for device/host 2022-06-03 11:32:09 +07:00
hathach 8b9cf152a0 rhport argument in usbd_ API() is not used (always use the initialized port)
remove the usage of TUD_OPT_RHPORT in class driver
2022-06-02 16:51:17 +07:00
hathach 99c1585ed2 rename board specific macro for example
- BOARD_DEVICE/HOST_RHPORT_NUM to  BOARD_TUD/H_RHPORT
- BOARD_DEVICE/HOST_RHPORT_SPEED to  BOARD_TUD/H_MAX_SPEED
2022-06-01 23:53:40 +07:00
Ha Thach b6a8d0dd71 Merge pull request #1485 from tfx2001/patch-1
Fix compile error
2022-06-01 23:26:57 +07:00
Ha Thach d1d6bd2831 Merge pull request #1483 from hathach/clean-rp2040-net-example
remove cmake compile macro for net example (use lwipopts.h instead)
2022-06-01 16:17:46 +07:00
hathach ea8a9e0249 remove cmake compile macro for net example (use lwipopts.h instead) 2022-06-01 15:10:05 +07:00
Ha Thach fd8afc7e3b Merge pull request #1454 from Iktek/bugfix_1453
overwrite grstctl on edpt_disable
2022-06-01 14:36:36 +07:00
hathach 6e7cd220dc grstctl set fifo + flush in one assign 2022-06-01 13:18:24 +07:00
Ha Thach 9352f75220 Merge pull request #1438 from Nikitarc/master
Update dwc2_stm32.h
2022-06-01 12:23:32 +07:00
Ha Thach fdeac8508b Merge pull request #1381 from hathach/add-sof-isr
Add SOF IRQ Handler
2022-05-31 22:25:14 +07:00
Ha Thach ab7c23a787 Merge pull request #1479 from M3gaFr3ak/master
Fix printf long int compiler error
2022-05-31 21:53:29 +07:00
hathach e384d16d57 clean up tud_audio_set_itf_cb() invocation 2022-05-31 21:52:54 +07:00
Ha Thach 223aaeaecd Merge pull request #1463 from hathach/sof-isr-update
changes proposal to audio feedback computation
2022-05-31 20:57:07 +07:00
hathach f2926670cc comment out fifo count method for now 2022-05-31 20:26:37 +07:00
Ha Thach f4efb51fe2 Merge pull request #1477 from cr1901/fix-subm
Remove lib/Pico-PIO-USB, which has moved to hw/mcu/raspberry_pi/Pico-PIO-USB. Fixes #1475.
2022-05-28 00:11:43 +07:00
hathach dce2ad4ffb adding feedback fifo count (WIP) 2022-05-27 23:11:25 +07:00
hathach 15aa593790 wrap feedback and compute to its own struct/union 2022-05-27 12:27:31 +07:00
Ha Thach 7b1344fe69 Merge pull request #1467 from kilograham/rp2040_cleanup
Minor cleanup of RP2040 code post addition of Pico-PIO-USB
2022-05-26 23:54:20 +07:00
Ha Thach c1ae13b997 Merge pull request #1473 from sknebel/patch-1
fix links in docs
2022-05-25 22:55:33 +07:00
Ha Thach 0a4a28a90c Merge pull request #1451 from kasjer/kasjer/pic32-sanity-fixes
pic32 sanity fixes
2022-05-24 20:42:06 +07:00
hathach e5113a1cfc prototype for feedback method 2022-05-19 16:05:55 +07:00
hathach 5766c9ac4e rename tud_audio_sof_isr() to tud_audio_feedback_interval_isr()
- also add interval_log2 to isr callback
- also rename other variables
2022-05-19 13:44:10 +07:00
Ha Thach c2bcda86e2 Merge pull request #1412 from hathach/pio-host
PIO USB support
2022-05-16 16:29:20 +07:00
hathach e0e9426c2a print addres of mouse input 2022-05-16 16:00:15 +07:00
hathach 4586d8f119 add upstream Pico-PIO-USB 2022-05-16 13:44:06 +07:00
hathach be2a51316c remove pico-usb fork 2022-05-16 13:29:12 +07:00
hathach 20b810d25b fix ci build 2022-05-13 23:01:06 +07:00
hathach c5ba1ea8c1 changes proposal to audio feedback computation 2022-05-13 22:54:47 +07:00
hathach f09df55ab9 clean up example 2022-05-11 15:40:02 +07:00
hathach 8bd923f5f1 sync with pio usb 2022-05-11 00:37:45 +07:00
hathach 8473ca16fb clean up 2022-05-10 22:56:06 +07:00
hathach 35b77a4a81 cmake lib rename 2022-05-10 22:14:00 +07:00
hathach 717a474125 move pio-usb init to family_configure_pio_usb_example() to stay compatible 2022-05-10 21:56:47 +07:00
hathach 993f7b6a2c include dual examples to ci 2022-05-10 13:15:07 +07:00
hathach e3b57cea05 rename host/hid_to_cdc to dual/host_hid_to_device_cdc 2022-05-10 13:01:28 +07:00
hathach 26ee622222 move pio usb files to src 2022-05-10 12:51:48 +07:00
hathach 79b5ab822e fix incorrect total number of interface 2022-05-06 17:22:52 +07:00
Ha Thach d23c9b7cd6 Merge pull request #1460 from ccrome/chc-fix-freertos-irq-imx
set irq priority for freertos
2022-05-06 13:04:41 +07:00
hathach c289438b75 fix ci build 2022-04-29 23:03:52 +07:00
hathach 0b30a10ab3 configure hid_to_cdc example to build with rp2040 with pio usb as host 2022-04-29 22:24:36 +07:00
hathach 608577e05c update pio 2022-04-29 18:05:50 +07:00
hathach 85dcb73774 more clean up 2022-04-28 18:00:30 +07:00
hathach a72d4e2462 make hcd_event_handler() fastfunc, and force inline other helper 2022-04-27 20:54:21 +07:00
hathach ae5490e5a5 clean up 2022-04-27 20:52:56 +07:00
hathach 4a661dead0 add TU_ATTR_FAST_FUNC for rp2040 __not_in_flash() section 2022-04-27 17:57:52 +07:00
hathach fd827a80a9 everything work great 2022-04-27 01:09:30 +07:00
hathach 455bddddcd minor clean up 2022-04-26 18:47:09 +07:00
hathach 4d11c658ff improve pio usb endpoint handler 2022-04-26 13:08:03 +07:00
Ha Thach 6ec5174d8b Merge pull request #1444 from Firefishy/gh-action-use-replacement-ruby
Gh action use replacement ruby
2022-04-26 01:05:33 +07:00
hathach 26a25279bc follow pio usb changes 2022-04-26 00:35:16 +07:00
hathach 2f9b9a31be more with pio usb 2022-04-22 18:26:58 +07:00
hathach 12debd7763 keep up with pio usb 2022-04-22 01:06:17 +07:00
hathach 98bbb0d402 Merge branch 'master' into pio-host 2022-04-21 12:05:22 +07:00
hathach 328039058e update lib pio 2022-04-21 01:45:03 +07:00
Ha Thach 55a5fd59d7 Merge pull request #1440 from hathach/osal-queue-timeout
Osal queue timeout
2022-04-20 23:32:50 +07:00
hathach 87572871d5 update example for better cdc echo 2022-04-20 18:52:15 +07:00
hathach 6a022c73db add note for tud_task() behavior in freertos example 2022-04-20 18:35:38 +07:00
hathach b034c18077 add tud_task_ext(), tuh_task_ext() as exteneded version that take timeout and in_isr
also allow exit tud_task,tuh_task after processing all events for
running other background task for user
2022-04-20 18:29:41 +07:00
hathach ccafb42c82 disable blank issues, add online docs link 2022-04-20 14:40:55 +07:00
hathach 669e36d674 fix freertos issue when 1 tick > 1 ms 2022-04-20 14:37:42 +07:00
hathach a90839688c add msec timeout to osal_queue_receive(), tud_task() and tuh_task() both pending for event queue with timeout of 1 ms 2022-04-20 13:25:38 +07:00
hathach a32cb1bb93 clean up pio driver 2022-04-18 17:49:21 +07:00
hathach b5a9537eea support pio dcd endpiont stall 2022-04-16 01:19:51 +07:00
hathach 00a0e3f21b update lib pio 2022-04-15 20:14:47 +07:00
hathach 05bfc1a9eb pio device works well 2022-04-15 01:04:12 +07:00
hathach cc5a4720e5 catch up with pio lib 2022-04-14 22:00:47 +07:00
hathach d5d4909c20 proof of concpet that device pio-usb work with host pio-usb 2022-04-08 13:36:05 +07:00