Skip to content
This repository was archived by the owner on Apr 16, 2021. It is now read-only.

Commit 6fd0d2b

Browse files
committed
pulseIn: compile only on nRF targets
1 parent c313d1e commit 6fd0d2b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cores/arduino/wiring_pulse.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#include "Arduino.h"
22

3+
#if defined(ARDUINO_ARCH_NRF52840)
4+
35
#include <hal/nrf_timer.h>
46
#include <hal/nrf_gpiote.h>
57
#include <hal/nrf_gpio.h>
@@ -201,3 +203,5 @@ unsigned long pulseInLong(PinName pin, PinStatus state, unsigned long timeout)
201203
{
202204
return pulseIn(pin, state, timeout);
203205
}
206+
207+
#endif

0 commit comments

Comments
 (0)