aboutsummaryrefslogtreecommitdiff
path: root/examples/dht22usart
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2015-11-11 15:26:01 +0100
committerKarel Kočí <cynerd@email.cz>2015-11-11 15:26:13 +0100
commit4e773191d447ac434536262a6f204dd991d4ad77 (patch)
treefd3e56c5e7478286f21aa1e808999a1a80179a9f /examples/dht22usart
parent96d4026f492b56ac67779ab8e74ed4c483337ec7 (diff)
downloadavr-ioe-4e773191d447ac434536262a6f204dd991d4ad77.tar.gz
avr-ioe-4e773191d447ac434536262a6f204dd991d4ad77.tar.bz2
avr-ioe-4e773191d447ac434536262a6f204dd991d4ad77.zip
tmp
Diffstat (limited to 'examples/dht22usart')
-rw-r--r--examples/dht22usart/dht22.c2
-rw-r--r--examples/dht22usart/makefile3
2 files changed, 3 insertions, 2 deletions
diff --git a/examples/dht22usart/dht22.c b/examples/dht22usart/dht22.c
index 97a91ee..ec643aa 100644
--- a/examples/dht22usart/dht22.c
+++ b/examples/dht22usart/dht22.c
@@ -3,7 +3,7 @@
#include <util/delay.h>
#include <string.h>
#include "../../usart.h"
-#include "../../sensor_dht22.h"
+//#include "../../sensor_dht22.h"
void rec(uint8_t data) {
if (data == '\r') {
diff --git a/examples/dht22usart/makefile b/examples/dht22usart/makefile
index 214aa63..fb69068 100644
--- a/examples/dht22usart/makefile
+++ b/examples/dht22usart/makefile
@@ -15,7 +15,8 @@ IOE_CFLAGS = -Os -ffunction-sections -fdata-sections -fshort-enums -Wall \
-DCONFIG_IOE_USART_STOPBIT=USART_STOPBIT_SINGLE \
-DCONFIG_IOE_USART_DATABITS=8 \
-DCONFIG_IOE_TIMERS \
- -DCONFIG_IOE_SENSOR_DHT22
+ -DCONFIG_IOE_SENSOR_DHT22 \
+ -DCONFIG_IOE_SENSOR_DHT22_TIMER=COUNTER0_PWM
all: dht22.hex
@echo Now you can flash dht22.hex to your chip.