Skip to content

Conversation

@galak
Copy link
Contributor

@galak galak commented Oct 22, 2019

As the mmio32 is more of a library than a proper driver, just implement
the new port functions and have pin_interrupt_configure marked pretty
much as not supported.

Signed-off-by: Kumar Gala [email protected]

@galak galak requested review from mnkp and pabigot as code owners October 22, 2019 17:08
@galak galak changed the title drivers: mmio32: update to use new GPIO API [TOPIC-GPIO] drivers: mmio32: update to use new GPIO API Oct 22, 2019
Copy link
Member

@mnkp mnkp left a comment

Choose a reason for hiding this comment

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

LGTM, however there is still some old code in gpio_mmio32_config function using GPIO_DIR_*, GPIO_POL_* flags. We could also remove invert field from struct gpio_mmio32_context in include/drivers/gpio/gpio_mmio32.h. The gpio_mmio32_write, gpio_mmio32_read functions should use invert field from struct gpio_driver_data.

@galak
Copy link
Contributor Author

galak commented Oct 23, 2019

LGTM, however there is still some old code in gpio_mmio32_config function using GPIO_DIR_*, GPIO_POL_* flags. We could also remove invert field from struct gpio_mmio32_context in include/drivers/gpio/gpio_mmio32.h. The gpio_mmio32_write, gpio_mmio32_read functions should use invert field from struct gpio_driver_data.

made some changes, so hopefully all this is clean up.

@zephyrbot zephyrbot added the area: API Changes to public APIs label Oct 23, 2019
Copy link
Member

@mnkp mnkp left a comment

Choose a reason for hiding this comment

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

LGTM with one minor comment.

As the mmio32 is more of a library than a proper driver, just implement
the new port functions and have pin_interrupt_configure marked pretty
much as not supported.

Signed-off-by: Kumar Gala <[email protected]>
@galak galak merged commit 4129037 into zephyrproject-rtos:topic-gpio Oct 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: API Changes to public APIs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants