diff --git a/include/sta/devices/stm32/delay.hpp b/include/sta/devices/stm32/delay.hpp index 81b3bb1..6fbd3c5 100644 --- a/include/sta/devices/stm32/delay.hpp +++ b/include/sta/devices/stm32/delay.hpp @@ -44,7 +44,7 @@ namespace sta * * @param us Microseconds */ - void delayUs(uint16_t us); + void delayUs(uint32_t us); #endif // STA_STM32_DELAY_US_TIM diff --git a/src/devices/stm32/delay.cpp b/src/devices/stm32/delay.cpp index dba0891..3592bf0 100644 --- a/src/devices/stm32/delay.cpp +++ b/src/devices/stm32/delay.cpp @@ -62,7 +62,7 @@ namespace sta return (updateFreq >= 1000000); } - void delayUs(uint16_t us) + void delayUs(uint32_t us) { // Check if the specified timer is usable for microsecond delays. STA_ASSERT(isValidDelayUsTIM());