summaryrefslogtreecommitdiff
path: root/src/osal/osal_pico.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-22address reviewHiFiPhile
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
2025-12-30tusb_fifo remove item_size make it fifo of byteshathach
2025-11-07fix more alerts found by pvs-studiohathach
2025-05-20rename osal_critcal to osal_spinlockhathach
add spinlock implementation for most rtos
2025-05-19implement osal critical for none/freertos/pico-sdkhathach
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-03-17fix trailing space and new linehathach
temporarily disable codespell
2022-06-27fix all warnings with host rp2040hathach
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-02-25rename TUSB_OPT_HOST_ENABLED to CFG_TUH_ENABLEDhathach
2022-02-25improve rphort management for usbdhathach
2021-05-25fix warnings cast function type for nrf, fix pico osal warninghathach
add TODO for overflow in tusb_fifo.c
2021-03-10fix ci build with rp2040hathach
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
2021-02-16This fixes the overflow mathmatic in the fifoNicholas R Dinsmore
2021-01-19RP2040 supportgraham sanderson