stm32f107_basic: Add support for a simple stm32f107 platform
This platform is a basic waveshare stm32f107 devkit which contains a USART, USB device port, some buttons and some LEDs. Unfortunately not enough to bring up networking, but enough to test building and a simple contiki shell
This commit is contained in:
parent
5c6018f0e2
commit
222f93f023
10 changed files with 557 additions and 0 deletions
20
platform/stm32f107_basic/Makefile.stm32f107_basic
Normal file
20
platform/stm32f107_basic/Makefile.stm32f107_basic
Normal file
|
@ -0,0 +1,20 @@
|
|||
CONTIKI_TARGET_DIRS = . dev
|
||||
# Master clock frequency
|
||||
MCK=72000000
|
||||
CFLAGS+=-DAUTOSTART_ENABLE
|
||||
|
||||
ifndef CONTIKI_TARGET_MAIN
|
||||
CONTIKI_TARGET_MAIN = contiki-main.c
|
||||
endif
|
||||
|
||||
CONTIKI_TARGET_SOURCEFILES += $(CONTIKI_TARGET_MAIN)
|
||||
CONTIKI_TARGET_SOURCEFILES += debug-uart.c newlib.c gqueue.c
|
||||
|
||||
include $(CONTIKI)/cpu/arm/stm32f1x_cl/Makefile.stm32f1x_cl
|
||||
|
||||
contiki-$(TARGET).a: ${addprefix $(OBJECTDIR)/,symbols.o}
|
||||
|
||||
ifndef BASE_IP
|
||||
BASE_IP := 172.16.1.1
|
||||
endif
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue