Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed mbed gpio-port api to match gpio api #11690

Merged

Conversation

shuopeng-deng
Copy link

Description

The port configuration api was not correctly setting the port-pins'
direction. Changed the port driver to call the gpio driver for
configuration (read and write still are optimized for port-level
operations) so that the behavior is consistent.

GT-CY8CPROTO_062_4343W-GCC_ARM.txt
GT-CY8CKIT_062_WIFI_BT-GCC_ARM.txt

Pull request type

[x] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

Reviewers

@ARMmbed/team-cypress

Release Notes

The port configuration api was not correctly setting the port-pins'
direction. Changed the port driver to call the gpio driver for
configuration (read and write still are optimized for port-level
operations) so that the behavior is consistent.
@ciarmcom ciarmcom requested review from maclobdell and a team October 15, 2019 21:00
@ciarmcom
Copy link
Member

@shuopeng-deng, thank you for your changes.
@maclobdell @ARMmbed/mbed-os-maintainers please review.

obj->port->OUT_CLR = (~value) & obj->mask;
GPIO_PRT_Type *port_type = Cy_GPIO_PortToAddr(obj->port);
if (obj->mask == 0xff)
{
Copy link
Contributor

Choose a reason for hiding this comment

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

can you fix the style, { should be attached in this function as the rest of the file has it

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 21, 2019

Just one styling issue, otherwise looks fine to me

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 21, 2019

I was able to fix the styling, starting CI now

@mbed-ci
Copy link

mbed-ci commented Oct 21, 2019

Test run: SUCCESS

Summary: 11 of 11 test jobs passed
Build number : 1
Build artifacts

@0xc0170 0xc0170 merged commit 83207ae into ARMmbed:master Oct 22, 2019
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.

None yet

5 participants