Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ac_debug.h Source File

ac_debug.h

Go to the documentation of this file.
00001 /**
00002  * \file ac_debug.h
00003  * \copyright Copyright (c) ARM Ltd 2018
00004  * \author Donatien Garnier
00005  */
00006 /*
00007  * Copyright (c) 2018, ARM Limited, All Rights Reserved
00008  * SPDX-License-Identifier: Apache-2.0
00009  *
00010  * Licensed under the Apache License, Version 2.0 (the "License"); you may
00011  * not use this file except in compliance with the License.
00012  * You may obtain a copy of the License at
00013  *
00014  * http://www.apache.org/licenses/LICENSE-2.0
00015  *
00016  * Unless required by applicable law or agreed to in writing, software
00017  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
00018  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00019  * See the License for the specific language governing permissions and
00020  * limitations under the License.
00021  */
00022 
00023 #ifndef ACORE_DEBUG_H_
00024 #define ACORE_DEBUG_H_
00025 
00026 // Macro that can be defined to lock stdio in multithreaded environments
00027 #if !defined(ACORE_STDIO_LOCK)
00028 #define ACORE_STDIO_LOCK()
00029 #endif
00030 
00031 #if !defined(ACORE_STDIO_UNLOCK)
00032 #define ACORE_STDIO_UNLOCK()
00033 #endif
00034 
00035 // Macro that can be defined to define an alternative printf impl for debugging
00036 #if !defined(ACORE_STDIO_PRINT)
00037 #include "stdio.h"
00038 #define ACORE_STDIO_PRINT(...) printf(__VA_ARGS__)
00039 #endif
00040 
00041 #endif