also add stm32f446
http://git.munts.com/arm-mcu/gcc/stm32f4/
rename lpc startup from 's' to 'S' to let the c preprocessor do its job
stm32f4xx linker and startup file cmsis prefix just for naming
files has nothing todo with cmsis anymore
This test code in SysTickHandler() should give you a rather
accurate clock with only a few seconds deviation per hour:
#include "serial.h"
#include "sersendf.h"
void SysTick_Handler(void) {
static uint32_t count = 0;
static uint8_t minutes = 0, seconds = 0;
count++;
if ( ! (count % 500)) { // A full second.
seconds++;
if ( ! (seconds % 60)) {
seconds = 0;
minutes++;
}
sersendf_P(PSTR("%su:"), minutes);
if (seconds < 10)
serial_writechar('0');
sersendf_P(PSTR("%su\n"), seconds);
}
[...]