Just a bunch of code for stm32f4 discovery board... mostly borrowed from https://bitbucket.org/lbuchy/eece474firmware