Correceted cc2420 function calls+modified makefile
This commit is contained in:
parent
0c6fd04f44
commit
621aff1aeb
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue