Commit Graph

11 Commits

Author SHA1 Message Date
Ze-Hou
9e3127982d bsp: k230: add i2c driver
Requirement: The BSP for the k230 platform in the RT-Thread repository
        does not yet have an I2C driver.

        Solution: Provide I2C driver for the k230 platform in the RT-Thread
        repository.
        1. support i2c master mode

Signed-off-by: Ze-Hou <yingkezhou@qq.com>
2025-10-29 13:33:11 +08:00
Chen Wang
495c8cfc25 utest: remove RT_UTEST_USING_ALL_CASES
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 <unicorn_wang@outlook.com>
2025-09-26 09:57:54 +08:00
Ze-Hou
bfbb3c93e7 bsp: k230: add rtc driver
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 <yingkezhou@qq.com>
2025-09-22 22:30:20 +08:00
dannyray019
500deb8aef bsp:k230:add pdma support for uart driver
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 1337858472@qq.com
2025-08-29 10:37:36 +08:00
dannyray019
60b3ccb8ad bsp:k230:add support for temperature sensor driver
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 1337858472@qq.com
2025-08-20 09:29:09 +08:00
eatvector
7db99433e5 bsp: k230: add pdma driver support
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 <2302147681@qq.com>
2025-08-18 14:11:44 +08:00
dannyray019
c209173061 bsp: k230: add support for PWM driver
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 <1337858472@qq.com>
2025-07-29 15:48:08 +08:00
Chen Wang
fe506d5157 bsp: k230: support adc
Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-06-10 19:23:09 +08:00
Chen Wang
14c147cb00 bsp: k230: add gpio driver
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 <unicorn_wang@outlook.com>
2025-06-10 14:22:21 +08:00
Chen Wang
8525e08709 bsp: k230: add hwtimer support
K230 support 6 general hardware timers and 3 stc timers.
This patch only implement drivers for general hw timers.

Signed-off-by: Chen Wang <unicorn_wang@outlook.com>
2025-05-31 19:50:07 +08:00
Chen Wang
951bc922bc bsp: k230: add watchdog support
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 <unicorn_wang@outlook.com>
2025-05-28 13:49:49 +08:00