Skip to content

Conversation

fpistm
Copy link
Member

@fpistm fpistm commented Apr 29, 2022

It is kind of revert commit 15dc04b.

Note: delayMicroseconds() does not rely anymore on micros() so accuracy is less important.

Fixes #1680

/cc @matthijskooijman

@fpistm fpistm added enhancement New feature or request fix 🩹 Bug fix labels Apr 29, 2022
@fpistm fpistm added this to the 2.3.0 milestone Apr 29, 2022
It is kind of revert commit 15dc04b.

Note:  `delayMicroseconds()` does not rely anymore on `micros()`
so accuracy is less important.

Fixes stm32duino#1680

Signed-off-by: Frederic Pillon <[email protected]>
@fpistm
Copy link
Member Author

fpistm commented May 2, 2022

Hi @matthijskooijman
Could you tell me if it is OK for you?
BR

@fpistm fpistm requested a review from ABOSTM May 9, 2022 09:13
Copy link
Contributor

@ABOSTM ABOSTM left a comment

Choose a reason for hiding this comment

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

LGTM

@fpistm fpistm merged commit 3907739 into stm32duino:main May 10, 2022
@fpistm fpistm deleted the micros_ISR branch May 11, 2022 08:07
@matthijskooijman
Copy link
Contributor

I'm a bit late to the party, have been a bit busy with some other work ;-)

Code looks exactly right to me. I'll see if I can find a little bit more time to also test against my original testcase, but I'm confident this will work correctly.

Thanks!

@fpistm
Copy link
Member Author

fpistm commented May 13, 2022

I've tested your sketch and was not able to reproduce ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request fix 🩹 Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Micros is not ISR-safe

3 participants