Re: #nrf52840 #gpio #nrf52840 #gpio


Christopher Friedt
 

Hi Narendar,

On Tue, Apr 7, 2020 at 9:26 AM Narendar Malepu
<narendarm@...> wrote:
Previously worked on zephyr branch(2.1.0) but now i want to move to master branch(2.2.99).
When I trying to compile application getting below warning for all gpio functions
warning: 'gpio_pin_write' is deprecated [-Wdeprecated-declarations]
I recently encountered the same issue. It was a relatively painless
fix (thanks btw to the Zephyr devs who made the transition so easy).

Write:
gpio_pin_write(dev, pin, val) => gpio_pin_set(dev, pin, val)

Read:
u32_t state;
gpio_pin_read(dev, pin, &state) => state = gpio_pin_get(dev, pin)

Configure:
gpio_pin_configure(dev, pin, GPIO_DIR_OUT) => gpio_pin_configure(dev,
pin, GPIO_OUTPUT)

Cheers,

C

Join devel@lists.zephyrproject.org to automatically receive all group messages.