stm32f1x_cl: Add initial support for STM32F1x connectivity line

This currently supports the stm32f107, but support will be added for
the F105 shortly (missing a linker script and I can't properly test
without a devkit).
This commit is contained in:
Jeff Ciesielski 2013-02-06 15:41:50 -08:00
parent 0a88373add
commit 5c6018f0e2
9 changed files with 376 additions and 0 deletions

View file

@ -0,0 +1,12 @@
#include <stdint.h>
uint32_t retval;
uint32_t
get_msp(void)
{
asm("ldr r1, =retval");
asm("mrs r0, msp");
asm("str r0, [r1]");
return retval;
}