小内核' lk' GPIO切换

发布于 2025-02-10 22:11:22 字数 502 浏览 2 评论 0原文

在与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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

撞了怀 2025-02-17 22:11:22

对于我使用的董事会,这是我进行长期研究后能做的最好的事情。
函数定义为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/.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文