This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Disable nrf9160 GPIO pins before sleep

I'm looking at the GPIO functions in http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/peripherals/gpio.html, and looking at the function prototype 

static int gpio_pin_configure(structdevice *port, u32_t pin, int flags);

there is no description on which flags are allowed, and what they mean. 

Looking further into the zephyr docs, I found this: https://docs.zephyrproject.org/latest/reference/peripherals/gpio.html

but values here is not accepted by the compiler. Rightclicking on other legal flag values doesn't lead me to definitions either in segger. I now have 2 questions: 

  1. Where are the values described?
  2. Why is standard Zephyr values not accepted, since the nrf9160 should run on Zephyr?

I'm running on mfw-1.1.0.

Tron

 

Parents Reply Children
No Data
Related