aboutsummaryrefslogtreecommitdiff
path: root/examples/usartecho/makefile
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-10-11 14:13:02 +0200
committerKarel Kočí <cynerd@email.cz>2015-10-11 14:16:52 +0200
commit62c4883af719f5bacd197257387a0071c625e469 (patch)
treec8f37c013c8263f818375d5b45606c10584a7646 /examples/usartecho/makefile
parent861ed124caf5a403748c948b88afa4ef89cc1787 (diff)
downloadavr-ioe-62c4883af719f5bacd197257387a0071c625e469.tar.gz
avr-ioe-62c4883af719f5bacd197257387a0071c625e469.tar.bz2
avr-ioe-62c4883af719f5bacd197257387a0071c625e469.zip
Replace usart initialization parameters with configuration
Baudrate and other configurations are now defined in compile time by preprocessor flags. This simplifies output code.
Diffstat (limited to 'examples/usartecho/makefile')
-rw-r--r--examples/usartecho/makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/usartecho/makefile b/examples/usartecho/makefile
index 7475127..48a713c 100644
--- a/examples/usartecho/makefile
+++ b/examples/usartecho/makefile
@@ -5,10 +5,14 @@ F_CPU = 16000000L
IOE_PREFIX = ../..
IOE_CFLAGS = -Os -ffunction-sections -fdata-sections -fshort-enums -Wall \
-DCONFIG_IOE_USART_OUTBUFFER_SIZE=64 \
- -DCONFIG_IOE_USART_OUTBUFFER_MODE=0
+ -DCONFIG_IOE_USART_OUTBUFFER_MODE=0 \
+ -DCONFIG_IOE_USART_BAUD=115200 \
+ -DCONFIG_IOE_USART_PARITY=USART_PARITY_NONE \
+ -DCONFIG_IOE_USART_STOPBIT=USART_STOPBIT_SINGLE \
+ -DCONFIG_IOE_USART_DATABITS=8
all: usart.hex
- @echo Flash usart.hex to chip
+ @echo Now you can flash usart.hex to your chip.
clean: ioeclean
$(RM) echo.o