Skip to content

Commit b11870a

Browse files
author
liuyucai
committed
2 parents fd3b912 + aee8920 commit b11870a

File tree

3,918 files changed

+96359
-5199212
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,918 files changed

+96359
-5199212
lines changed

.github/ALL_BSP_COMPILE.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@
6969
"RTT_TOOL_CHAIN": "sourcery-arm",
7070
"SUB_RTT_BSP": [
7171
"phytium/aarch32",
72-
"qemu-vexpress-a9",
7372
"airm2m/air32f103",
7473
"acm32/acm32f0x0-nucleo",
7574
"acm32/acm32f0x0-nucleo",
@@ -338,6 +337,7 @@
338337
"Infineon/psoc6-cy8cproto-062S3-4343W",
339338
"Infineon/psoc6-evaluationkit-062S2",
340339
"Infineon/xmc7200-kit_xmc7200_evk",
340+
"Infineon/xmc7100d-f144k4160aa",
341341
"fujitsu/mb9x/mb9bf500r",
342342
"fujitsu/mb9x/mb9bf506r",
343343
"fujitsu/mb9x/mb9bf618s",
@@ -396,6 +396,13 @@
396396
"qemu-virt64-riscv"
397397
]
398398
},
399+
{
400+
"RTT_BSP": "K230",
401+
"RTT_TOOL_CHAIN": "riscv64-unknown-linux-musl-",
402+
"SUB_RTT_BSP": [
403+
"k230"
404+
]
405+
},
399406
{
400407
"RTT_BSP": "hpmicro",
401408
"RTT_TOOL_CHAIN": "RISC-V-GCC-RV32",
@@ -449,6 +456,14 @@
449456
"nrf5x/nrf52840",
450457
"nrf5x/nrf5340"
451458
]
459+
},
460+
{
461+
"RTT_BSP": "arm-none-bsp-smart",
462+
"RTT_TOOL_CHAIN": "sourcery-arm",
463+
"RTT_SMART_TOOL_CHAIN": "arm-linux-musleabi",
464+
"SUB_RTT_BSP": [
465+
"qemu-vexpress-a9"
466+
]
452467
}
453468
]
454469
}

.github/workflows/bsp_buildings.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,14 @@ jobs:
183183
/opt/riscv64-unknown-elf-toolchain-10.2.0-2020.12.8-x86_64-linux-ubuntu14/bin/riscv64-unknown-elf-gcc --version
184184
echo "RTT_EXEC_PATH=/opt/riscv64-unknown-elf-toolchain-10.2.0-2020.12.8-x86_64-linux-ubuntu14/bin" >> $GITHUB_ENV
185185
186+
- name: Install k230 MUSL ToolChains
187+
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'riscv64-unknown-linux-musl-' && matrix.legs.RTT_BSP == 'K230' && success() }}
188+
run: |
189+
wget -q https://download.rt-thread.org/rt-smart/riscv64/riscv64-linux-musleabi_for_x86_64-pc-linux-gnu_251248.tar.bz2
190+
sudo tar xjf riscv64-linux-musleabi_for_x86_64-pc-linux-gnu_251248.tar.bz2 -C /opt
191+
/opt/riscv64-linux-musleabi_for_x86_64-pc-linux-gnu/bin/riscv64-unknown-linux-musl-gcc --version
192+
echo "RTT_EXEC_PATH=/opt/riscv64-linux-musleabi_for_x86_64-pc-linux-gnu/bin" >> $GITHUB_ENV
193+
186194
- name: Install riscv32-unknown-elf Toolchains
187195
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'RISC-V-GCC-RV32' && success() }}
188196
run: |
@@ -208,6 +216,14 @@ jobs:
208216
pip3 install esptool
209217
echo "RTT_EXEC_PATH=/opt/riscv32-esp-elf/bin" >> $GITHUB_ENV
210218
219+
- name: Install Arm Musl ToolChains
220+
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'sourcery-arm' && matrix.legs.RTT_SMART_TOOL_CHAIN == 'arm-linux-musleabi' && success() }}
221+
shell: bash
222+
run: |
223+
wget -q https://github.com/RT-Thread/toolchains-ci/releases/download/v1.7/arm-linux-musleabi_for_x86_64-pc-linux-gnu_stable.tar.bz2
224+
sudo tar xjf arm-linux-musleabi_for_x86_64-pc-linux-gnu_stable.tar.bz2 -C /opt
225+
/opt/arm-linux-musleabi_for_x86_64-pc-linux-gnu/bin/arm-linux-musleabi-gcc --version
226+
211227
- name: Install Simulator Tools
212228
if: ${{ matrix.legs.RTT_TOOL_CHAIN == 'gcc' && success() }}
213229
run: |

bsp/Infineon/libraries/HAL_Drivers/SConscript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ if GetDepend(['RT_USING_I2C', 'RT_USING_I2C_BITOPS']):
2323
src += ['drv_soft_i2c.c']
2424

2525
if GetDepend(['RT_USING_I2C']):
26-
if GetDepend('BSP_USING_HW_I2C3') or GetDepend('BSP_USING_HW_I2C4') or GetDepend('BSP_USING_HW_I2C6'):
26+
if GetDepend('BSP_USING_HW_I2C1') or GetDepend('BSP_USING_HW_I2C3') or GetDepend('BSP_USING_HW_I2C4') or GetDepend('BSP_USING_HW_I2C6'):
2727
src += ['drv_i2c.c']
2828

2929
if GetDepend(['BSP_USING_SDIO1']):

bsp/Infineon/libraries/HAL_Drivers/drv_gpio.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* Change Logs:
77
* Date Author Notes
88
* 2022-07-1 Rbb666 first version
9+
* 2025-04-24 Passionate0424 fix ifx_pin_irq_enable
910
*/
1011

