Skip to content
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

fixed don`t attach device to bus bugs #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kylepengchn
Copy link

参考用例中未挂载设备到总线,Kconfig需添加①SPI总线和②片选引脚项

    config PKG_NRF24L01_DEMO_SPI_BUS_NAME
        string "The spi device name for nrf24l01"
        default "spi0"

    config PKG_NRF24L01_DEMO_CSN_PIN
        int "The csn pin of nrf24l01"
        default -1

@sogwms
Copy link
Owner

sogwms commented Mar 5, 2022

这个要做的话, 我个人更倾向做成一个可选项:是否由demo挂载设备到总线

@kylepengchn
Copy link
Author

demo选项中都提供了csn、irq等引脚配置项,为什么不一步到位,demo里面写好挂载设备到总线,不使用demo,使用者自己去写初始化用例也可以,不妨碍

@sogwms
Copy link
Owner

sogwms commented Mar 11, 2022

现在的 demo 没有要求提供 spi 片选引脚(cs)哦, 那是 nrf24 的 ce 引脚

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants