Skip to content

Commit 82b0f4c

Browse files
committed
test/libmake works, oled-mini still in the old stage
1 parent e6320ce commit 82b0f4c

4 files changed

Lines changed: 6 additions & 636 deletions

File tree

test/libmake/Makefile.classic

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ CFLAGS= --debug -mstm8 -DF_CPU=16000000L -DSTM8S103 -DARDUINO=180 \
1717
-I$(LIBBASE)/inc -I/usr/share/sdcc/include/
1818
# -DSUPPORT_ALTERNATE_MAPPINGS
1919

20-
LDFLAGS=-L$(LIBBASE)/src -L/opt/sdcc/share/sdcc/lib/stm8 -lstm8s103 --out-fmt-elf
20+
LDFLAGS=-L$(LIBBASE)/src -L/opt/sdcc/share/sdcc/lib/stm8 -lstm8s103
2121

2222
OBJECTS=$(BASENAME).rel
2323
#SDLIBS=I2C
@@ -39,6 +39,7 @@ $(SDOBJECTS) : %.rel : $(SDUINO)/%.c
3939
$(CC) -c $(CFLAGS) $^ -o $@
4040

4141
$(SDLIBOBJECTS) : %.rel : $(SDUINO)/hardware/sduino/stm8/libraries/%.c
42+
mkdir -p $(dir $@)
4243
$(CC) -c $(CFLAGS) $^ -o $@
4344

4445
flash: $(EXECUTABLE)

test/libmake/libmake.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ All text above, and the splash screen must be included in any redistribution
4545
#error("Height incorrect, please fix Adafruit_SSD1306.h!");
4646
#endif
4747

48-
// empty IRQ handler just to keep the linker happy as we are not using the
49-
// Hardware_Serial library
50-
//void UART1_RX_IRQHandler(void) __interrupt(ITC_IRQ_UART1_RX){}
51-
//void UART1_TX_IRQHandler(void) __interrupt(ITC_IRQ_UART1_TX){}
48+
// empty IRQ handler just to keep the linker happy and stop it from pulling
49+
// in the HardwareSerial library when using the sduino.mk makefile
50+
void UART1_RX_IRQHandler(void) __interrupt(ITC_IRQ_UART1_RX){}
51+
void UART1_TX_IRQHandler(void) __interrupt(ITC_IRQ_UART1_TX){}
5252

5353

5454
void setup()

0 commit comments

Comments
 (0)