-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
[bsp][ESP32][esp32c3] add spi driver #9513
Conversation
请问我在想我自己的仓库提交commit的时候没有触发workflow,需要我做什么?这是我第一次提交PR,有错误的地方希望前辈们多多担待 |
还有个问题是我提交的文件更改里有个rtconfig.py文件,这个文件配置了环境变量,但我的位置与主线的默认配置不同。我需要修改.gitignore再重新提交PR么 |
bsp/ESP32_C3/drivers/drv_spi.c
Outdated
* | ||
* Change Logs: | ||
* Date Author Notes | ||
* 2021-12-20 BruceOu first implementation |
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.
感谢提交,这里可以写上自己的github名
bsp/ESP32_C3/drivers/drv_spi.h
Outdated
* | ||
* Change Logs: | ||
* Date Author Notes | ||
* 2021-12-20 BruceOu first implementation |
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/ESP32_C3/main/main.c
Outdated
|
||
void spi_w25q_sample(void) | ||
{ | ||
rt_hw_spi_device_attach(SPI_BUS_NAME, W25Q_SPI_DEVICE_NAME, GPIO_NUM_10 ); |
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/ESP32_C3/rtconfig.h
Outdated
|
||
/* On-chip Peripheral Drivers */ | ||
|
||
#define BSP_USING_GPIO | ||
#define BSP_USING_UART | ||
#define BSP_USING_SPI |
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/ESP32_C3/.config
Outdated
|
||
# | ||
# Data Processing | ||
# | ||
# CONFIG_PKG_USING_ARDUINO_KALMANFILTER is not set | ||
# CONFIG_PKG_USING_ARDUINO_ARDUINOJSON is not set | ||
# CONFIG_PKG_USING_ARDUINO_TENSORFLOW_LITE_MICRO is not set | ||
# CONFIG_PKG_USING_ARDUINO_RUNNINGMEDIAN is not set |
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.
.config rtconfig.h rtconfig.py 如果没有特别修改,不用提交。
不用该.gitignore. 一般永远不git的,需要提交gitignore。 rtconfig.py还是属于需要修改的。 |
bsp/ESP32_C3/main/main.c
Outdated
@@ -10,6 +10,7 @@ | |||
* 2023-10-20 WCX1024979076 add wifi application | |||
*/ | |||
|
|||
#include "rttypes.h" |
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.
这个文件没有特别修改,不用提交
bsp/ESP32_C3/drivers/Kconfig
Outdated
@@ -1,4 +1,5 @@ | |||
|
|||
#include "rtconfig.h" |
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.
???
@mysterywolf CI 有报错 |
我注意到了 LVGL上游主线新改了什么东西导致的,我在给他们提交PR |
拉取/合并请求描述:(PR description)
[
为什么提交这份PR (why to submit this PR)
issuse/5941
你的解决方案是什么 (what is your solution)
add the spi driver for esp32c3
请提供验证的bsp和config (provide the config and bsp)
]
当前拉取/合并请求的状态 Intent for your PR
必须选择一项 Choose one (Mandatory):
代码质量 Code Quality:
我在这个拉取/合并请求中已经考虑了 As part of this pull request, I've considered the following:
#if 0
代码,不包含已经被注释了的代码 All redundant code is removed and cleaned up