osd-contiki/platform/osd-merkur/Makefile.osd-merkur

71 lines
2.3 KiB
Makefile
Raw Normal View History

2013-02-19 10:22:48 +01:00
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
2013-04-17 13:40:46 +02:00
CONTIKI_TARGET_SOURCEFILES += temperature-sensor.c adc.c led.c sensors.c slip_uart0.c slip.c leds-arch.c
2013-02-19 10:22:48 +01:00
#Needed for Button
CONTIKI_TARGET_SOURCEFILES += button-sensor.c
2014-06-21 21:30:48 +02:00
# i2c Master
CONTIKI_TARGET_SOURCEFILES += i2c.c
2013-02-19 10:22:48 +01:00
#Needed for DHT11 humidity sensor
CONTIKI_TARGET_SOURCEFILES += dht11.c
#Needed for DS18S20 temperature sensor
CONTIKI_TARGET_SOURCEFILES += ds1820.c
#Needed for Battery test
2013-08-20 13:34:01 +02:00
CONTIKI_TARGET_SOURCEFILES += battery-sensor.c batmon.c
2013-02-19 10:22:48 +01:00
#Needed for PIR
CONTIKI_TARGET_SOURCEFILES += pir-sensor.c
2013-03-13 16:02:30 +01:00
#Needed for OPTRIAC
CONTIKI_TARGET_SOURCEFILES += optriac.c optriac-sensor.c
2013-02-19 10:22:48 +01:00
CONTIKIAVR=$(CONTIKI)/cpu/avr
2013-03-13 16:02:30 +01:00
#Needed for SERVO
2013-02-22 17:04:19 +01:00
CONTIKI_TARGET_SOURCEFILES += servo.c servo-sensor.c
2013-04-04 13:03:18 +02:00
#Needed for Timer4 Servo
#CONTIKI_TARGET_SOURCEFILES += t4-servo.c t4-servo-sensor.c
2013-11-22 16:34:13 +01:00
#Needed for Relay 1 to 4
CONTIKI_TARGET_SOURCEFILES += relay.c relay-sensor.c
# Arduino
CONTIKI_TARGET_SOURCEFILES += wiring_digital.c wiring_analog.c
2013-02-22 17:04:19 +01:00
2013-02-19 10:22:48 +01:00
CONTIKIBOARD=.
BOOTLOADER_START = 0x1F000
CONTIKI_PLAT_DEFS = -DF_CPU=16000000UL -DAUTO_CRC_PADDING=2 -DPLAT_TIMER=5
2013-02-19 10:22:48 +01:00
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
2013-07-30 17:42:44 +02:00
AVRDUDE_MCU=m128rfa1
2013-02-19 10:22:48 +01:00
2013-06-04 11:28:42 +02:00
#debug
# CFLAGS += -save-temps
# Bootloader bonsai
# LDFLAGS += -save-temps
# For the old bonsai bootloader compiled with squeeze gcc-avr we
# directly used the address of the bootloader:
#BOOTLOADER_GET_MAC=0x0001f3a0
# For newer bonsai we have a jump table at the end of the bootloader
# section:
BOOTLOADER_GET_MAC=0x0001ff80
LDFLAGS += -Wl,--defsym,bootloader_get_mac=$(BOOTLOADER_GET_MAC)
2013-06-04 11:28:42 +02:00
2013-02-19 10:22:48 +01:00
include $(CONTIKIAVR)/Makefile.avr
include $(CONTIKIAVR)/radio/Makefile.radio
2014-04-14 13:27:01 +02:00
MODULES += core/net/ipv6 core/net/ipv4 core/net/ip core/net/mac core/net core/net/rime core/net/rpl core/net/mac/sicslowmac core/net/mac/contikimac