Skip to content

Commit

Permalink
Moved the sht11 driver to its own module
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdunkels committed Jan 26, 2014
1 parent 8bb4860 commit 4cfe6c4
Show file tree
Hide file tree
Showing 18 changed files with 18 additions and 17 deletions.
2 changes: 1 addition & 1 deletion apps/collect-view/collect-view-sky.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "dev/leds.h"
#include "dev/light-sensor.h"
#include "dev/battery-sensor.h"
#include "dev/sht11-sensor.h"
#include "dev/sht11/sht11-sensor.h"

#include "collect-view-sky.h"

Expand Down
4 changes: 2 additions & 2 deletions apps/shell/shell-sky.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
#include "net/netstack.h"
#include "cc2420.h"
#include "dev/leds.h"
#include "dev/sht11.h"
#include "dev/sht11/sht11.h"
#include "dev/light-sensor.h"
#include "dev/battery-sensor.h"
#include "dev/sht11-sensor.h"
#include "dev/sht11/sht11-sensor.h"
#include "net/rime/timesynch.h"

#include "sys/node-id.h"
Expand Down
1 change: 1 addition & 0 deletions dev/sht11/Makefile.dev-sht11
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dev-sht11_src = sht11.c sht11-sensor.c
4 changes: 2 additions & 2 deletions core/dev/sht11-sensor.c → dev/sht11/sht11-sensor.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@

#include "contiki.h"
#include "lib/sensors.h"
#include "dev/sht11.h"
#include "dev/sht11-sensor.h"
#include "dev/sht11/sht11.h"
#include "dev/sht11/sht11-sensor.h"

const struct sensors_sensor sht11_sensor;

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion core/dev/sht11.c → dev/sht11/sht11.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

#include "contiki.h"
#include <stdio.h>
#include <dev/sht11.h>
#include "dev/sht11/sht11.h"
#include "sht11-arch.h"

#define DEBUG 0
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion examples/antelope/netdb/netdb-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

#include "contiki.h"
#include "dev/serial-line.h"
#include "dev/sht11.h"
#include "dev/sht11/sht11.h"
#include "lib/random.h"
#include "net/rime.h"
#include "net/rime/mesh.h"
Expand Down
2 changes: 1 addition & 1 deletion examples/er-rest-example/er-example-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
#include "dev/battery-sensor.h"
#endif
#if defined (PLATFORM_HAS_SHT11)
#include "dev/sht11-sensor.h"
#include "dev/sht11/sht11-sensor.h"
#endif
#if defined (PLATFORM_HAS_RADIO)
#include "dev/radio-sensor.h"
Expand Down
2 changes: 1 addition & 1 deletion examples/ipv6/json-ws/websense-sky.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

#include "contiki.h"
#include "dev/leds.h"
#include "dev/sht11-sensor.h"
#include "dev/sht11/sht11-sensor.h"
#include "jsontree.h"
#include "json-ws.h"
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion examples/ipv6/sky-websense/sky-websense.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

#include "contiki.h"
#include "httpd-simple.h"
#include "dev/sht11-sensor.h"
#include "dev/sht11/sht11-sensor.h"
#include "dev/light-sensor.h"
#include "dev/leds.h"
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion examples/ipv6/slip-radio/slip-radio-sky-sensors.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

#include "contiki.h"
#include "lib/sensors.h"
#include "dev/sht11-sensor.h"
#include "dev/sht11/sht11-sensor.h"
#include "slip-radio.h"
#include "cmd.h"
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion examples/rest-example/rest-server-example.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include "dev/battery-sensor.h"
#endif
#if defined (PLATFORM_HAS_SHT11)
#include "dev/sht11-sensor.h"
#include "dev/sht11/sht11-sensor.h"
#endif
#if defined (PLATFORM_HAS_LEDS)
#include "dev/leds.h"
Expand Down
2 changes: 1 addition & 1 deletion examples/sky-ip/ajax-cgi.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ httpd_cgi_add(struct httpd_cgi_call *c)
}
/*---------------------------------------------------------------------------*/
#if CONTIKI_TARGET_SKY
#include "dev/sht11-sensor.h"
#include "dev/sht11/sht11-sensor.h"
#include "dev/light-sensor.h"
#endif /* CONTIKI_TARGET_SKY */

Expand Down
2 changes: 1 addition & 1 deletion examples/sky-shell-exec/sky-shell-exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#include "cc2420.h"
#include "dev/leds.h"
#include "dev/light.h"
#include "dev/sht11.h"
#include "dev/sht11/sht11.h"
#include "dev/battery-sensor.h"

#include "net/rime/timesynch.h"
Expand Down
2 changes: 1 addition & 1 deletion examples/sky/sky-collect.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
#include "dev/leds.h"
#include "dev/button-sensor.h"
#include "dev/light-sensor.h"
#include "dev/sht11-sensor.h"
#include "dev/sht11/sht11-sensor.h"

#include "cc2420.h"
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion examples/z1/test-sht11.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
*/

#include "contiki.h"
#include "dev/sht11.h"
#include "dev/sht11/sht11.h"

#include <stdio.h>

Expand Down
2 changes: 1 addition & 1 deletion platform/z1/contiki-z1-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

#include "dev/battery-sensor.h"
#include "dev/button-sensor.h"
#include "dev/sht11-sensor.h"
#include "dev/sht11/sht11-sensor.h"

SENSORS(&button_sensor);

Expand Down

0 comments on commit 4cfe6c4

Please sign in to comment.