Skip to content

Fix us_ticker & gpio bug #7385

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

Closed
wants to merge 2 commits into from
Closed

Fix us_ticker & gpio bug #7385

wants to merge 2 commits into from

Conversation

khj098765
Copy link
Contributor

@khj098765 khj098765 commented Jul 2, 2018

for greenteatest
dualtime : modified about Interrupt callback function check error

for winetinterface
gpio : modified initialize function

Description

Fix problems that could critical section along with adding tests to verify this behavior is fixed.

Tested locally with two targets and all toolchains.

You can see test results link

Pull request type

[*] Fix
[ ] Refactor
[ ] New target
[ ] Feature
[ ] Breaking change

dualtime : modified about Interrupt callback function check error

for winetinterface
gpio : modified initialize function
0xc0170
0xc0170 previously requested changes Jul 2, 2018
GPIOx->INTTYPECLR = 0xFFFF;
//GPIOx->INTPOLSET = 0x0000;
GPIOx->INTTYPESET = 0x0000;
//GPIOx->INTTYPECLR = 0xFFFF;
Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove this commented out code

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did

//A170223 becky
assert_param(IS_GPIO_PIN(GPIO_InitStruct->GPIO_Mode));
////////////////////////////////////////////////////////////
assert_param(IS_GPIO_PUPD(GPIO_InitStruct->GPIO_PuPd));
Copy link
Contributor

Choose a reason for hiding this comment

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

misaligned code line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did

{
px_pcr->Port[pinpos] &= ~(Px_PCR_OD);
}
//if(GPIO_InitStruct->GPIO_Pad & Px_PCR_OD)
Copy link
Contributor

Choose a reason for hiding this comment

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

also remove this code (a reason shall be written in the commit msg why is this being removed)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I did

@khj098765
Copy link
Contributor Author

I did change about your comment.
thank you

@cmonr cmonr dismissed 0xc0170’s stale review July 9, 2018 15:33

Comments addressed.

@cmonr
Copy link
Contributor

cmonr commented Jul 9, 2018

@khj098765 Thanks for addressing the comments.

Would you mind splitting up the first commit such that each bug fix is a single commit? It makes things simpler in case we need to revert something in the future.

@khj098765
Copy link
Contributor Author

khj098765 commented Jul 9, 2018

@cmonr
Can I modify or add past commit messages?
I do not know how to do it.
In the next update, I will separate commit messages by each bug fix.
thank you

@cmonr
Copy link
Contributor

cmonr commented Jul 11, 2018

@khj098765 You can, but the process can be a bit intimidating if you're not use to using some of the more advanced features of git.

This changeset doesn't look too large. If you like, you can open a new PR, with the changes requested, and we can close this one.

@cmonr
Copy link
Contributor

cmonr commented Jul 11, 2018

There are multiple ways to go about splitting a commit. A quick search pointed me to this particular one that explains the process fairly well: https://stackoverflow.com/questions/1440050/how-to-split-last-commit-into-two-in-git/1440200#1440200

@khj098765
Copy link
Contributor Author

I changed another pull request
#7519

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants