aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-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.