-
Notifications
You must be signed in to change notification settings - Fork 5.4k
[bsp]stm32f103-keysking 驱动:uart、pwm、pulse encoder #10330
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 5 commits
3b23b29
0a03782
825140b
d57c201
a3b17cc
f1c7de0
f266d18
cc9e18c
3bcf6d4
613206c
ad3b580
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 |
|---|---|---|
|
|
@@ -5,12 +5,18 @@ system.use_nano: | |
| <<: *scons | ||
| kconfig: | ||
| CONFIG_RT_USING_NANO=y | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| devices.gpio: | ||
| devices.uart: | ||
| <<: *scons | ||
| kconfig: | ||
| - CONFIG_BSP_USING_GPIO=y | ||
| devices.uart: | ||
| - CONFIG_BSP_USING_UART=y | ||
| - CONFIG_USING_SERIAL=y | ||
| devices.servo: | ||
| <<: *scons | ||
| kconfig: | ||
| - CONFIG_BSP_USING_UART=y | ||
| - CONFIG_USING_SERIAL=y | ||
| - CONFIG_BSP_USING_SERVO=y | ||
| devices.pulse_encoder: | ||
| <<: *scons | ||
| kconfig: | ||
| - CONFIG_BSP_USING_PULSE_ENCODER=y | ||
| - CONFIG_BSP_USING_PULSE_ENCODER1=y | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -252,8 +252,8 @@ CONFIG_RT_SERIAL_RB_BUFSZ=64 | |
| # CONFIG_RT_USING_NULL is not set | ||
| # CONFIG_RT_USING_ZERO is not set | ||
| # CONFIG_RT_USING_RANDOM is not set | ||
| # CONFIG_RT_USING_PWM is not set | ||
| # CONFIG_RT_USING_PULSE_ENCODER is not set | ||
| CONFIG_RT_USING_PWM=y | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 这两个驱动默认不用打开吧,保持关闭就好 |
||
| CONFIG_RT_USING_PULSE_ENCODER=y | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 这里保留最小配置即可,其他配置可以用yml来加ci检查和使用。 |
||
| # CONFIG_RT_USING_INPUT_CAPTURE is not set | ||
| # CONFIG_RT_USING_MTD_NOR is not set | ||
| # CONFIG_RT_USING_MTD_NAND is not set | ||
|
|
@@ -1380,6 +1380,7 @@ CONFIG_SOC_SERIES_STM32F1=y | |
| # Onboard Peripheral Drivers | ||
| # | ||
| CONFIG_BSP_USING_USB_TO_USART=y | ||
| # CONFIG_BSP_USING_SERVO is not set | ||
| # end of Onboard Peripheral Drivers | ||
|
|
||
| # | ||
|
|
@@ -1389,6 +1390,15 @@ CONFIG_BSP_USING_GPIO=y | |
| CONFIG_BSP_USING_UART=y | ||
| CONFIG_BSP_STM32_UART_V1_TX_TIMEOUT=2000 | ||
| CONFIG_BSP_USING_UART2=y | ||
| CONFIG_BSP_USING_UART3=y | ||
| CONFIG_BSP_USING_PWM=y | ||
| CONFIG_BSP_USING_PWM3=y | ||
| CONFIG_BSP_USING_PWM3_CH1=y | ||
| # CONFIG_BSP_USING_PWM3_CH2 is not set | ||
| # CONFIG_BSP_USING_PWM3_CH3 is not set | ||
| # CONFIG_BSP_USING_PWM3_CH4 is not set | ||
| # CONFIG_BSP_USING_PWM4 is not set | ||
| # CONFIG_BSP_USING_PULSE_ENCODER is not set | ||
| # CONFIG_BSP_USING_UDID is not set | ||
| # end of On-chip Peripheral Drivers | ||
|
|
||
|
|
||

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.
配置名呢?
Uh oh!
There was an error while loading. Please reload this page.
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.
这个完整内容是:
system.use_nano:
<<: *scons
kconfig:
CONFIG_RT_USING_NANO=y
是开启use_nano的

效果如下:
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.
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.
本地有试过:
scons --attach=system.use_nano 生效吗?
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.
本地试虽然显示成功但是其实没成功,我之前看success了以为没问题了。请问是只有devices开头的命令才会生效吗,我刚才试了一下定义其他类也是失败的
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.
用这个吧,或者不是必须测的就去掉吧。其他bsp已经测过nano了