# Using GPIO instead of RTS

**URL:** <https://forum.legato.io/t/using-gpio-instead-of-rts/6108>\
**Category:** Legato Linux distribution (Yocto project)\
**Created:** [February 13, 2022, 10:32am UTC](https://forum.legato.io/t/using-gpio-instead-of-rts/6108 "2022-02-13T10:32:53Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [February 14, 2022, 6:59am UTC](https://forum.legato.io/t/using-gpio-instead-of-rts/6108/11 "2022-02-14T06:59:25Z")

</div>

BTW, if it is kernel driver, you can go to here to see (priority\_test.rar) on how to control GPIO in kernel driver

> [@MCP2515 CAN Data loss](https://forum.legato.io/t/mcp2515-can-data-loss/4928/7):
>
> Seems you did not change the task priority… Attached “priority\_test.rar” is my testing code. In low\_priority\_helloworld.c, I have set the task priority to be 51. In high\_priority\_helloworld.c, I have set the task priority to be 50 which is having lower priority than the other one. If you run the two kernel drivers together, you can check by: root@fx30:~# ps -eo pid,pri,rtprio,cmd | grep LED 4755 91 51 [LED\_flash\_threa] 4786 90 50 [LED\_flash\_threa] 5613 19 - grep LED I …

According to gpiolib-sysfs.c in WP76 FW R13.3 yocto source, GPIO7 of WP76 module is connecting to GPIO\_16 of qualcomm chipset internally.  
So in case you use this in kernel driver layer, you need to use this number instead of GPIO7.

---

_[View the full topic](https://forum.legato.io/t/using-gpio-instead-of-rts/6108)._
