diff options
author | Alamy Liu <alamy.liu@cypress.com> | 2019-11-21 19:40:49 -0800 |
---|---|---|
committer | David Hu <david.hu@arm.com> | 2020-01-21 08:14:58 +0000 |
commit | 5d03ca85329bc4c784f4880b18588d6d6cca76fc (patch) | |
tree | fb6b25c984aae3f1cfdad3bf9f9c9d2ee2e9b72d | |
parent | e3c75a4955e665e78d55b22f07db73d31a6bf101 (diff) | |
download | trusted-firmware-m-5d03ca85329bc4c784f4880b18588d6d6cca76fc.tar.gz |
Platform: PSoC64: S-IRQ: porting tfm_spm_hal_xxx_irq()
Refer to commit
4341de0dd2 Core: Initial implementation of sec IRQ handling
Change-Id: I409cd91c13f98b512618198126a89760ac058e0b
Signed-off-by: Alamy Liu <alamy.liu@cypress.com>
-rw-r--r-- | platform/ext/target/cypress/psoc64/spm_hal.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/platform/ext/target/cypress/psoc64/spm_hal.c b/platform/ext/target/cypress/psoc64/spm_hal.c index 405e1857a2..744d36259f 100644 --- a/platform/ext/target/cypress/psoc64/spm_hal.c +++ b/platform/ext/target/cypress/psoc64/spm_hal.c @@ -1,6 +1,6 @@ /* * Copyright (c) 2018-2020, Arm Limited. All rights reserved. - * Copyright (c) 2019, Cypress Semiconductor Corporation. All rights reserved. + * Copyright (c) 2019-2020, Cypress Semiconductor Corporation. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause * @@ -12,6 +12,7 @@ #include "platform/include/tfm_spm_hal.h" +#include "device_definition.h" #include "region_defs.h" #include "secure_utilities.h" #include "spe_ipc_config.h" @@ -26,7 +27,6 @@ #include "cy_device_headers.h" #include "cy_ipc_drv.h" #include "cy_prot.h" -#include "cy_sysint.h" #include "pc_config.h" /* Get address of memory regions to configure MPU */ @@ -332,17 +332,17 @@ enum tfm_plat_err_t tfm_spm_hal_nvic_interrupt_enable(void) void tfm_spm_hal_clear_pending_irq(int32_t irq_line) { - (void)irq_line; + NVIC_ClearPendingIRQ(irq_line); } void tfm_spm_hal_enable_irq(int32_t irq_line) { - (void)irq_line; + NVIC_EnableIRQ(irq_line); } void tfm_spm_hal_disable_irq(int32_t irq_line) { - (void)irq_line; + NVIC_DisableIRQ(irq_line); } enum irq_target_state_t tfm_spm_hal_set_irq_target_state( |