# your firmware. The "config" variable is just a space-delimited list
# of apps you want included. The makefile will take the list of apps
# and include all of the proper code needed to build your desired
# your firmware. The "config" variable is just a space-delimited list
# of apps you want included. The makefile will take the list of apps
# and include all of the proper code needed to build your desired
-# firmware. This is generated by config.mk.
+# firmware. $(config) is generated by config.mk.
-# New default.
-# ifeq ($(platform),tilaunchpad)
-# config ?= monitor chipcon i2c
-# else
-# config ?= monitor chipcon spi jtag430 jtag430x2 avr openocd ccspi maxusb
-# endif
# Build the needed list of app and lib object files from the config
# Build the needed list of app and lib object files from the config
libs= lib/$(platform).o lib/command.o lib/apps.o lib/msp430_serial.o
#libs+=lib/setjmp.o
else
libs= lib/$(platform).o lib/command.o lib/apps.o lib/msp430_serial.o
#libs+=lib/setjmp.o
else
-libs= lib/$(mcu).o lib/command.o lib/dco_calib.o lib/apps.o lib/msp430.o lib/arduino.o
+libs= lib/$(mcu).o lib/command.o lib/dco_calib.o lib/apps.o lib/msp430.o lib/arduino.o $(extralibs)
mcu ?= stm32f407
platform := stm32f4discovery
config = monitor
mcu ?= stm32f407
platform := stm32f4discovery
config = monitor
+extralibs = lib/cortexm3.o
endif
ifneq (,$(findstring $(board),facedancer10))
endif
ifneq (,$(findstring $(board),facedancer10))
--- /dev/null
+ .syntax unified
+ .cpu cortex-m3
+ .fpu softvfp
+ .thumb
+
+
+.section .text.Reset_Handler
+ .weak Reset_Handler
+ .type Reset_Handler, %function
+
+Reset_Handler:
+ mov r0, #0
+ ldr r13, =0x20002000
+ bl main
+
-//! MSP430F2618 clock and I/O definitions
-
-// Included by other 2xx ports, such as the 2274.
+/*! \file stm32f407.h
+ \author Travis Goodspeed
+ \brief STM32F407 port definitions.
+*/
+//! Initialize the STM32F4xx ports and USB.
+void stm32f4xx_init(){
+
+}
+
//! Receive a byte.
unsigned char serial0_rx(){
}
//! Receive a byte.
unsigned char serial0_rx(){
}
-void msp430_init_uart(){
-
-}
-
-
-//! Initialization is correct.
-void msp430_init_dco_done(){
-}
-
-//! Initialize the MSP430 clock.
-void msp430_init_dco() {
-}
+
+#define INITCHIP stm32f4xx_init();
+
+void stm32f4xx_init();