Commit Graph

7106 Commits

Author SHA1 Message Date
Meco Man 3782127116 [bsp] format drivers code 2024-03-24 09:18:25 +08:00
Meco Man 6a9c42a19d [bsp][drv_gpio] fix the error code return when pin number is illegal 2024-03-24 09:18:25 +08:00
kk 2549b82bd6
[pin] pin_read/write rt_uint8_t to rt_ssize_t 2024-03-23 14:50:31 -04:00
Siwei Xu b6f725c7e4 [bsp][nxp] Fix scons command can not found 'sdk_dist' 2024-03-23 14:44:28 -04:00
ShaquilleLiu 0b0baf2e4f
[bsp][nxp]修复frdm_mcxn947上 adc设备无法注册及编译不过问题
驱动的Kconfig中添加 BSP_USING_ADC0 宏信息
芯片级的SConscript中添加缺失的 fsl_lpadc.c 和 fsl_spc.c
2024-03-23 14:43:57 -04:00
tianshnegming 2cb9d2bc94
[bsp][at32]修复由于ADC转换完成标志未清除导致ADC多通道读取时概率性地通道错位 2024-03-23 14:43:09 -04:00
Jisheng Zhang 15190b5972 [bsp][nxp] fix link error when enabling SPI
/usr/lib/gcc/arm-none-eabi/13.2.1/../../../arm-none-eabi/bin/ld: rt-thread/bsp/nxp/mcx/mcxn/Libraries/drivers/drv_spi.o: in function `spixfer':
rt-thread/bsp/nxp/mcx/mcxn/Libraries/drivers/drv_spi.c:150:(.text.spixfer+0x102): undefined reference to `LPSPI_MasterTransferEDMA'
/usr/lib/gcc/arm-none-eabi/13.2.1/../../../arm-none-eabi/bin/ld: rt-thread/bsp/nxp/mcx/mcxn/Libraries/drivers/drv_spi.c:160:(.text.spixfer+0x16c): undefined reference to `LPSPI_MasterTransferEDMA'
/usr/lib/gcc/arm-none-eabi/13.2.1/../../../arm-none-eabi/bin/ld: rt-thread/bsp/nxp/mcx/mcxn/Libraries/drivers/drv_spi.o: in function `rt_hw_spi_init':
rt-thread/bsp/nxp/mcx/mcxn/Libraries/drivers/drv_spi.c:211:(.text.rt_hw_spi_init+0x22e): undefined reference to `LPSPI_MasterTransferCreateHandleEDMA'
2024-03-21 23:12:56 -04:00
Shell 1b07378261
[bsp] update config for vexpress a9 (#8652)
Signed-off-by: Shell <smokewood@qq.com>
2024-03-21 20:03:18 +08:00
qiujingbao 0499617556
[bsp][CV1800B] add POR driver which support reboot 2024-03-21 01:13:52 -04:00
Rbb666 f3cbb8d58e [bsp][driver][Infineon]Fix timer interrupt callback conflict 2024-03-21 01:11:39 -04:00
Meco Man 3f26998f9c [bsp] update projects 2024-03-21 11:23:29 +08:00
Evlers e25f287ff3
[bsp][gd32][drivers] add serial v2 and dma driver support 2024-03-20 21:19:26 -04:00
Jingbao Qiu 9e6ca17259 [bsp][CV1800B] add RTC Alarm function for CV1800B
Signed-off-by: Jingbao Qiu <qiujingbao.dlmu@gmail.com>
2024-03-20 18:22:20 -04:00
Yuqiang Wang 73850e24c6 Disable unnecessary user menu configuration 2024-03-20 22:43:55 +08:00
Yuqiang Wang 9d4b20c0fa commit 2024-03-20 22:43:55 +08:00
Yuqiang Wang 489e7c3126 keep necessary file for mdk 2024-03-20 22:43:55 +08:00
Yaochenger d3aedc7bf2 [bsp][gd32]Update mdk project 2024-03-20 02:30:16 -04:00
Rbb666 cf77937dac {bsp][Infineon]Update Infineon mdk project. 2024-03-20 02:28:55 -04:00
Ruixuan Zhang bc85f5aaf4
[bsp][stm32]Add stm32l431-tencentos-tiny-EVB_MX+ remaining drivers 2024-03-19 19:06:54 -04:00
StackYuan a582c0cc31 [fix] NXP bsp for RT-Thread 5.1.0 fixed up. 2024-03-19 08:13:00 -04:00
Jiabing c8851d15a8
[bsp][ST]Update mdk project 2024-03-19 08:07:33 -04:00
rbb666 1162b55c86 [bsp][stm32]Update mdk project 2024-03-19 08:04:12 -04:00
Yaochenger 0689748eaf
[bsp] 更新GD32 rtconfig.h中的配置新 2024-03-19 08:02:37 -04:00
rbb666 08d75e613f [bsp][stm32]Update stm32l5 mdk project 2024-03-19 08:01:39 -04:00
Yuqiang Wang 4d7071a1d5 [bsp][stm32] Standardize the pin configuration 2024-03-19 08:01:19 -04:00
Zhang 2b5bff15b0 [bsp][nxp] 在FRDM-MCXN947上增加UART5/UART2并精简代码 2024-03-19 11:15:32 +08:00
Jingbao Qiu 42e8191b34 [bsp][CV1800B] fix cv1800b polarity reversal error
Signed-off-by: Jingbao Qiu <qiujingbao.dlmu@gmail.com>
2024-03-18 20:46:43 -04:00
Rbb666 2d7770ecdc [bsp][renesas]Update mdk project 2024-03-18 20:38:58 -04:00
Meco Man 6071e8aa14 [bsp][stm32g474-nucleo][RTduino] support SPI 2024-03-17 12:30:56 -04:00
Meco Man cd1c08b3cd
[bsp][RTduino] format Kconfig (#8621) 2024-03-17 19:49:34 +08:00
Meco Man aa49e8ada9 [bsp][stm32pandora] fix SConscript gramma issues 2024-03-16 23:31:54 -04:00
Meco Man 9ac8b47eb2 [sensor-v2] enable sensor v2
fix the confilcts with sensor v1
2024-03-16 23:31:54 -04:00
Meco Man b3e073864f [stm32][stm32f103-100ask-pro] fix missing drv_gpio.h in spi_flash_init.c 2024-03-16 23:31:40 -04:00
Z8MAN8 d7b66c62de [bsp][bl]update adc driver 2024-03-16 16:21:26 -04:00
Meco Man 7f3f6e9beb [bsp][stm32f469-disc][RTduino] fix Kconfig 2024-03-16 10:21:58 -04:00
Meco Man 7218127a83 [bsp][stm32f072-nucleo][RTduino] support SPI 2024-03-16 10:21:58 -04:00
Ruixuan Zhang 5a6b5be77c
[bsp][stm32] add a new stm32L431_tencentos bsp (#8613) 2024-03-15 22:19:14 -04:00
刘伟 0ff23d8951 [bsp][stm32] eth driver support phy YT8512C 2024-03-15 19:12:46 -04:00
Yuqiang Wang 62b0d4fd2e
[bsp][HMIBoard] config rtduino peripheral with HMI (#8610) 2024-03-14 18:20:33 -04:00
Yuqiang Wang 6aa1442f64 [bsp][renesas] add renesas soft spi driver 2024-03-14 11:38:28 +08:00
zhangyan fad78950ea
[bsp/phytium]Adapter aarch64/aarch32 (#8580) 2024-03-13 18:07:03 +08:00
kurisaW 15125bdba0 [bsp][renesas] add ra8 en docs 2024-03-12 11:04:26 +08:00
Zhang 55a5c20661 [bsp][nxp] 在FRDM-MCXN947上增加UART5/UART2 2024-03-11 18:05:00 +08:00
Meco Man 2b7a4ea7a3 [bsp][nxp][imx] move imx BSPs into nxp/imx folder 2024-03-10 23:19:22 -04:00
Meco Man f71d4f33ea [bsp][nxp][lpc] move lpc BSPs into nxp/lpc folders 2024-03-10 23:19:22 -04:00
Meco Man 46967ef56f [bsp][nxp][mcx] move mcxa/n to nxp/mcx folder 2024-03-10 23:19:22 -04:00
Meco Man adaa44c911 [bsp][stm32f469-disco] support RTduino SPI 2024-03-09 21:43:23 -05:00
Meco Man b85c4cade2 [bsp][stm32] format code of i2c hardware drivers 2024-03-08 13:29:32 +08:00
Dyyt587 4e1626703f
[bsp][stm32] add hardware i2c driver 2024-03-07 22:59:47 -05:00
Meco Man 384a370c9a [stm32][tim-config] fix F4 TIM6's IRQ source in STM32F412 2024-03-08 09:39:57 +08:00
Meco Man 5f87e10032 [stm32f469-disc] support RTduino Tone feature 2024-03-08 09:39:57 +08:00
Meco Man 1a240798fa [RTduino] pins_arduino.h add limit check 2024-03-08 09:39:57 +08:00
Meco Man e961b051f9 [stm32f412-nucleo] support RTduino Tone feature 2024-03-08 09:39:57 +08:00
sp-cai cddab69d77 [BSP][HC32] drv_usart.c fix macro switch error 2024-03-07 20:26:14 -05:00
Shicheng Chu 5d70f98e4d
[bsp][cvitek] add rtc driver (#8586) 2024-03-07 17:18:53 -05:00
Zhang c3416c5868 [bsp][nxp]修复FRDM-MCXN947 Keil编译错误 2024-03-07 18:15:13 +08:00
Rbb666 d31c05a44c [tools]Fix project compilation errors generated by mdk and iar 2024-03-05 19:53:53 -05:00
Rbb666 784f764a27 Update the description of RA BSP and add the vision board 2024-03-05 16:47:43 +08:00
Rbb666 e1b80650d9 [bsp][renesas]add ra8d1-vision-board support 2024-03-05 16:47:43 +08:00
Wind 859781232c
Bug fixed while using UTEST framework (#8577) 2024-03-05 10:25:28 +08:00
Z8MAN8 5e892607fa [bsp][cvitek] add wdt driver 2024-03-03 14:40:15 -05:00
flyingcys aa04a59805
[bsp/cvitek]add pwm driver (#8571) 2024-03-02 16:16:22 +08:00
zhangyan 76202e2141
🎯 [libcpu/arm/cortex-a]修改arm/cortex-a启动方式,解决cortex-a开启SMP工作异常问题 (#8517)
Co-authored-by: wangzongqiang <wangzongqiang1322@phytium.com.cn>
2024-03-02 16:06:07 +08:00
Shell 53754ff50a
[fixup] check NULL pointer before access (#8573)
Signed-off-by: Shell <smokewood@qq.com>
2024-03-02 16:05:19 +08:00
Rbb666 bb8dcbc42a
[bsp][nxp-mcx]修改默认下载器为Dap-Link (#8569) 2024-02-29 19:21:13 -05:00
flyingcys 3816d9fba4
[bsp/cvitek]add adc driver (#8562) 2024-02-28 00:04:31 +08:00
sheltonyu b14f299e7d
[bsp/at32] update usb host driver (#8560) 2024-02-26 23:17:07 -05:00
Yilin Sun 1f69929b0b [bsp][nxp/mcxn] Add support for MCXN CTIMER PWM driver.
This patch adds support for PWM generation using CTIMER on MCXN devices.

Each CTIMER provides 4 PWM channels, channels sharing the same
CTIMER instance will have the same period settings, and the duty
cycle will be maintained if period is changed through one of the four
channels.

The period channel is automatically assigned and will be transferred
to one of the other available channels if that channel is used for PWM
generation, no glitches should be expected during the transition.

The patch also provides a sample PWM output configuration connected to
the on-board green LED which can be enabled through Kconfig.

Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-02-26 23:16:43 -05:00
Meco Man 0400fffafc [stm32f412] support RTduino SPI 2024-02-23 19:50:33 -05:00
Shell 71560bafb5
🎯 Sync smart & scheduler codes (#8537)
Signed-off-by: Shell <smokewood@qq.com>
Co-authored-by: xqyjlj <xqyjlj@126.com>
2024-02-23 17:49:15 +08:00
skllii 6fe69d7431
[bsp][hc32] support hc32f448 2024-02-22 12:34:35 -05:00
Yilin Sun c224278d3e [bsp][nxp/mcxn] hwtimer: initial support for MRT.
This patch adds support for hwtimer using MRT0 instance which simulates
4 independent timers. The frequency is fixed to AHB bus frequency and
not adjustable.

Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-02-21 18:01:17 -05:00
Yilin Sun 1b81128747 [bsp][nxp/mcxn] kconfig: update hwtimer config.
Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-02-21 18:01:17 -05:00
Yuqiang Wang c6bdee3c50
[ci] open ci check with function declaration warning (#8546) 2024-02-20 22:45:04 -05:00
Yilin Sun fd4e390d10 [bsp][mcxa] FRDM-MCXA153: GNU toolchain: fixed flags.
Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-02-20 18:24:21 -05:00
Yilin Sun e28ea7ad97 [bsp][nxp/mcxa] FRDM-MCXA153: Added GNU linker script.
Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-02-20 18:24:21 -05:00
Wangzongqiang 28f3e037b6
[bsp][phytium ] support dc driver with ops
修改bsp/phytium中DC驱动接口,利用ops注册相关驱动
2024-02-19 21:51:58 -05:00
Yilin Sun 9538f569e7 [bsp][nxp/mcxn10] Initial support for RTC driver.
Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-02-19 19:17:52 -05:00
yandld 66cc1f5da1 [bsp][nxp] fix gpio and sw pin issue 2024-02-19 12:06:01 -05:00
Jiangrunnan 4cbc1a41f6 [GD32_ARM] Fix bugs in drv_adc when enable multiple channel. 2024-02-19 01:24:37 -05:00
Yilin Sun 49c8ff2531 [bsp][nxp/mcxn10] GNU toolchain: fix broken port.
Details: Please check #8525

Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-02-18 23:38:56 -05:00
Yilin Sun 08983b74c5 [bsp][nxp/mcxn10] Add RTT constant table sections to GNU lds.
Details: Please check #8525

Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-02-18 23:38:56 -05:00
Meco Man a8629421ba [ci][attach] add AT CI check attach files 2024-02-18 21:28:45 -05:00
flyingcys ac2f7f05bf
[bsp][cvitek] 修复cv1800b默认中断号的配置问题 2024-02-18 12:42:06 -05:00
Shicheng Chu 0c000b403f
添加 BSP_USING_WIFI 宏控制 (#8536) 2024-02-16 20:20:42 +08:00
Shicheng Chu abba40183e
[bsp][cvitek]: add c906_little i2c driver (#8535) 2024-02-15 18:05:39 -05:00
杨熙 41e08084f8
Bsp nxp support (#8530)
Co-authored-by: StackYuan <yuanjyjyj@outlook.com>
2024-02-16 00:30:50 +08:00
Meco Man 35eea4bc46
[ci][arduino] 将Arduino库CI检查平台由STM32F411改为412 (#8534) 2024-02-13 21:51:23 +08:00
Yilin Sun 4570a9047d [bsp][lpc55sxx] GNU toolchain: fix broken port.
1 - The current linker flags undefines `Reset_Handler' and uses `entry()' as
default entry point (specified by `-e'), which will cause a invalid reset
vector in the image without proper crt0 init assembly routine.

2 - The default startup files provided by NXP violate the crt0 assumption
that bss section will be filled with zero unless macro `__STARTUP_CLEAR_BSS'
is defined. This will cause RTT hook funtion pointers set to non-NULL values at
kernel start, thus successfully passes the `RT_nnnn_HOOK_CALL` checks
and jumps to an invalid pointer.

3 - The default heap size used by TCB and kernel objects are set by
linker file macros, which is 0x400 (1024 bytes). The size is too small
for main task and the allocation will fail before the first task being created.

This patch restores Reset_Handler as default reset vector and executes
entry by replacing __START from newlib, defines the
`__STARTUP_CLEAR_BSS` macro to forcibly zeroize the bss section to avoid
unexpected hard faults, set proper heap sizes based on the SRAM sizes.
Some unused compiler/linker flags are also removed or replaced to avoid
future confusion.

The heap sizes for different devices are:
* LPC55(S)69/LPC55(S)28:            64kB
* LPC55(S)06/LPC55(S)16/LPC55(S)36: 32kB

Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-02-07 21:57:28 -05:00
Yilin Sun 7be9ae16b3 [bsp][lpc55sxx] Add RTT constant table sections to GNU lds.
The following RTT constant table sections are missing from the linker
script which will cause non-functional image:

* .rti_fn*
* FSymTab
* VSymTab

Add these sections after .text sections.

Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-02-07 21:57:28 -05:00
Yilin Sun d7c05bfe8d [bsp][lpc55sxx] Update default configs for LPC5500 series.
Fixes compilation errors on mainline RTT versions.

Signed-off-by: Yilin Sun <imi415@imi.moe>
2024-02-07 21:57:28 -05:00
Shicheng Chu cfcc72ee8a
[bsp][stm32] add English README for stm32h5 2024-02-04 09:54:27 -05:00
yangpeng 25d3136d02 fix MDK AC5 build warnings 2024-02-03 21:43:08 -05:00
kurisaw d5e2df46e5 [bsp][hmi-board] Optimize hardware driver configuration and trim the project file volume 2024-02-03 16:47:32 +08:00
Meco Man e0155f47a6 [ci][bsp][pico] add lvgl attachconfig file 2024-02-02 21:23:01 +08:00
Meco Man 74d7ca7dbd [bsp][pico] add board/Kconfig 2024-02-01 21:29:15 +08:00
yandld bfa2f7ca57 [bsp][nxp] add mcxn947 2024-02-01 06:56:41 +08:00
kurisaw b68957113c [bsp][renesas] Optimize startup check script structure 2024-01-29 17:38:14 +08:00
flyingcys a07442edf9
add cvitek/c906_little (#8514) 2024-01-29 09:13:21 +08:00
Shicheng Chu c9abc1ba25
[bsp][pico]: support pwm adc iic for pico rtduino (#8512) 2024-01-28 21:02:26 +08:00