mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-12 01:53:07 +03:00
added NOT_ON_TIMER and digitalPinToTimer defines to make a liquidcrystal library workd (that uses i2c)
This commit is contained in:
@ -209,6 +209,7 @@ void loop(void);
|
|||||||
// This comes from the pins_*.c file for the active board configuration.
|
// This comes from the pins_*.c file for the active board configuration.
|
||||||
#define digitalPinToPort(pin) (0)
|
#define digitalPinToPort(pin) (0)
|
||||||
#define digitalPinToBitMask(pin) (1UL << (pin))
|
#define digitalPinToBitMask(pin) (1UL << (pin))
|
||||||
|
#define digitalPinToTimer(pin) (0)
|
||||||
#define portOutputRegister(port) ((volatile uint32_t*) GPO)
|
#define portOutputRegister(port) ((volatile uint32_t*) GPO)
|
||||||
#define portInputRegister(port) ((volatile uint32_t*) GPI)
|
#define portInputRegister(port) ((volatile uint32_t*) GPI)
|
||||||
#define portModeRegister(port) ((volatile uint32_t*) GPE)
|
#define portModeRegister(port) ((volatile uint32_t*) GPE)
|
||||||
@ -216,6 +217,7 @@ void loop(void);
|
|||||||
#define NOT_A_PIN -1
|
#define NOT_A_PIN -1
|
||||||
#define NOT_A_PORT -1
|
#define NOT_A_PORT -1
|
||||||
#define NOT_AN_INTERRUPT -1
|
#define NOT_AN_INTERRUPT -1
|
||||||
|
#define NOT_ON_TIMER 0
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
} // extern "C"
|
} // extern "C"
|
||||||
|
Reference in New Issue
Block a user