blob: e804485b4251e2a46638318155061c1abcf02ef1 [file] [log] [blame]
jk-arm957cfea2021-06-18 15:52:12 +05301/** @file
2 * Copyright (c) 2021 Arm Limited or its affiliates. All rights reserved.
3 * SPDX-License-Identifier : Apache-2.0
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16**/
17
18#include "val_peripherals.h"
19#include "pal_interfaces.h"
20#include "val_framework.h"
21
22/* Global */
23uint32_t is_logger_init_done = 0;
24
25/*
26 @brief - Initialize UART.
27 This is client interface API of secure partition UART INIT API.
28 @param - None
29 @return - val_status_t
30*/
31val_status_t val_logger_init(void)
32{
33 is_logger_init_done = 1;
34 return VAL_STATUS_SUCCESS;
35}
36
37/**
38 @brief - Print module. This is client interface API of secure partition
39 val_print_sf API for nspe world
40 @param - verbosity: Print verbosity level
41 - string : Input string
42 - data : Value for format specifier
43 @return - val_status_t
44**/
45val_status_t val_print(print_verbosity_t verbosity, const char *string, int32_t data)
46{
47 if ((is_logger_init_done == 0) && (verbosity < VERBOSE))
48 {
49 return VAL_STATUS_SUCCESS;
50 }
51 return pal_print(string, data);
52}
53
54
55