summaryrefslogtreecommitdiff
path: root/bsp/k230/drivers/utest
AgeCommit message (Collapse)Author
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-22bsp: k230: add rtc driverZe-Hou
Requirement: The BSP for the k230 platform in the RT-Thread repository does not yet have an RTC driver. Solution: Provide RTC drivers for the k230 platform in the RT-Thread repository, implementing timekeeping and alarm functionalities, with interrupt support for the alarm feature. Signed-off-by: Ze-Hou <[email protected]>
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-08-29bsp:k230:add pdma support for uart driverdannyray019
Added pdma support for uart driver and a test file test_uart.c. The test uses pdma to improve uart send speed, to check if the driver works correctly. Signed-off-by: XU HU [email protected]
2025-08-20bsp:k230:add support for temperature sensor driverdannyray019
Added a temperature sensor driver and a test file test_ts.c. The test uses temperature sensor to measure the chip temperature, to check if the driver works correctly. Signed-off-by: XU HU [email protected]
2025-08-18bsp: k230: Provide a unified interrupt header fileChen Wang
Originally, the interrupt definitions of various peripherals were distributed in various peripheral drivers, resulting in duplicate definitions. Now they are defined in one place. Signed-off-by: Chen Wang <[email protected]>
2025-08-18bsp: k230: add pdma driver supporteatvector
This commit introduces the PDMA (Peripheral DMA) driver for K230 SoC, providing essential DMA capabilities for peripheral data transfers. Key features implemented: 1. PDMA channel request/release management 2. Channel start/stop control 3. Interrupt callback registration 4. Data transfer between device ports and DDR memory The driver includes: - Core driver implementation (drv_pdma.c/h) - Build system support (SConscript) - Basic test cases (test_pdma.c) Tested with: - PDMA channel request/release - DDR to UART TX FIFO transfers - UART RX FIFO to DDR transfers Signed-off-by: eatvector <[email protected]>
2025-07-29bsp: k230: add support for PWM driverdannyray019
Added a PWM driver and a test file test_pwm.c. The test uses PWM to control the LED brightness, to check if the driver works correctly. Signed-off-by: XU HU <[email protected]>
2025-06-10bsp: k230: support adcChen Wang
Signed-off-by: Chen Wang <[email protected]>
2025-06-10bsp: k230: add gpio driverChen Wang
K230 supports 3 GPIO groups: group0: GPIO0 ~ GPIO31, support i/o and irq group1: GPIO32 ~ GPIO63, support i/o and irq group2: GPIO64 ~ GPIO71, only support i/o. Signed-off-by: Chen Wang <[email protected]>
2025-05-31bsp: k230: add hwtimer supportChen Wang
K230 support 6 general hardware timers and 3 stc timers. This patch only implement drivers for general hw timers. Signed-off-by: Chen Wang <[email protected]>
2025-05-30bsp: k230: use utest asset apiChen Wang
Use utest assert API for utest cases. Signed-off-by: Chen Wang <[email protected]>
2025-05-28bsp: k230: add watchdog supportChen Wang
K230 has two watchdog timers. Add unit tests based on utest framework. Watchdog and test are both configuable, disabled by default. Signed-off-by: Chen Wang <[email protected]>