Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

How to use Gpio in functions?

$
0
0

Hello,

I m trying to use gpio in function parameter. For example;

 void gpioset (x,y) { x=1; y=0; }

X is GpioDataRegs.GPADAT.bit.GPIO0, Y is GpioDataRegs.GPADAT.bit.GPIO1.

I've tried all kinds of ways, but couldn't do it. (struct, pointer etc.)

I have to create this function,I'm waiting for suggestions.Thanks!


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>