From 6940c1d64454c4550d41d5dc14fea2ca5963c231 Mon Sep 17 00:00:00 2001 From: Martino Facchin Date: Mon, 2 Mar 2015 13:33:50 +0100 Subject: pulseIn: modify function to use ASM implementation --- cores/arduino/wiring_private.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cores/arduino/wiring_private.h') diff --git a/cores/arduino/wiring_private.h b/cores/arduino/wiring_private.h index 5dc7d4b..3bd2900 100644 --- a/cores/arduino/wiring_private.h +++ b/cores/arduino/wiring_private.h @@ -43,6 +43,8 @@ extern "C"{ #define sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit)) #endif +uint32_t countPulseASM(volatile uint8_t *port, uint8_t bit, uint8_t stateMask, unsigned long maxloops); + #define EXTERNAL_INT_0 0 #define EXTERNAL_INT_1 1 #define EXTERNAL_INT_2 2 -- cgit v1.2.3-18-g5258