Setting a GPIO pin to high inside the wake stub

mustafacc
Posts: 12
Joined: Fri Sep 01, 2017 12:39 am

Setting a GPIO pin to high inside the wake stub

Postby mustafacc » Wed Nov 08, 2017 4:13 am

Is it possible to set an RTC GPIO pin to high inside the wake stub?

Cheers,
Mustafa

mustafacc
Posts: 12
Joined: Fri Sep 01, 2017 12:39 am

Re: Setting a GPIO pin to high inside the wake stub

Postby mustafacc » Wed Nov 08, 2017 6:51 am

Got it:

I can use gpio_output_set from gpio.h library:

to trigger a pin to HIGH, find the pin register, i.e. for IO4 it is BIT4 and:

Code: Select all

gpio_output_set(BIT4, 0, BIT4, 0);
similarly, to trigger the pin to low:

Code: Select all

gpio_output_set(0, BIT4, BIT4, 0);

Who is online

Users browsing this forum: Bing [Bot] and 92 guests