55 lines
1.6 KiB
Makefile
55 lines
1.6 KiB
Makefile
CONTIKI_TARGET_DIRS = . dev apps net loader
|
|
|
|
CONTIKI_CORE=contiki-main
|
|
CONTIKI_TARGET_MAIN = ${CONTIKI_CORE}.o
|
|
CONTIKI_TARGET_SOURCEFILES += contiki-main.c params.c node-id.c
|
|
#Needed for slip
|
|
CONTIKI_TARGET_SOURCEFILES += temperature-sensor.c adc.c led.c sensors.c slip_uart0.c slip.c leds-arch.c
|
|
#Needed for Button
|
|
CONTIKI_TARGET_SOURCEFILES += button-sensor.c
|
|
#Needed for DHT11 humidity sensor
|
|
CONTIKI_TARGET_SOURCEFILES += dht11.c
|
|
#Needed for DS18S20 temperature sensor
|
|
CONTIKI_TARGET_SOURCEFILES += ds1820.c
|
|
#Needed for Battery test
|
|
CONTIKI_TARGET_SOURCEFILES += battery-sensor.c
|
|
#Needed for PIR
|
|
CONTIKI_TARGET_SOURCEFILES += pir-sensor.c
|
|
#Needed for OPTRIAC
|
|
CONTIKI_TARGET_SOURCEFILES += optriac.c optriac-sensor.c
|
|
CONTIKIAVR=$(CONTIKI)/cpu/avr
|
|
#Needed for SERVO
|
|
CONTIKI_TARGET_SOURCEFILES += servo.c servo-sensor.c
|
|
#Needed for Timer4 Servo
|
|
CONTIKI_TARGET_SOURCEFILES += t4-servo.c t4-servo-sensor.c
|
|
|
|
CONTIKIBOARD=.
|
|
BOOTLOADER_START = 0x1F000
|
|
CONTIKI_PLAT_DEFS = -DF_CPU=16000000UL -DAUTO_CRC_PADDING=2
|
|
|
|
MCU=atmega128rfa1
|
|
|
|
AVRDUDE_PROGRAMMER=jtag2
|
|
|
|
# For usb devices, you may either use PORT=usb, or (e.g. if you have more than one
|
|
# programmer connected) you can use the following trick to find out the serial number:
|
|
#
|
|
# The example is for an JTAGICE mkII used to program an ATmega128:
|
|
# avrdude -v -P usb:xxxx -c jtag2 -p atmega128
|
|
AVRDUDE_PORT=usb:00B000000D79
|
|
|
|
|
|
# Additional avrdude options
|
|
# Verify off
|
|
AVRDUDE_OPTIONS=-V
|
|
|
|
#debug
|
|
# CFLAGS += -save-temps
|
|
# Bootloader bonsai
|
|
# LDFLAGS += -save-temps
|
|
LDFLAGS += -Wl,--defsym,bootloader_get_mac=0x0001f3a0
|
|
|
|
|
|
include $(CONTIKIAVR)/Makefile.avr
|
|
include $(CONTIKIAVR)/radio/Makefile.radio
|