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

GPIO pin set as input or output

I am using nrf52832. I am making custom board file .I am little bit confused which function are used for set the pin as output or input.

__STATIC_INLINE void nrf_gpio_cfg_output     (     uint32_t      11    )// LED1

 //input config
 _STATIC_INLINE void nrf_gpio_cfg_input     (     uint32_t      25,nrf_gpio_pin_pull_t  no pull) // p25 data ready   

is it right or not ?

Related