Skip to content

Commit 175c037

Browse files
committed
chore: store as const volatile
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent f30443c commit 175c037

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎cores/arduino/wiring_pulse.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ unsigned long pulseIn(pin_size_t pin, uint8_t state, unsigned long timeout)
3232
// pulse width measuring loop and achieve finer resolution.
3333
// Calling digitalRead() instead yields much coarser resolution.
3434
pin_size_t bit = digitalPinToBitMask(pin);
35-
__IO uint32_t *portIn = portInputRegister(digitalPinToPort(pin));
35+
__IM uint32_t *portIn = portInputRegister(digitalPinToPort(pin));
3636
uint8_t stateMask = (state ? bit : 0);
3737
unsigned long startMicros = micros();
3838

0 commit comments

Comments
 (0)