Skip to content

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 <frederic.pillon@st.com>
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
@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