Skip to content

Conversation

@jfischer-no
Copy link
Contributor

drivers: enc424j600/enc28j60: convert to new GPIO API

Convert ENC424J600 controller driver to new GPIO API.

Signed-off-by: Johann Fischer <[email protected]>
Convert ENC28J60 controller driver to new GPIO API.

Signed-off-by: Johann Fischer <[email protected]>
}
gpio_pin_interrupt_configure(context->gpio,
config->gpio_pin,
GPIO_INT_EDGE_TO_ACTIVE);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't GPIO_INT_ENABLE missing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GPIO_INT_ENABLE is a part of GPIO_INT_EDGE_TO_ACTIVE macro.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, the documentation is a bit misleading

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GPIO_INT_EDGE_TO_ACTIVE is a convenience macro targeted at users of the GPIO API. GPIO_INT_ENABLE is a macro targeted at the GPIO driver developers. In the doxygen generated documentation only convenience flags will be visible. This is fairly popular convention. Nevertheless, if someone has an idea how this can be improved it's not too late.

@carlescufi carlescufi merged commit c7f1a3a into zephyrproject-rtos:topic-gpio Jan 24, 2020
@jfischer-no jfischer-no deleted the gpio-eth_enc branch January 28, 2020 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants