aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Brand <chris.brand@cypress.com>2021-07-15 12:20:56 -0700
committerAnton Komlev <Anton.Komlev@arm.com>2021-07-16 09:22:02 +0200
commit5c679362af4fff1f1b5a6ceffdaaf7b405a9280c (patch)
tree860f34298e207994b4de67b39f036818da1b7b77
parentf5916341e5d499db930aeff0e908777ba89705d8 (diff)
downloadtrusted-firmware-m-5c679362af4fff1f1b5a6ceffdaaf7b405a9280c.tar.gz
PsoC64: Make some functions static
Two of the functions in the mailbox directory are only ever called from within the same file, so they should be static. Change-Id: Id3fd7d8599d1740757f575378296a15406aa1b56 Signed-off-by: Chris Brand <chris.brand@cypress.com>
-rw-r--r--platform/ext/target/cypress/psoc64/mailbox/mailbox_ipc_intr.c3
-rw-r--r--platform/ext/target/cypress/psoc64/mailbox/platform_multicore.c4
-rw-r--r--platform/ext/target/cypress/psoc64/mailbox/platform_multicore.h10
3 files changed, 5 insertions, 12 deletions
diff --git a/platform/ext/target/cypress/psoc64/mailbox/mailbox_ipc_intr.c b/platform/ext/target/cypress/psoc64/mailbox/mailbox_ipc_intr.c
index 89bdc3787d..55084a0b56 100644
--- a/platform/ext/target/cypress/psoc64/mailbox/mailbox_ipc_intr.c
+++ b/platform/ext/target/cypress/psoc64/mailbox/mailbox_ipc_intr.c
@@ -1,5 +1,6 @@
/*
* Copyright (c) 2019, Arm Limited. All rights reserved.
+ * Copyright (c) 2021, Cypress Semiconductor Corporation. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
@@ -19,7 +20,7 @@ __STATIC_INLINE void tfm_trigger_pendsv(void)
SCB->ICSR = SCB_ICSR_PENDSVSET_Msk;
}
-void mailbox_clear_intr(void)
+static void mailbox_clear_intr(void)
{
uint32_t status;
diff --git a/platform/ext/target/cypress/psoc64/mailbox/platform_multicore.c b/platform/ext/target/cypress/psoc64/mailbox/platform_multicore.c
index 2c41e8e46c..f30aeb0c22 100644
--- a/platform/ext/target/cypress/psoc64/mailbox/platform_multicore.c
+++ b/platform/ext/target/cypress/psoc64/mailbox/platform_multicore.c
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2019-2021 Arm Limited. All rights reserved.
- * Copyright (c) 2019 Cypress Semiconductor Corporation. All rights reserved.
+ * Copyright (c) 2019, 2021 Cypress Semiconductor Corporation. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@@ -102,7 +102,7 @@ void platform_mailbox_wait_for_notify(void)
0, IPC_RX_INT_MASK);
}
-int platform_ns_ipc_init(void)
+static int platform_ns_ipc_init(void)
{
Cy_IPC_Drv_SetInterruptMask(Cy_IPC_Drv_GetIntrBaseAddr(IPC_RX_INTR_STRUCT),
0, IPC_RX_INT_MASK);
diff --git a/platform/ext/target/cypress/psoc64/mailbox/platform_multicore.h b/platform/ext/target/cypress/psoc64/mailbox/platform_multicore.h
index ae9855ef62..9b829a356d 100644
--- a/platform/ext/target/cypress/psoc64/mailbox/platform_multicore.h
+++ b/platform/ext/target/cypress/psoc64/mailbox/platform_multicore.h
@@ -1,6 +1,6 @@
/*
* Copyright (c) 2019, Arm Limited. All rights reserved.
- * Copyright (c) 2019, Cypress Semiconductor Corporation. All rights reserved
+ * Copyright (c) 2019, 2021, Cypress Semiconductor Corporation. All rights reserved
*
* SPDX-License-Identifier: BSD-3-Clause
*
@@ -93,12 +93,4 @@ int platform_mailbox_send_msg_data(uint32_t data);
*/
void platform_mailbox_wait_for_notify(void);
-/**
- * \brief IPC initialization
- *
- * \retval 0 The operation succeeds.
- * \retval else The operation fails.
- */
-int platform_ns_ipc_init(void);
-
#endif