aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-10-11 23:21:07 +0200
committerKarel Kočí <cynerd@email.cz>2015-10-11 23:21:07 +0200
commit8fa9db4244f4ee33aa47561c569edfa62fe37928 (patch)
tree96bdc3dd01af3f435facf4aaceb8442b01f657d7 /examples
parent62c4883af719f5bacd197257387a0071c625e469 (diff)
downloadavr-ioe-8fa9db4244f4ee33aa47561c569edfa62fe37928.tar.gz
avr-ioe-8fa9db4244f4ee33aa47561c569edfa62fe37928.tar.bz2
avr-ioe-8fa9db4244f4ee33aa47561c569edfa62fe37928.zip
Fixes in USART and changes in ave-ioe.mk
Diffstat (limited to 'examples')
-rw-r--r--examples/spiblink/makefile3
-rw-r--r--examples/usartecho/makefile1
2 files changed, 3 insertions, 1 deletions
diff --git a/examples/spiblink/makefile b/examples/spiblink/makefile
index a831f86..bb3b94a 100644
--- a/examples/spiblink/makefile
+++ b/examples/spiblink/makefile
@@ -3,7 +3,8 @@ MAKEFLAGS += --no-builtin-rules
MMCU = atmega328p
F_CPU = 16000000L
IOE_PREFIX = ../..
-IOE_CFLAGS ?= -Os -ffunction-sections -fdata-sections -fshort-enums -g -Wall
+IOE_CFLAGS ?= -Os -ffunction-sections -fdata-sections -fshort-enums -g -Wall \
+ -DF_CPU=$(F_CPU) -mmcu=$(MMCU)
.PHONY: all
all: master.hex slave.hex
diff --git a/examples/usartecho/makefile b/examples/usartecho/makefile
index 48a713c..fa10cd2 100644
--- a/examples/usartecho/makefile
+++ b/examples/usartecho/makefile
@@ -4,6 +4,7 @@ MMCU = atmega328p
F_CPU = 16000000L
IOE_PREFIX = ../..
IOE_CFLAGS = -Os -ffunction-sections -fdata-sections -fshort-enums -Wall \
+ -DF_CPU=$(F_CPU) -mmcu=$(MMCU) \
-DCONFIG_IOE_USART_OUTBUFFER_SIZE=64 \
-DCONFIG_IOE_USART_OUTBUFFER_MODE=0 \
-DCONFIG_IOE_USART_BAUD=115200 \