1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-25 20:02:37 +03:00

added NOT_ON_TIMER and digitalPinToTimer defines to make a liquidcrystal library workd (that uses i2c)

This commit is contained in:
Duality 2015-06-06 18:28:53 +02:00 committed by Ivan Grokhotkov
parent f12a4309d2
commit 533b6c184b

View File

@ -209,6 +209,7 @@ void loop(void);
// This comes from the pins_*.c file for the active board configuration.
#define digitalPinToPort(pin) (0)
#define digitalPinToBitMask(pin) (1UL << (pin))
#define digitalPinToTimer(pin) (0)
#define portOutputRegister(port) ((volatile uint32_t*) GPO)
#define portInputRegister(port) ((volatile uint32_t*) GPI)
#define portModeRegister(port) ((volatile uint32_t*) GPE)
@ -216,6 +217,7 @@ void loop(void);
#define NOT_A_PIN -1
#define NOT_A_PORT -1
#define NOT_AN_INTERRUPT -1
#define NOT_ON_TIMER 0
#ifdef __cplusplus
} // extern "C"