Skip to content

[Time] Review delay #477

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

Merged
merged 5 commits into from
Mar 26, 2019
Merged

[Time] Review delay #477

merged 5 commits into from
Mar 26, 2019

Conversation

fpistm
Copy link
Member

@fpistm fpistm commented Mar 22, 2019

  • Introduce DWT for cortex supporting it (cortex-m3/m4/m7).
  • Use DWT cycle counter to have delayMicroseconds not dependent to interrupt (example with OneWire).
  • Fix rollover for delayMicroseconds with cortex-m0 (no DWT)

Still to provide a delayMicroseconds not dependent to interrupt for cortex-m0 to allow for example OneWire usage with MCU based on this cortex.

Fix #176

fpistm added 5 commits March 22, 2019 09:33
Signed-off-by: Frederic.Pillon <[email protected]>
Signed-off-by: Frederic Pillon <[email protected]>
Signed-off-by: Frederic.Pillon <[email protected]>
Signed-off-by: Frederic.Pillon <[email protected]>
@fpistm fpistm added bug 🐛 Something isn't working enhancement New feature or request fix 🩹 Bug fix labels Mar 22, 2019
@fpistm fpistm added this to the 1.5.1/1.6.0 milestone Mar 22, 2019
@fpistm fpistm self-assigned this Mar 22, 2019
@fpistm fpistm merged commit 1b7da56 into stm32duino:master Mar 26, 2019
@fpistm fpistm deleted the delay branch March 26, 2019 10:10
benwaffle pushed a commit to benwaffle/Arduino_Core_STM32 that referenced this pull request Apr 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working enhancement New feature or request fix 🩹 Bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant