-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[add][RTduino] Fitter RTduino in frdm-mcxa346 #11067
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
597ac31
6d0732e
9c3acc6
2345544
41a7835
2d62f61
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| CONFIG_PKG_USING_RTDUINO=y | ||
| CONFIG_PKG_RTDUINO_PATH="/packages/arduino/RTduino" | ||
| CONFIG_RTDUINO_THREAD_SIZE=2048 | ||
| CONFIG_RTDUINO_THREAD_PRIO=30 | ||
| CONFIG_RTDUINO_SUPPORT_HIGH_PRECISION_MICROS=y | ||
| CONFIG_PKG_USING_RTDUINO_LATEST_VERSION=y | ||
| CONFIG_PKG_RTDUINO_VER="latest" | ||
| CONFIG_BSP_USING_I2C=y | ||
| CONFIG_BSP_USING_I2C3=y | ||
| CONFIG_BSP_USING_SPI=y | ||
| CONFIG_BSP_USING_SPI1=y | ||
| CONFIG_BSP_USING_ADC=y | ||
| CONFIG_BSP_USING_PWM=y | ||
| CONFIG_BSP_USING_ARDUINO=y |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| /* | ||
| * Copyright (c) 2006-2023, RT-Thread Development Team | ||
| * | ||
| * SPDX-License-Identifier: Apache-2.0 | ||
| * | ||
| * Change Logs: | ||
| * Date Author Notes | ||
| * 2025-12-08 westcity-yolo first version | ||
| * | ||
| */ | ||
|
|
||
| #include <Arduino.h> | ||
|
|
||
| void setup(void) | ||
| { | ||
| /* put your setup code here, to run once: */ | ||
| Serial.begin(); | ||
| Serial.println("Hello RTduino!"); | ||
| } | ||
|
|
||
| void loop(void) | ||
| { | ||
| /* put your main code here, to run repeatedly: */ | ||
| delay(1000); | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| from building import * | ||
|
|
||
| cwd = GetCurrentDir() | ||
| src = Glob('*.c') + Glob('*.cpp') | ||
| inc = [cwd] | ||
|
|
||
| group = DefineGroup('RTduino-pinout', src, depend = ['PKG_USING_RTDUINO'], CPPPATH = inc) | ||
|
|
||
| Return('group') |
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,49 @@ | ||||||||||
| /* | ||||||||||
| * Copyright (c) 2006-2023, RT-Thread Development Team | ||||||||||
| * | ||||||||||
| * SPDX-License-Identifier: Apache-2.0 | ||||||||||
| * | ||||||||||
| * Change Logs: | ||||||||||
| * Date Author Notes | ||||||||||
| * 2025-12-08 westcity-yolo first version | ||||||||||
|
||||||||||
| * 2025-12-08 westcity-yolo first version | |
| * 2024-12-08 westcity-yolo first version |
Copilot
AI
Jan 6, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing entry for A6 and A7 in pin_map_table. The header file defines A6 (22) and A7 (23) pins, but the pin_map_table only has entries up to A5. This will cause array access issues when these pins are referenced.
pin_map_table中缺少A6和A7的条目。头文件定义了A6(22)和A7(23)引脚,但pin_map_table只有到A5的条目。当引用这些引脚时,这将导致数组访问问题。
| {A5, GET_PINS(1,1),"i2c1"}, /* I2C-SCL (Wire) */ | |
| {A5, GET_PINS(1,1),"i2c1"}, /* I2C-SCL (Wire) */ | |
| {A6, GET_PINS(1,14),"adc1", 12}, /* ADC (alias of A0 to keep sequence) */ | |
| {A7, GET_PINS(2,5), "adc1", 1}, /* ADC (alias of A1 to keep sequence) */ |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,58 @@ | ||||||
| /* | ||||||
| * Copyright (c) 2006-2023, RT-Thread Development Team | ||||||
| * | ||||||
| * SPDX-License-Identifier: Apache-2.0 | ||||||
| * | ||||||
| * Change Logs: | ||||||
| * Date Author Notes | ||||||
| * 2025-12-08 westcity-yolo first version | ||||||
|
||||||
| * 2025-12-08 westcity-yolo first version | |
| * 2024-12-08 westcity-yolo first version |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -139,6 +139,20 @@ menu "On-chip Peripheral Drivers" | |
|
|
||
| endmenu | ||
|
|
||
| menu "Onboard Peripheral Drivers" | ||
|
||
| config BSP_USING_ARDUINO | ||
| bool "Compatible with Arduino Ecosystem (RTduino)" | ||
| select PKG_USING_RTDUINO | ||
| select BSP_USING_UART2 | ||
| select BSP_USING_GPIO | ||
| select BSP_USING_ADC0 | ||
| select BSP_USING_PWM0 | ||
| select BSP_USING_PWM1 | ||
| select BSP_USING_I2C1 | ||
| select BSP_USING_I2C2 | ||
| select BSP_USING_SPI1 | ||
| endmenu | ||
|
|
||
|
|
||
| menu "Board extended module Drivers" | ||
| menuconfig BSP_USING_RW007 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Date format is incorrect - same issue. Should be corrected to "2024-12-08" or current date.
日期格式不正确 - 相同的问题。应更正为"2024-12-08"或当前日期。