aboutsummaryrefslogtreecommitdiff
path: root/lib/stm32/f4
diff options
context:
space:
mode:
authorchrysn2012-10-18 16:29:58 +0200
committerchrysn2012-10-18 16:29:58 +0200
commit5afa53f01abb3f19e1140d1a6407c43e8b3947cf (patch)
treedf998f6ba98d1526aabb0cc6d09879766d8b6a60 /lib/stm32/f4
parent172ce56e3cbc7e64fd3e6a3dc564eb10e0ca766a (diff)
drop two-line vector.c dispatchers in favor of central dispatch
Diffstat (limited to 'lib/stm32/f4')
-rw-r--r--lib/stm32/f4/vector.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/stm32/f4/vector.c b/lib/stm32/f4/vector.c
index a5017b3..5304299 100644
--- a/lib/stm32/f4/vector.c
+++ b/lib/stm32/f4/vector.c
@@ -18,16 +18,10 @@
* along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <libopencm3/stm32/f4/irq.h>
-#define reset_handler original_reset_handler
-#include "../../cm3/vector.c"
-#undef reset_handler
#include <libopencm3/stm32/f4/scb.h>
-void WEAK reset_handler(void)
+static void pre_main(void)
{
/* Enable access to Floating-Point coprocessor. */
SCB_CPACR |= SCB_CPACR_FULL * (SCB_CPACR_CP10 | SCB_CPACR_CP11);
-
- original_reset_handler();
}