[bsp][esp32-c6] compile SPI when it is selected - #11846
Open
cms19859230182-lang wants to merge 2 commits into
Open
cms19859230182-lang wants to merge 2 commits into
cms19859230182-lang wants to merge 2 commits into
Conversation
Selecting BSP_USING_SPI on C6 links the IDF SPI master. The default image still leaves SPI off, and the peripheral table stays unsupported.
|
👋 感谢您对 RT-Thread 的贡献!Thank you for your contribution to RT-Thread! 为确保代码符合 RT-Thread 的编码规范,请在你的仓库中执行以下步骤运行代码格式化工作流(如果格式化CI运行失败)。 🛠 操作步骤 | Steps
完成后,提交将自动更新至 如有问题欢迎联系我们,再次感谢您的贡献!💐 |
cppcheck follows spi_configure(NULL, NULL) into a dereference. clang-format also wants the macro backslashes left-aligned and a single space around the enum equals.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
BSP_USING_SPIon ESP32-C6 now links the IDF SPI master. The default image still leaves SPI off.SPI2_IOMUX_PIN_NUM_CS. C6 asks forSPI_DMA_DISABLED. Other chips keepSPI_DMA_CH_AUTO.spi_configure()returns-RT_EINVALwhenconfigurationis null. The unusedesp32_spi_init()call that passed NULL is gone.Test plan
RT_USING_SPI,BSP_USING_SPIandBSP_USING_SPI2added tortconfig.h,RT_USING_ADCkept:sconsexit 0.rtthread.binis 466416 bytes.textis 371342. The link includesdrv_spi,spi_common,spi_master,spi_halandgdma.sconsagain: exit 0.rtthread.binis 445408 bytes.textis 340218. The link does not includedrv_spi.