From bfcfa4cf67bad25ccba5ff735967d4c6abff899c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 15 Dec 2017 09:20:30 +0100 Subject: Add support for ESP8266 secondary LED --- src/arch/esp8266/Makefile.inc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/arch/esp8266/Makefile.inc') diff --git a/src/arch/esp8266/Makefile.inc b/src/arch/esp8266/Makefile.inc index 0484985..a4b9831 100644 --- a/src/arch/esp8266/Makefile.inc +++ b/src/arch/esp8266/Makefile.inc @@ -21,6 +21,10 @@ TARGETS += src/arch/esp8266/driver/stdout.cc src/arch/esp8266/driver/uptime.cc OBJECTS = ${TARGETS:.cc=.o} +ifeq (${esp8266_led2}, 1) + COMMON_FLAGS += -DLED_ON_GPIO16 +endif + .cc.o: ${CXX} ${INCLUDES} ${COMMON_FLAGS} ${CXXFLAGS} -c -o $@ ${@:.o=.cc} ${OBJCOPY} --rename-section .text=.irom0.text --rename-section .literal=.irom0.literal $@ -- cgit v1.2.3