1112
#include "drv_gpio.h"
@@ -353,7 +354,7 @@ static rt_err_t ifx_pin_irq_enable(struct rt_device *device, rt_base_t pin,
353354
{
354355
level = rt_hw_interrupt_disable();
355356

356-
Cy_GPIO_Port_Deinit(CYHAL_GET_PORTADDR(gpio_pin));
357+
irqmap = &pin_irq_map[gpio_port];
357358

358359
#if !defined(COMPONENT_CAT1C)
359360
IRQn_Type irqn = (IRQn_Type)(irqmap->irqno + PORT_GET(irqmap->port));

bsp/Infineon/libraries/HAL_Drivers/drv_i2c.c

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,24 @@
66
* Change Logs:
77
* Date Author Notes
88
* 2022-07-08 Rbb666 first implementation.
9+
* 2025-04-21 Hydevcode adapt xmc7100d
910
*/
1011

1112
#include "board.h"
1213

1314
#if defined(RT_USING_I2C)
14-
#if defined(BSP_USING_HW_I2C2) || defined(BSP_USING_HW_I2C3) || defined(BSP_USING_HW_I2C4)|| defined(BSP_USING_HW_I2C6)
15+
#if defined(BSP_USING_HW_I2C1) || defined(BSP_USING_HW_I2C2) || defined(BSP_USING_HW_I2C3) || defined(BSP_USING_HW_I2C4)|| defined(BSP_USING_HW_I2C6)
1516
#include <rtdevice.h>
1617

18+
#ifndef I2C1_CONFIG
19+
#define I2C1_CONFIG \
20+
{ \
21+
.name = "i2c1", \
22+
.scl_pin = BSP_I2C1_SCL_PIN, \
23+
.sda_pin = BSP_I2C1_SDA_PIN, \
24+
}
25+
#endif /* I2C1_CONFIG */
26+
1727
#ifndef I2C2_CONFIG
1828
#define I2C2_CONFIG \
1929
{ \
@@ -53,6 +63,9 @@
5363

5464
enum
5565
{
66+
#ifdef BSP_USING_HW_I2C1
67+
I2C1_INDEX,
68+
#endif
5669
#ifdef BSP_USING_HW_I2C2
5770
I2C2_INDEX,
5871
#endif
@@ -84,6 +97,10 @@ struct ifx_i2c
8497

8598
static struct ifx_i2c_config i2c_config[] =
8699
{
100+
#ifdef BSP_USING_HW_I2C1
101+
I2C1_CONFIG,
102+
#endif
103+
87104
#ifdef BSP_USING_HW_I2C2
88105
I2C2_CONFIG,
89106
#endif

bsp/Infineon/libraries/HAL_Drivers/drv_spi.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* Date Author Notes
88
* 2022-07-18 Rbb666 first version
99
* 2023-03-30 Rbb666 update spi driver
10+
* 2025-04-27 Hydevcode update spi driver
1011
*/
1112

1213
#include <drv_spi.h>
@@ -28,6 +29,9 @@
2829
#ifdef BSP_USING_SPI3
2930
static struct rt_spi_bus spi_bus3;
3031
#endif
32+
#ifdef BSP_USING_SPI5
33+
static struct rt_spi_bus spi_bus5;
34+
#endif
3135
#ifdef BSP_USING_SPI6
3236
static struct rt_spi_bus spi_bus6;
3337
#endif
@@ -50,6 +54,14 @@ static struct ifx_spi_handle spi_bus_obj[] =
5054
.mosi_pin = GET_PIN(6, 0),
5155
},
5256
#endif
57+
#if defined(BSP_USING_SPI5)
58+
{
59+
.bus_name = "spi5",
60+
.sck_pin = GET_PIN(7, 2),
61+
.miso_pin = GET_PIN(7, 0),
62+
.mosi_pin = GET_PIN(7, 1),
63+
},
64+
#endif
5365
#if defined(BSP_USING_SPI6)
5466
{
5567
.bus_name = "spi6",

bsp/Infineon/libraries/HAL_Drivers/drv_uart.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* Change Logs:
77
* Date Author Notes
88
* 2022-06-29 Rbb666 first version
9+
* 2025-04-21 hydevcode modify xmc7100d uart
910
*/
1011

1112
#include <rtthread.h>
@@ -228,9 +229,10 @@ static rt_err_t ifx_control(struct rt_serial_device *serial, int cmd, void *arg)
228229

229230
/* Enable the interrupt */
230231
#if defined(SOC_SERIES_IFX_XMC)
232+
NVIC_DisableIRQ(UART_NvicMuxN_IRQn);
231233
NVIC_EnableIRQ(UART_NvicMuxN_IRQn);
232234
#else
233-
NVIC_EnableIRQ(uart->config->intrSrc);
235+
NVIC_EnableIRQ(uart->config->UART_SCB_IRQ_cfg->intrSrc);
234236
#endif
235237
break;
236238
}

bsp/Infineon/libraries/HAL_Drivers/drv_uart.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,10 @@
2121
struct ifx_uart_config
2222
{
2323
cyhal_uart_t *uart_obj;
24-
2524
const char *name;
2625
rt_uint32_t tx_pin;
2726
rt_uint32_t rx_pin;
2827
CySCB_Type *usart_x;
29-
#if defined(SOC_SERIES_IFX_XMC)
30-
rt_uint32_t intrSrc;
31-
#else
32-
IRQn_Type intrSrc;
33-
#endif
3428
cy_israddress userIsr;
3529
cy_stc_sysint_t *UART_SCB_IRQ_cfg;
3630
};

0 commit comments

Comments
 (0)