Skip to content

Commit 3d25457

Browse files
authored
feat(hal): delayMicroseconds(uint64_t)
Allow delayMicroseconds() to use a 64 bits parameter. It has no bad effect if the parameter has less bits.
1 parent 1b15db2 commit 3d25457

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/esp32/esp32-hal-misc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ void delay(uint32_t ms) {
203203
vTaskDelay(ms / portTICK_PERIOD_MS);
204204
}
205205

206-
void ARDUINO_ISR_ATTR delayMicroseconds(uint32_t us) {
206+
void ARDUINO_ISR_ATTR delayMicroseconds(uint64_t us) {
207207
uint64_t m = (uint64_t)esp_timer_get_time();
208208
if (us) {
209209
uint64_t e = (m + us);

0 commit comments

Comments
 (0)