小内核' lk' GPIO切换
在与Thye Little内核一起为我的板上工作时,与Quactel SC-20板一起工作,试图通过切换连接到 PIN 110 的LED来自定义启动序列。 我导航到不同的文件夹,并获得了不同的功能,可以与gpio一起使用kernel/main中的gpio。
gpio_tlmm_config(BOOTLED_STATUS_PIN, 0, GPIO_OUTPUT, GPIO_PULL_UP, GPIO_16MA, GPIO_ENABLE);
借助我可以看到的LED的非常昏暗的光线 而如果我更改gpio_pull_up - > to->然后,gpio_no_pull LED未打开。
尝试使用reg.h文件中定义的功能
writel(1, (uint32_t *)GPIO_IN_OUT_ADDR(BOOTLED_STATUS_PIN));
我 您的建议也可以以建设性的方式帮助我 事先感谢您的帮助
while working with thye little kernel for my board which is working with a quactel sc-20 board tried to customize the bootup sequence by toggling the led which is connected to pin 110.
I navigated to different folders and got different functions to work with the gpio referring to that inside kernel/main.c I call the required and relevant function to toggle my gpio.
gpio_tlmm_config(BOOTLED_STATUS_PIN, 0, GPIO_OUTPUT, GPIO_PULL_UP, GPIO_16MA, GPIO_ENABLE);
with help of this very dim light of the led I can see but that looks like due to weak pullup as there is no pull-up register is connected
whereas if I change GPIO_PULL_UP ->to-> GPIO_NO_PULL then led is not turning on.
I tried to use the function which is defined in reg.h file but that also didn't help me out
writel(1, (uint32_t *)GPIO_IN_OUT_ADDR(BOOTLED_STATUS_PIN));
I am struggling to reach up to the solution please guide me with the suggestion or solution
your suggestion can also help me in constructive way
thanks in advance for the help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于我使用的董事会,这是我进行长期研究后能做的最好的事情。
函数定义为GPIO_SET和GPIO_CONFIG,但Bootloader/LK/中没有可用的定义。
For the board I am using, this is the best possible thing I can do after doing long research.
functions are defined as gpio_set and gpio_config but there is no definition available in the bootloader/lk/.