diff --git a/examples/z1/sensys_scanner/Makefile b/examples/z1/sensys_scanner/Makefile index cb76f4a20..c61754a22 100755 --- a/examples/z1/sensys_scanner/Makefile +++ b/examples/z1/sensys_scanner/Makefile @@ -5,6 +5,9 @@ ifndef TARGET TARGET=z1 endif +CONTIKI_SOURCEFILES += cc2420-arch.c sensors.c sht11.c +PROJECT_SOURCEFILES = i2cmaster.c tmp102.c adxl345.c battery-sensor.c sky-sensors.c #potentiometer-sensor.c + # Give a name to your project CONTIKI = ../../../../contiki-2.x/ CONTIKI_PROJECT = rssi-scanner @@ -24,3 +27,4 @@ viewrssi: ViewRSSI.class # ContikiProjects: including the makefile #include ../../../Makefile.projects include $(CONTIKI)/Makefile.include + diff --git a/examples/z1/sensys_scanner/rssi-scanner.c b/examples/z1/sensys_scanner/rssi-scanner.c index c7fdb463c..d47e61410 100755 --- a/examples/z1/sensys_scanner/rssi-scanner.c +++ b/examples/z1/sensys_scanner/rssi-scanner.c @@ -59,8 +59,8 @@ set_frq(int c) f = c + 352; // Start from 2400 MHz to 2485 MHz, //FASTSPI_SETREG(CC2420_FSCTRL, f); //FASTSPI_STROBE(CC2420_SRXON); - setreg(CC2420_FSCTRL, f); - strobe(CC2420_SRXON); + CC2420_WRITE_REG(CC2420_FSCTRL, f); + CC2420_STROBE(CC2420_SRXON); } static void