Skip to content

Commit

Permalink
stlink/platform: Use the locm3 decl for the vector table
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonmux committed Jan 14, 2024
1 parent bf46ebc commit b4ebba2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platforms/stlink/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "usb.h"
#include "aux_serial.h"

#include <libopencm3/cm3/vector.h>
#include <libopencm3/stm32/rcc.h>
#include <libopencm3/cm3/scb.h>
#include <libopencm3/cm3/scs.h>
Expand Down Expand Up @@ -77,7 +78,6 @@ void platform_init(void)
gpio_set_mode(LED_PORT, GPIO_MODE_OUTPUT_2_MHZ, GPIO_CNF_OUTPUT_PUSHPULL, led_idle_run);

/* Relocate interrupt vector table here */
extern uint32_t vector_table;
SCB_VTOR = (uintptr_t)&vector_table;

platform_timing_init();
Expand Down

0 comments on commit b4ebba2

Please sign in to comment.