-
Notifications
You must be signed in to change notification settings - Fork 370
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hw/mcu/apollo: Move NVIC_Relocate to hal_system_init
NVIC_Relocate call was placed in Ambiq generated file. Now it is moved to hal_system_init function that is way it's done in mynewt hal_bsp_deinit() disable NVIC interrupts as well. Signed-off-by: Jerzy Kasenberg <[email protected]>
- Loading branch information
Showing
8 changed files
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,7 +109,5 @@ SystemInit(void) | |
CLKGEN->CLKKEY = 0; // Disable write to CCTRL | ||
|
||
SystemCoreClockUpdate(); | ||
|
||
NVIC_Relocate(); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -112,7 +112,5 @@ SystemInit(void) | |
CLKGEN->CLKKEY = 0; // Disable write to CCTRL | ||
|
||
SystemCoreClockUpdate(); | ||
|
||
NVIC_Relocate(); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ am_hal_mcuctrl_device_t adevinfo; | |
void | ||
hal_system_init(void) | ||
{ | ||
NVIC_Relocate(); | ||
} | ||
|
||
void | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,6 +26,7 @@ | |
void | ||
hal_system_init(void) | ||
{ | ||
NVIC_Relocate(); | ||
} | ||
|
||
void | ||
|