Commit Graph

111 Commits

Author SHA1 Message Date
hathach
c1d23a0a92 osal_spin skipping lock/unlock when executed in isr 2025-05-21 11:19:07 +07:00
hathach
a4875fefea rename osal_critcal to osal_spinlock
add spinlock implementation for most rtos
2025-05-20 17:01:31 +07:00
hathach
bb1d348eb3 implement osal critical for none/freertos/pico-sdk 2025-05-19 22:51:40 +07:00
hathach
72ee742761 add osal_critical API() for use with dwc2 2025-05-19 20:04:19 +07:00
hathach
5a39bcf79c remove freeeRTOSConfig in examples 2025-02-11 21:19:09 +07:00
hathach
91214b4614 zephyr 2025-01-21 16:28:29 +07:00
Davide Gerhard
85e1f423bf remove double semicolon since ISO C not allow it
ISO C does not allow extra ';' outside of a function [-Werror=pedantic]
2024-06-27 21:30:16 +02:00
hathach
189080b684 add TU_ASSERT() to check for adding new usb event 2024-04-16 10:40:24 +07:00
hathach
a7a65e5d6d add delete API for rtthread 2024-03-25 18:30:03 +07:00
hathach
31f68495cf update osal API
add osal_semaphore_delete(), osal_mutex_delete(), osal_queue_delete()
2024-03-22 16:10:26 +07:00
Kai
27c125416a use rt-thread 5+ mq recv api 2024-02-16 15:16:17 +08:00
hathach
54356a719e minor-update 2023-11-23 17:53:17 +07:00
hathach
473f37df95 add osal queue name if needed
also mass change configQUEUE_REGISTRY_SIZE = 4
2023-08-03 12:05:21 +07:00
hathach
de8faf8664 Merge branch 'master' into pr2091 2023-08-03 11:09:33 +07:00
hathach
d09604d636 Revert "Name queues for easier FreeRTOS debugging with task- and queue-aware debuggers"
This reverts commit 11fba59319.
2023-08-03 11:07:23 +07:00
Aladdin Bakosh
3fdd2a40b2 osal_none: make it possible to override the task delay function 2023-07-18 14:14:23 +02:00
Dave Nadler
11fba59319 Name queues for easier FreeRTOS debugging with task- and queue-aware debuggers 2023-06-28 17:25:22 -04:00
Dave Nadler
e8b7f21af6 For FreeRTOS kernel-aware debugging, when queue registry is enabled, label tinyUSB queue 2023-06-01 12:57:44 -04:00
hathach
3623ba1884 fix trailing space and new line
temporarily disable codespell
2023-03-17 16:12:49 +07:00
hathach
1466afafeb move and add optional tusb_app_virt_to_phys/tusb_app_phys_to_virt
also add place holder for tusb_app_dcache_flush() and
tusb_app_dcache_invalidate()
2023-02-22 22:14:50 +07:00
Mengsk
82f105e32b Fix IAR warning: Warning[Pe381]: extra ";" ignored 2023-01-02 21:18:10 +01:00
Ha Thach
301b6af6c6 Merge pull request #1801 from tyustli/tyustli_sem_reset
[add] semaphore reset support for rt-thread
2022-12-26 13:09:47 +07:00
jbruneaux31
a46ad8fcdf Update osal_freertos.h
Fix FreeRTOS task switch even if not required (unitialized variable usage)
2022-12-19 13:58:54 +01:00
tyustli
e992ff46d2 Update osal_rtthread.h 2022-12-19 17:25:35 +08:00
tyustli
7d76c172db [add] semaphore reset support for rt-thread
add  semaphore reset support for rt-thread
2022-12-19 17:18:47 +08:00
hathach
88e6da7273 use OSAL_MUTEX_REQUIRED to replace CFG_FIFO_MUTEX/TUSB_OPT_MUTEX
add macro to swallow mutex API in order to simplify code with mutex
2022-12-15 18:03:01 +07:00
hathach
de5a67bf3b clean osal_freertos, update freertos examples to work with configSUPPORT_DYNAMIC_ALLOCATION only
note: for example to build with configSUPPORT_STATIC_ALLOCATION = 0, one
of heap_n.c must be included in makefile/cmake
2022-12-05 12:09:41 +07:00
pete-pjb
3816869fce Some reverts and changes after discussion. 2022-12-02 10:00:19 +00:00
pete-pjb
25abb10de1 Fix white space issue. 2022-11-30 13:26:59 +00:00
pete-pjb
d588167a39 Modify FreeRTOS integration to allow non-static allocation. 2022-11-30 11:33:24 +00:00
hathach
a0ef489890 fix all warnings with host rp2040 2022-06-27 17:11:24 +07:00
tfx2001
54d7790e8b fix compile error 2022-06-01 21:37:26 +08: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
171d021ab5 refactor and integrate usbh control xfer back to usbh.c
fix enumeration with hub when reset port before set address
2022-03-10 22:22:05 +07:00
hathach
31aa077cb0 rename TUSB_OPT_HOST_ENABLED to CFG_TUH_ENABLED 2022-02-25 18:35:21 +07:00
hathach
4a5a53b3b8 improve rphort management for usbd 2022-02-25 18:35:21 +07:00
hathach
52645fcc1b fix build with latest esp idf 2022-02-18 13:07:21 +07:00
hathach
5f280b3029 add license to dcd file, slightly update readme 2021-12-29 19:25:32 +07:00
Yunhao Tian
a6929cf03e Add support for Keil RTX4 OS abstraction layer 2021-11-30 17:19:11 +08:00
Yunhao Tian
ac20605e3f Ignore certain compiler options on ARMCC
ARMCC also sets __GNU__ macro, but doesn't support
GCC diagnostic pragmas.
2021-11-30 17:19:11 +08:00
graham sanderson
06d9555389 More warning cleanup
- physically suppress warnings in TinyUSB headers using pragmas so they don't break -Werror compilation of external files that include them
 - fix compiler warnings in rp2040 port
 - add cmake method to rp2040 port to allow an external project to suppress warnings in TinyUSB itself
2021-10-14 15:23:26 -05:00
hathach
73872a5df0 add CFG_TUSB_OS_INC_PATH for os include path
useful for freertos/ prefix with esp IDF
2021-09-25 16:16:55 +07:00
hathach
954056da0c fix warnings cast function type for nrf, fix pico osal warning
add TODO for overflow in tusb_fifo.c
2021-05-25 21:02:40 +07:00
Alex Lisitsyn
2f0cb8b5f1 tinyusb: add support of esp32s3 target
add support of new esp32s3 target and the board
update the roles.mk wrapper to allow dfu flashing of espressif chip
update examples to allow compilation for esp32s3_addax_1 board
once the code is tested the PR to original tinyusb repo will be submitted
2021-04-16 13:38:00 +02:00
hathach
a397353916 fix ci build with rp2040 2021-03-10 17:58:39 +07:00
hathach
f6b48c07fc add rp2040 to host example build 2021-02-26 14:05:08 +07:00
hathach
2a04ee68b8 add TU_FIFO_INIT() to help with tu_fifo declaration
tu_fifo_clear() also reset max_pointer_idx and non_used_index_space
2021-02-19 11:57:56 +07:00
Nicholas R Dinsmore
b7ec66e33a This fixes the overflow mathmatic in the fifo 2021-02-16 23:08:08 -05:00
tfx2001
1b678eccf5 add basic support for rt-thread 2021-02-08 20:46:49 +08:00