File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed
targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC55S69/TARGET_M33_NS/device Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 11{
2- "name" : " psa"
2+ "name" : " psa" ,
3+ "config" : {
4+ "present" : 1
5+ }
36}
Original file line number Diff line number Diff line change 1616 * limitations under the License.
1717 */
1818
19+ #if MBED_CONF_PSA_PRESENT
20+
1921#include "cmsis_nvic_virtual.h"
2022#include "mbed_toolchain.h"
2123
@@ -25,3 +27,5 @@ void __NVIC_TFMSystemReset(void)
2527{
2628 mbed_psa_system_reset ();
2729}
30+
31+ #endif // MBED_CONF_PSA_PRESENT
Original file line number Diff line number Diff line change @@ -37,16 +37,23 @@ extern "C" {
3737#define NVIC_GetActive __NVIC_GetActive
3838#define NVIC_SetPriority __NVIC_SetPriority
3939#define NVIC_GetPriority __NVIC_GetPriority
40+ #if MBED_CONF_PSA_PRESENT
4041#define NVIC_SystemReset __NVIC_TFMSystemReset
42+ #else
43+ #define NVIC_SystemReset __NVIC_SystemReset
44+ #endif // MBED_CONF_PSA_PRESENT
4145
4246
47+ #if MBED_CONF_PSA_PRESENT
4348/**
4449 * \brief Overriding the default CMSIS system reset implementation by calling
4550 * secure TFM service.
4651 *
4752 */
4853void __NVIC_TFMSystemReset (void );
4954
55+ #endif // MBED_CONF_PSA_PRESENT
56+
5057#ifdef __cplusplus
5158}
5259#endif
You can’t perform that action at this time.
0 commit comments