init
Embed:
(wiki syntax)
Show/hide line numbers
mbed_trace_stub.c
00001 /* 00002 * Copyright (c) 2014-2017, Arm Limited and affiliates. 00003 * SPDX-License-Identifier: Apache-2.0 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); 00006 * you may not use this file except in compliance with the License. 00007 * You may obtain a copy of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, 00013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00014 * See the License for the specific language governing permissions and 00015 * limitations under the License. 00016 */ 00017 #include <stdio.h> 00018 #include <string.h> 00019 #include <stdarg.h> 00020 #include <stdlib.h> 00021 00022 #ifndef YOTTA_CFG_MBED_TRACE 00023 #define YOTTA_CFG_MBED_TRACE 1 00024 #define YOTTA_CFG_MBED_TRACE_FEA_IPV6 1 00025 #endif 00026 00027 #include "mbed-trace/mbed_trace.h" 00028 #if YOTTA_CFG_MBED_TRACE_FEA_IPV6 == 1 00029 #include "mbed-client-libservice/ip6string.h" 00030 #include "mbed-client-libservice/common_functions.h" 00031 #endif 00032 00033 00034 int mbed_trace_init(void) 00035 { 00036 return 0; 00037 } 00038 void mbed_trace_free(void) 00039 { 00040 } 00041 00042 void mbed_trace_buffer_sizes(int lineLength, int tmpLength) 00043 { 00044 } 00045 00046 void mbed_trace_config_set(uint8_t config) 00047 { 00048 } 00049 00050 uint8_t mbed_trace_config_get(void) 00051 { 00052 return 0; 00053 } 00054 00055 void mbed_trace_prefix_function_set(char *(*pref_f)(size_t)) 00056 { 00057 } 00058 00059 void mbed_trace_suffix_function_set(char *(*suffix_f)(void)) 00060 { 00061 } 00062 00063 void mbed_trace_print_function_set(void (*printf)(const char *)) 00064 { 00065 } 00066 00067 void mbed_trace_cmdprint_function_set(void (*printf)(const char *)) 00068 { 00069 } 00070 00071 void mbed_trace_exclude_filters_set(char *filters) 00072 { 00073 00074 } 00075 00076 const char *mbed_trace_exclude_filters_get(void) 00077 { 00078 return NULL; 00079 } 00080 00081 const char *mbed_trace_include_filters_get(void) 00082 { 00083 return NULL; 00084 } 00085 00086 void mbed_trace_include_filters_set(char *filters) 00087 { 00088 00089 } 00090 00091 void mbed_tracef(uint8_t dlevel, const char *grp, const char *fmt, ...) 00092 { 00093 } 00094 00095 const char *mbed_trace_last(void) 00096 { 00097 return NULL; 00098 } 00099 00100 /* Helping functions */ 00101 #define tmp_data_left() m_trace.tmp_data_length-(m_trace.tmp_data_ptr-m_trace.tmp_data) 00102 #if YOTTA_CFG_MBED_TRACE_FEA_IPV6 == 1 00103 char *mbed_trace_ipv6(const void *addr_ptr) 00104 { 00105 return NULL; 00106 } 00107 00108 char *mbed_trace_ipv6_prefix(const uint8_t *prefix, uint8_t prefix_len) 00109 { 00110 return NULL; 00111 } 00112 #endif //YOTTA_CFG_MBED_TRACE_FEA_IPV6 00113 00114 char *mbed_trace_array(const uint8_t *buf, uint16_t len) 00115 { 00116 return NULL; 00117 }
Generated on Tue Jul 12 2022 13:24:57 by
1.7.2