New platform: TI cc2530 Development Kit
This commits adds support for TI's SmartRF05 Eval. Board with cc2530 EMs Some initial support for cc2531 USB dongles
This commit is contained in:
parent
b7674c3636
commit
ad256e5014
68 changed files with 6824 additions and 0 deletions
52
platform/cc2530dk/Makefile.cc2530dk
Normal file
52
platform/cc2530dk/Makefile.cc2530dk
Normal file
|
@ -0,0 +1,52 @@
|
|||
# cc2530dk platform makefile
|
||||
|
||||
ifndef CONTIKI
|
||||
$(error CONTIKI not defined! You must specify where CONTIKI resides!)
|
||||
endif
|
||||
|
||||
CONTIKI_TARGET_DIRS = . dev
|
||||
CONTIKI_TARGET_MAIN = $(addprefix $(OBJECTDIR)/,contiki-main.rel)
|
||||
|
||||
CONTIKI_TARGET_SOURCEFILES = contiki-main.c
|
||||
CONTIKI_TARGET_SOURCEFILES += leds.c leds-arch.c
|
||||
CONTIKI_TARGET_SOURCEFILES += sensors.c smartrf-sensors.c
|
||||
CONTIKI_TARGET_SOURCEFILES += button-sensor.c adc-sensor.c smartrf-sensors.c
|
||||
CONTIKI_TARGET_SOURCEFILES += serial-line.c slip-arch.c slip.c #serial-flash.c
|
||||
CONTIKI_TARGET_SOURCEFILES += putchar.c debug.c
|
||||
|
||||
CONTIKI_SOURCEFILES += $(CONTIKI_TARGET_SOURCEFILES)
|
||||
|
||||
CLEAN += *.cc2530dk
|
||||
|
||||
ifdef UIP_CONF_IPV6
|
||||
CONTIKI_TARGET_SOURCEFILES += viztool.c
|
||||
endif
|
||||
|
||||
FORCE:
|
||||
|
||||
# .sensinode target so we can behave similar to other targets
|
||||
%.$(TARGET): %.hex FORCE
|
||||
cp $< $(<:.hex=.$(TARGET))
|
||||
@echo "\nReport"
|
||||
@echo "==============="
|
||||
@echo 'Code footprint:'
|
||||
@echo 'Area Addr Size' \
|
||||
' Decimal'
|
||||
@echo '---------------------------------- -------- --------' \
|
||||
' --------'
|
||||
@echo -n 'HOME,CSEG,CONST,XINIT,GS* $(HOME_START) '
|
||||
@egrep ',CODE\)' $(<:.hex=.map) | egrep -v '(^BANK[1-9][^=])' | uniq | \
|
||||
awk '{ SUM += $$5 } END { printf "%08X = %8d", SUM, SUM }'
|
||||
@echo '. bytes (REL,CON,CODE)'
|
||||
@egrep '(^BANK[1-9][^=])' $(<:.hex=.map) | uniq | sort
|
||||
@egrep -A 5 'Other memory' $(<:.hex=.mem)
|
||||
|
||||
%.upload: %.hex
|
||||
$(PROG) -P $<
|
||||
|
||||
sensinode.serialdump:
|
||||
$(SERIALDUMP)
|
||||
|
||||
### Define the CPU directory
|
||||
CONTIKI_CPU=$(CONTIKI)/cpu/cc253x
|
||||
include $(CONTIKI_CPU)/Makefile.cc253x
|
Loading…
Add table
Add a link
Reference in a new issue