Test: Add integration of the eRPC system
- PSA Client API IDL file
- Client and server init and API wrappers
- Example client application
Signed-off-by: Kevin Peng <kevin.peng@arm.com>
Signed-off-by: Jamie Fox <jamie.fox@arm.com>
Signed-off-by: Summer Qin <summer.qin@arm.com>
Change-Id: If6180fd3e596c9daabd31262fb10ae0a1583bc9b
diff --git a/erpc/server/erpc_server_start.c b/erpc/server/erpc_server_start.c
new file mode 100644
index 0000000..71fc26d
--- /dev/null
+++ b/erpc/server/erpc_server_start.c
@@ -0,0 +1,28 @@
+/*
+ * Copyright (c) 2023, Arm Limited. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
+ */
+
+#include "erpc_server_start.h"
+
+#include "erpc_mbf_setup.h"
+#include "erpc_server_setup.h"
+#include "tfm_erpc_psa_client_api_server.h"
+#if CONFIG_TFM_CONNECTION_BASED_SERVICE_API == 1
+#include "tfm_erpc_psa_connection_api_server.h"
+#endif
+
+void erpc_server_start(erpc_transport_t transport)
+{
+ erpc_server_init(transport, erpc_mbf_dynamic_init());
+ erpc_add_service_to_server(create_psa_client_api_service());
+#if CONFIG_TFM_CONNECTION_BASED_SERVICE_API == 1
+ erpc_add_service_to_server(create_psa_connection_api_service());
+#endif
+
+ erpc_server_run();
+
+ return;
+}