-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Fix us_ticker & gpio bug #7385
Conversation
dualtime : modified about Interrupt callback function check error for winetinterface gpio : modified initialize function
GPIOx->INTTYPECLR = 0xFFFF; | ||
//GPIOx->INTPOLSET = 0x0000; | ||
GPIOx->INTTYPESET = 0x0000; | ||
//GPIOx->INTTYPECLR = 0xFFFF; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
misaligned code line
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did
I did change about your comment. |
@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. |
@cmonr |
@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. |
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 |
I changed another pull request |
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