blob: b46ab2712a28a0477d614bde05bd973a0b062404 [file] [log] [blame]
Summer Qin153f3df2022-11-17 15:51:02 +08001/*
2 * Copyright (c) 2023, Arm Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
8#include <stdio.h>
9#include "erpc_port.h"
10#include "erpc_client_start.h"
11#include "tfm_erpc_psa_client_api.h"
12
13int main(int argc, char *argv[])
14{
15 erpc_transport_t transport;
16
17#ifdef ERPC_TRANSPORT_UART
18 transport = erpc_transport_serial_init(PORT_NAME, 115200);
19#elif defined(ERPC_TRANSPORT_TCP)
20 transport = erpc_transport_tcp_init(ERPC_HOST, ERPC_PORT, false);
21#else
22#error "No valid transportation layer selected."
23#endif
24
25 if (!transport) {
26 printf("eRPC transport init failed!\r\n");
27 return 1;
28 }
29
30 erpc_client_start(transport);
31
32 printf("psa_framework_version: %d\r\n", psa_framework_version());
33
34 return 0;
35}