UART write example (#53)
* Rename test functions * rewrite furi API, segfault * make fixes in FURI, log through FURI * add uart write example blank * implement fuprintf instead of fopencookie * add gif, blank page * UART write example description Co-authored-by: Vadim Kaushan <admin@disasm.info>
This commit is contained in:
@@ -111,7 +111,8 @@ startup_stm32l476xx.s
|
||||
|
||||
CPP_SOURCES += ../core/app.cpp
|
||||
|
||||
C_SOURCES += ../core/debug.c
|
||||
C_SOURCES += ../core/log.c
|
||||
C_SOURCES += ../core/tty_uart.c
|
||||
C_SOURCES += ../core/furi.c
|
||||
C_SOURCES += ../core/furi_ac.c
|
||||
|
||||
@@ -131,6 +132,11 @@ C_SOURCES += ../applications/examples/blink.c
|
||||
C_DEFS += -DEXAMPLE_BLINK
|
||||
endif
|
||||
|
||||
ifeq ($(EXAMPLE_UART_WRITE), 1)
|
||||
C_SOURCES += ../applications/examples/uart_write.c
|
||||
C_DEFS += -DEXAMPLE_UART_WRITE
|
||||
endif
|
||||
|
||||
# User application
|
||||
|
||||
# Add C_SOURCES +=, C_DEFS += or CPP_SOURCES += here
|
||||
@@ -253,6 +259,9 @@ all: $(BUILD_DIR)/$(TARGET).elf $(BUILD_DIR)/$(TARGET).hex $(BUILD_DIR)/$(TARGET
|
||||
example_blink:
|
||||
EXAMPLE_BLINK=1 make
|
||||
|
||||
example_uart_write:
|
||||
EXAMPLE_UART_WRITE=1 make
|
||||
|
||||
test:
|
||||
TEST=1 make
|
||||
|
||||
|
Reference in New Issue
Block a user