summaryrefslogtreecommitdiff
path: root/components/drivers
AgeCommit message (Collapse)Author
2025-10-16Update SECURITY_UNKNOWN value in dev_wlan.hrcitach
Changed SECURITY_UNKNOWN value to 0xffffffff for clarity.
2025-10-15utest: UTEST_SERIAL_POSIX_TC -> RT_UTEST_SERIAL_POSIXChen Wang
Signed-off-by: Chen Wang <[email protected]>
2025-10-15utest: UTEST_SERIAL_QEMU_TC -> RT_UTEST_SERIAL_QEMUChen Wang
Signed-off-by: Chen Wang <[email protected]>
2025-10-15utest: UTEST_SERIAL_TC -> RT_UTEST_SERIAL_V2Chen Wang
Signed-off-by: Chen Wang <[email protected]>
2025-10-15utest: UTEST_SERIAL_BYPASS -> RT_UTEST_SERIAL_BYPASSChen Wang
Signed-off-by: Chen Wang <[email protected]>
2025-10-13utest: ipc: move from examples to components/drivers/ipcChen Wang
Also: - Add "RT_" prefix for utest config options. - Rename the case names to following the naming rule. Signed-off-by: Chen Wang <[email protected]>
2025-10-11utest: smp_call: move from example to components/drivers/smp_callChen Wang
Also, - Rename UTEST_SMP_CALL_FUNC to RT_UTEST_SMP_CALL_FUNC. - Add depends on RT_USING_SMP in Kconfig for RT_UTEST_SMP_CALL_FUNC - Follow the naming rules of utest case to update the cases' name. Signed-off-by: Chen Wang <[email protected]>
2025-10-11utest: serial: update case namesChen Wang
Follow the naming rules of utest-cases. Signed-off-by: Chen Wang <[email protected]>
2025-10-11utest: serial: move from examples to components/drivers/serialChen Wang
Signed-off-by: Chen Wang <[email protected]>
2025-10-10doxygen: fix two issues when building with doxygen 1.9.8 (#10768)Chen Wang
* doxygen: remove @return command if function return void When doxygen is upgraded to v1.9.8 (on ubuntu 24.04), doxygen reports: "doxygen error: found documented return type for xxx that does not return anything" for those functions which return void but declare "@return" in doxygen comment. Solution: remove "@return" for those cases, and update guide document for how to write doxgen comment for functions. Signed-off-by: Chen Wang <[email protected]> * doxygen: fixed a minor typo for uart doc This error is found when building with doxygen 1.9.8, but not detecetd on 1.9.1. Signed-off-by: Chen Wang <[email protected]>
2025-09-28doxygen: fixed build warning for RT_CAN_FILTER_ITEM_INIT (#10758)Chen Wang
The names and number of macro parameters in doxygen comments must match the actual macro definition; otherwise, a warning will be generated. Our goal is to eliminate all warnings. Signed-off-by: Chen Wang <[email protected]>
2025-09-28feat[can]: Implement non-blocking send mechanism and enhance CAN driver ↵wdfk-prog
functionality - Added support for non-blocking mode CAN message sending, including software ring buffer management and dynamic memory allocation options. - Improved related comments and error handling. - Updated example code to demonstrate the usage of both blocking and non-blocking sending modes, and corrected some structure field naming and macro definitions.
2025-09-26utest: move driver related case under to driversChen Wang
src/utest/device_tc.c is testing API: rt_device_find(), which is a function defined in components/drivers/core/device.c. So it should be a testcase for drivers core, not for core. Move it to under components/drivers/core. Signed-off-by: Chen Wang <[email protected]>
2025-09-26utest: remove RT_UTEST_USING_ALL_CASESChen Wang
Many modules' utests currently don't support enabling all tests at once. Furthermore, some modules' tests are complex, for example due to their numerous dependencies on other modules. This makes it nearly impossible to enable all tests with a single global switch. Consequently, the previously defined `RT_UTEST_USING_ALL_CASES` has lost its original meaning. We recommend deprecating this configuration switch. If a module needs to enable a group of functional tests through its own configuration, this local enable all switch should be implemented by the module itself, and a global RTT enable switch will no longer be provided. If such a requirement arises in the future, we recommend careful design, especially considering how to ensure that turning on a single switch enables all dependencies for all involved modules for ease of use. Signed-off-by: Chen Wang <[email protected]>
2025-09-25feat[SPI]: Add SPI device detach functionwdfk-prog
2025-09-24RT_TIMER_CTRL_SET_TIME only accept rt_tick_t, pass rt_tick_t instead ↵Yonggang Luo
int/rt_int32_t
2025-09-24cast to (rt_tick_t)RT_WAITING_FOREVER for explicitYonggang Luo
2025-09-24_rt_wqueue_wait use rt_tick_tYonggang Luo
2025-09-15utest: update naems using new ruleChen Wang
The names of the utest cases defined in their respective modules have been updated. Some utest case names are not yet in their respective modules because their paths need to be finalized before their unique names can be determined. Currently, these names do not appear to conflict with the unified names. These include: - utest cases still in examples - bsp/qemu-virt64-riscv/applications/test/test_vector/test_vector.c. The entire test case should probably be placed in libcpu/risc-v rather than bsp. Signed-off-by: Chen Wang <[email protected]>
2025-09-07[DM/NVME] Fixup the QUEUE alloc errorno checkGuEe-GUI
Signed-off-by: GuEe-GUI <[email protected]>
2025-09-06feat: Initialize local variables to prevent GCC compilation warningswdfk-prog
2025-09-04fix: ↵wdfk-prog
在没有定义FINSH_USING_SYMTAB时编译报错以及IPC及finsh启用时自动选择必要的功能
2025-09-01fix(ioctl): _IOR() overflows in switch (int) #10650Tang Haojin
2025-09-01fix: warnings generated by Kconfig.maosql
2025-08-26utest: integrate config option for utest of audio driverChen Wang
Signed-off-by: Chen Wang <[email protected]>
2025-08-26[DM/THERMAL] Fixup the PWM-FAN remove handle data ptrGuEe-GUI
Signed-off-by: GuEe-GUI <[email protected]>
2025-08-26[DM/THERMAL] Fixup the C99, 6.8.1 Labeled statements p4GuEe-GUI
Append a null statement for "Any statement may be preceded by a prefix that declares an identifier as a label name." Signed-off-by: GuEe-GUI <[email protected]>
2025-08-25[DM/PCI] Add SoC PCI Kconfig importGuEe-GUI
Signed-off-by: GuEe-GUI <[email protected]>
2025-08-25[DM/PCI] Fixup the DWC PCI resource releaseGuEe-GUI
Signed-off-by: GuEe-GUI <[email protected]>
2025-08-25[DM/PCI] Fixup the bus-range probeGuEe-GUI
Signed-off-by: GuEe-GUI <[email protected]>
2025-08-25[DM/PCI] Fixup the MSI info shuold freeGuEe-GUI
Signed-off-by: GuEe-GUI <[email protected]>
2025-08-16[component][drivers][serial_v2] 优化serial_v2 (#10603)RyanCW
* [bsp][stm32][drv_usart_v2] uart_isr不再使用链式调用,RXNE内循环读空,一些细节优化 * [componnents][drivers][serial_v2] 增加获取config接口,使用rt_tick_get_delta替代内部的时间绕回判断,写满丢弃策略rx接收数据错乱修复,clang-tidy和cppcheck审查优化 * [utest][drivers][serial_v2] 测试例程进行优化 * [bsp][stm32][drv_usart_v2] 撤回DMAMUX1修改 * [componnents][drivers][serial_v2] read和write不再返回-RT_ETIMEOUT改为已发送或读取的字节数,细节优化 * [utest][drivers][serial_v2] 增加单独的timeout测试,减少测试中的硬延时 * [utest][drivers][serial_v2] 漏提交的posix下标志位 * [utest][drivers][serial_v2] 优化测试例程 * [bsp][stm32][drv_usart_v2] transmit返回错误值,RXNE增加超时逻辑 * [componnents][drivers][serial_v2] 增加transmit错误处理,增加超时退出机制显式的避免死循环 * [componnents][drivers][serial_v2] 适配serial_v2和posix非libc标准库下的console和shell
2025-08-10[driver][serial] V1]: fix correct data loss logic when RX ring buffer is fullwdfk-prog
In the serial ISR (`rt_hw_serial_isr`), the previous logic for handling a full RX FIFO was flawed. When the buffer was filled, it would increment `get_index` (`get_index += 1`). This had two negative consequences: 1. It effectively discarded the oldest byte of data prematurely. 2. It reduced the usable capacity of a buffer of size N to N-1. For example, a 64-byte buffer could only ever hold 63 readable bytes after becoming full. This patch corrects the behavior by implementing a standard overwriting ring buffer strategy. When the buffer is full, the logic is changed to `get_index = put_index`. This ensures that: - When new data arrives, it correctly overwrites the oldest data. - The `get_index` is advanced along with the `put_index`, correctly marking the new start of the buffer. - The full N-byte capacity of the buffer is utilized, always storing the N most recent bytes. This change resolves the unexpected data loss and makes the buffer behavior correct and predictable.
2025-08-08update(cherryusb): update to v1.5.2sakumisu
Signed-off-by: sakumisu <[email protected]>
2025-08-06[arm_compiler_v4/v5] define rt_packed as __packed #10553cmbjxxiao
2025-08-01【SMART】【BSP】【allwinner】Fix smart serial_v2 bypass compile error ↵rcitach
issue (#10524) * Modify the reference path of the header file in the middle section * format * Fix smart serial_v2 bypass compile error issue * add allwinner/d1s ci
2025-07-29[Fix] <components>:drivers/can/dev_can.c ↵liuyucai
修复CAN底层无法工作时导致调用 _can_int_tx 的线程一直挂起的问题 Solution: 使用 can->status.sndchange 的bit位来表示某个发送邮箱超时 如果超时 底层驱动再通知tx_done或者tx_fail事件时不予处理 Signed-off-by: Yucai Liu <[email protected]>
2025-07-24[drivers][serial_v2] 修复dma下rx_flush的bugryancw
2025-07-22doxygen: fix duplicated defgroup for clockChen Wang
Problen: Duplicated definition of group_clk in clk.c and clk.h. Solution: Delete the definition in clk.c and keep only the definition in clk.h. Also change the name of group_clk to group_driver_clock to conform to the naming convention of other driver groups. Signed-off-by: Chen Wang <[email protected]>
2025-07-22doxygen: group name all in lowcase (part 2) (#10530)Chen Wang
* doxygen: fs: unify groupname to lowercase Signed-off-by: Chen Wang <[email protected]> * doxygen: drivers: unify groupname to lowercase Signed-off-by: Chen Wang <[email protected]> * doxygen: signal: unify groupname to lowercase Signed-off-by: Chen Wang <[email protected]> --------- Signed-off-by: Chen Wang <[email protected]>
2025-07-15update(cherryusb): update to v1.5.1sakumisu
Signed-off-by: sakumisu <[email protected]>
2025-07-12[serial_v2]modify the default configuration of the RT_SERIAL_CONFIG_DEFAULT ↵wdfk-prog
structure to support parameters in the absence of DMA configuration.
2025-07-12[DM/PIC] Fixup the interrput info list formatGuEe-GUI
Signed-off-by: GuEe-GUI <[email protected]>
2025-07-12[DM/PIC] Config IPI by RT_MAX_IPIGuEe-GUI
Signed-off-by: GuEe-GUI <[email protected]>
2025-07-12[DM/PIC] Import DM KconfigGuEe-GUI
Signed-off-by: GuEe-GUI <[email protected]>
2025-07-10[WDT] Intel 6300ESB Timer/WatchdogGuEe-GUI
Used for QEMU on PCI Signed-off-by: GuEe-GUI <[email protected]>
2025-07-10[WDT] Add Synopsys DesignWare watchdogGuEe-GUI
This device is commonly used in SoCs. Signed-off-by: GuEe-GUI <[email protected]>
2025-07-10[WDT] Update for DM buildGuEe-GUI
Signed-off-by: GuEe-GUI <[email protected]>
2025-07-10[SPI]Update and fixup the SPIGUI
* Make a priv data read API for probed SPI device * Fixup the SPI device pre-alloc
2025-07-08update(cherryusb): update framework and bugfixsakumisu
* update cdc_acm device framework * add host serial device framework * fix dfs read write return type * fix webusb desc len * fix dwc2 h7rs gccfg Signed-off-by: sakumisu <[email protected]>