24 #include "pins_arduino.h" 33 unsigned long pulseIn(uint8_t pin, uint8_t state,
unsigned long timeout)
40 uint8_t stateMask = (state ? bit : 0);
63 unsigned long pulseInLong(uint8_t pin, uint8_t state,
unsigned long timeout)
70 uint8_t stateMask = (state ? bit : 0);
72 unsigned long startMicros =
micros();
76 if (
micros() - startMicros > timeout)
82 if (
micros() - startMicros > timeout)
89 if (
micros() - startMicros > timeout)
unsigned long micros(void)
uint32_t countPulseASM(volatile uint8_t *port, uint8_t bit, uint8_t stateMask, unsigned long maxloops)
#define microsecondsToClockCycles(a)
#define digitalPinToBitMask(P)
unsigned long pulseIn(uint8_t pin, uint8_t state, unsigned long timeout)
unsigned long pulseInLong(uint8_t pin, uint8_t state, unsigned long timeout)
#define portInputRegister(P)
#define clockCyclesToMicroseconds(a)
GLint GLint GLint GLint GLint GLint GLsizei width
#define digitalPinToPort(P)