Skip to content

Conversation

@dcpleung
Copy link
Member

Update the intel_s1000_crb test app:
() Update configuration calls to use new flags.
() Separate pin configuration into setting it to input, and
setting the pin for interrupt.
() Use gpio_pin_get/set() instead of gpio_pin_read/write().

Signed-off-by: Daniel Leung [email protected]

@zephyrbot zephyrbot added the area: Tests Issues related to a particular existing or missing test label Jan 16, 2020
@galak galak requested review from MaureenHelm, mnkp and pabigot January 17, 2020 14:05
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.

One minor comment, however IMHO this PR can be also merged as is.

Copy link
Member

@mnkp mnkp Jan 17, 2020

Choose a reason for hiding this comment

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

Since this testcase is dedicated to the specific SoC and we know that gpio_pin_get function implemented by gpio_dw driver always returns 0 (as most of the drivers which control on chip GPIO hardware module) from my perspective it would be OK not to do error handling.

Update the intel_s1000_crb test app:
() Update configuration calls to use new flags.
() Separate pin configuration into setting it to input, and
   setting the pin for interrupt.
() Use gpio_pin_get/set() instead of gpio_pin_read/write().

Signed-off-by: Daniel Leung <[email protected]>
@dcpleung dcpleung force-pushed the gpio_intel_s1000_crb_api_update branch from 2344284 to 1838cc8 Compare January 20, 2020 19:23
@nashif nashif requested a review from MaureenHelm January 20, 2020 23:32
@MaureenHelm MaureenHelm merged commit 0b8c160 into zephyrproject-rtos:topic-gpio Jan 20, 2020
@dcpleung dcpleung deleted the gpio_intel_s1000_crb_api_update branch January 21, 2020 03:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: Tests Issues related to a particular existing or missing test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants