Skip to content

Commit

Permalink
hw/mcu/lpc55xx: Remove duplicate call to NVIC_Relocate
Browse files Browse the repository at this point in the history
NVIC_Relocate call was in two places
Now it is only in hal_system_init function that
is way it's done in mynewt

Signed-off-by: Jerzy Kasenberg <[email protected]>
  • Loading branch information
kasjer committed Oct 4, 2024
1 parent 491c327 commit 1a45350
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion hw/mcu/nxp/lpc55xx/src/hal_system.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ void hal_system_reset(void)
void
SystemInitHook(void)
{
NVIC_Relocate();
if (MYNEWT_VAL_CHOICE(LPC55XX_BOOT_CLOCK, FRO12M)) {
BOARD_BootClockFRO12M();
} else if (MYNEWT_VAL_CHOICE(LPC55XX_BOOT_CLOCK, FROHF96M)) {
Expand Down
1 change: 1 addition & 0 deletions hw/mcu/nxp/lpc55xx/src/hal_system_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "os/mynewt.h"
#include <hal/hal_system.h>
#include <mpu_armv8.h>
#include <mynewt_cm.h>

static int
mpu_add_region(uint32_t rnr, uint32_t start, size_t size, uint8_t attr_ix, uint8_t ro, uint8_t xn)
Expand Down

0 comments on commit 1a45350

Please sign in to comment.