blob: af87f94ca80b08afe4d7f869f431246882044c44 [file] [log] [blame]
Summer Qin153f3df2022-11-17 15:51:02 +08001/*
2 * Copyright (c) 2017-2023, Arm Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 *
6 */
7
8#include "test_app.h"
9#include "tfm_log.h"
10#include "erpc_server_start.h"
11#include "target_cfg.h"
12
13#include "Driver_USART.h"
14#ifdef ERPC_UART
15extern ARM_DRIVER_USART ERPC_UART;
16#else
17#error "ERPC_UART is not provided!"
18#endif
19
20__attribute__((noreturn))
21void test_app(void *argument)
22{
23 UNUSED_VARIABLE(argument);
24
25 erpc_transport_t transport;
26
27 transport = erpc_transport_cmsis_uart_init((void *)&ERPC_UART);
28 if (!transport) {
29 LOG_MSG("eRPC transport init failed!\r\n");
30 }
31
32 erpc_server_start(transport);
33
34 for (;;) {
35 }
36}