summaryrefslogtreecommitdiff
path: root/src/osal/osal_none.h
AgeCommit message (Collapse)Author
2026-07-02license: use SPDX identifiers for src/ headers (#3749)Ha Thach
* license: use SPDX identifiers for src/ headers Replace the full ~20-line MIT license boilerplate on every src/ file with a two-line SPDX tag (SPDX-FileCopyrightText + SPDX-License-Identifier), following the REUSE convention used by CircuitPython and the Linux kernel. Removes ~3500 lines of duplicated boilerplate.
2026-06-22Merge remote-tracking branch 'tinyusb/master' into pr-osal-spin-deinitHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2026-06-21fix(host): release spinlock in tuh_deinit to fix multi-rebuild panicrenjie
tuh_rhport_init() calls osal_spin_init(&_usbh_spin), which under OPT_OS_PICO claims a hardware spinlock via critical_section_init(). There was no osal_spin_deinit(), so tuh_deinit() never released it: every host init/deinit cycle leaked one spinlock. RP2350 has a small spinlock pool, so a few usb_host rebuilds exhaust it and hw_claim_unused_from_range() panics (the long-standing "crashes on the 4th rebuild" bug). Add osal_spin_deinit() to all OSAL backends (critical_section_deinit for pico; no-op for none/freertos) and call it in tuh_deinit(). Verified 20/20 deinit+rebuild cycles on RP2350-Zero and Waveshare RP2350-USB-A (previously panicked on the 4th). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
2026-05-27osal add osal_task_get_current_handle()hathach
2026-02-27add osal_time_millis() to osal requirementhathach
implement tusb_time_millis_api() with osal_time_millis() when OS is not NONE
2026-02-27add back deferred attachment queue, retry get hub port status if reset ↵hathach
change not set after 20ms
2025-12-30tusb_fifo remove item_size make it fifo of byteshathach
2025-12-16make fifo access mode fixed addr work with 16 bit alsohathach
2025-11-19return if spin is underflowhathach
2025-11-07osal/none: add nested count to spin lockHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-10-28fix Identifiers that start with '__' or '_[A-Z]' are reserved.hathach
fix compiling with nuc family
2025-10-24fix more warningshathach
2025-09-17Replace old delay functions by tusb_time_delay_ms_apiHiFiPhile
Signed-off-by: HiFiPhile <[email protected]>
2025-05-21osal_spin skipping lock/unlock when executed in isrhathach
2025-05-20rename osal_critcal to osal_spinlockhathach
add spinlock implementation for most rtos
2025-05-19implement osal critical for none/freertos/pico-sdkhathach
2025-05-19add osal_critical API() for use with dwc2hathach
2025-02-11remove freeeRTOSConfig in exampleshathach
2024-04-16add TU_ASSERT() to check for adding new usb eventhathach
2024-03-22update osal APIhathach
add osal_semaphore_delete(), osal_mutex_delete(), osal_queue_delete()
2023-11-23minor-updatehathach
2023-07-18osal_none: make it possible to override the task delay functionAladdin Bakosh
2023-03-17fix trailing space and new linehathach
temporarily disable codespell
2023-02-22move and add optional tusb_app_virt_to_phys/tusb_app_phys_to_virthathach
also add place holder for tusb_app_dcache_flush() and tusb_app_dcache_invalidate()
2022-12-15use OSAL_MUTEX_REQUIRED to replace CFG_FIFO_MUTEX/TUSB_OPT_MUTEXhathach
add macro to swallow mutex API in order to simplify code with mutex
2022-04-20add msec timeout to osal_queue_receive(), tud_task() and tuh_task() both ↵hathach
pending for event queue with timeout of 1 ms
2022-03-10refactor and integrate usbh control xfer back to usbh.chathach
fix enumeration with hub when reset port before set address
2022-02-25improve rphort management for usbdhathach
2021-02-26add rp2040 to host example buildhathach
2021-02-19add TU_FIFO_INIT() to help with tu_fifo declarationhathach
tu_fifo_clear() also reset max_pointer_idx and non_used_index_space
2020-10-13osal_none: Fix queue definitionJerzy Kasenberg
OSAL_QUEUE_DEF was not updated while FIFO was changed to use unmasked pointers. Two fields that are crucial to new functionality were left uninitialized resulting in FIFO slowing down in time.
2020-05-22Merge branch 'master' into update-hosthathach
2020-05-20remove queue lock/unlock per reviewhathach
2020-05-20remove osal_queue_t const qhdl from osal APIhathach
since it doesn't make any differences.
2020-05-20added osal_queue_empty() APIhathach
ported for osal none/freertos/mynewt
2020-05-04temporarily remove osal_task_delay() from osalhathach
- add hcd_uframe_number() API, update EHCI to return uframe number - get host running on ea4357
2020-01-15Normalize line endingsNathan Conrad
2019-11-03add a bit of log1 for debugginghathach
2019-09-27add -Wextra for more warnings to examplehathach
non-stack warning (probably mcu driver) should be suppressed in the board.mk
2019-05-14update license year to 2019hathach
2019-04-02clean uphathach
2019-03-30usbd add connected, suspended, remote_wakeuphathach
- remove use of osal_queue_reset
2019-03-24remove tusb_hal_millis() usage, less work for portinghathach
2019-03-21more with mynewthathach
2019-03-21update osal for mynewthathach
2019-03-20clean uphathach
2019-03-20migrate license from BSD 3 clause to MIThathach
2018-12-13osal clean uphathach
remove OSAL_TASK_DEF, osal_task_create. Applicaton should create a task and call tinyusb_task(). This make API consistent with NO OS.
2018-12-07rename MODE_HOST_SUPPORTED to TUSB_OPT_HOST_ENABLEDhathach
2018-12-06change osal_semaphore_wait to return boolhathach