ver:init

Committer:
iv123
Date:
Sun Jun 18 16:11:03 2017 +0000
Revision:
0:4946262d6030
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
iv123 0:4946262d6030 1 /**
iv123 0:4946262d6030 2 ******************************************************************************
iv123 0:4946262d6030 3 * @file ble_debug.h
iv123 0:4946262d6030 4 * @author CL
iv123 0:4946262d6030 5 * @version V1.0.0
iv123 0:4946262d6030 6 * @date 04-July-2014
iv123 0:4946262d6030 7 * @brief This file defines print functions for debug purposes.
iv123 0:4946262d6030 8 ******************************************************************************
iv123 0:4946262d6030 9 * @attention
iv123 0:4946262d6030 10 *
iv123 0:4946262d6030 11 * <h2><center>&copy; COPYRIGHT(c) 2014 STMicroelectronics</center></h2>
iv123 0:4946262d6030 12 *
iv123 0:4946262d6030 13 * Redistribution and use in source and binary forms, with or without modification,
iv123 0:4946262d6030 14 * are permitted provided that the following conditions are met:
iv123 0:4946262d6030 15 * 1. Redistributions of source code must retain the above copyright notice,
iv123 0:4946262d6030 16 * this list of conditions and the following disclaimer.
iv123 0:4946262d6030 17 * 2. Redistributions in binary form must reproduce the above copyright notice,
iv123 0:4946262d6030 18 * this list of conditions and the following disclaimer in the documentation
iv123 0:4946262d6030 19 * and/or other materials provided with the distribution.
iv123 0:4946262d6030 20 * 3. Neither the name of STMicroelectronics nor the names of its contributors
iv123 0:4946262d6030 21 * may be used to endorse or promote products derived from this software
iv123 0:4946262d6030 22 * without specific prior written permission.
iv123 0:4946262d6030 23 *
iv123 0:4946262d6030 24 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
iv123 0:4946262d6030 25 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
iv123 0:4946262d6030 26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
iv123 0:4946262d6030 27 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
iv123 0:4946262d6030 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
iv123 0:4946262d6030 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
iv123 0:4946262d6030 30 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
iv123 0:4946262d6030 31 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
iv123 0:4946262d6030 32 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
iv123 0:4946262d6030 33 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
iv123 0:4946262d6030 34 *
iv123 0:4946262d6030 35 ******************************************************************************
iv123 0:4946262d6030 36 */
iv123 0:4946262d6030 37
iv123 0:4946262d6030 38 /* Define to prevent recursive inclusion -------------------------------------*/
iv123 0:4946262d6030 39 #ifndef __DEBUG_H
iv123 0:4946262d6030 40 #define __DEBUG_H
iv123 0:4946262d6030 41
iv123 0:4946262d6030 42 #ifdef __cplusplus
iv123 0:4946262d6030 43 extern "C" {
iv123 0:4946262d6030 44 #endif
iv123 0:4946262d6030 45
iv123 0:4946262d6030 46 /* Includes ------------------------------------------------------------------*/
iv123 0:4946262d6030 47 #include <string.h>
iv123 0:4946262d6030 48
iv123 0:4946262d6030 49 /* Exported macro ------------------------------------------------------------*/
iv123 0:4946262d6030 50 //#define DEBUG
iv123 0:4946262d6030 51 #ifdef DEBUG
iv123 0:4946262d6030 52 #include <stdio.h>
iv123 0:4946262d6030 53 #define PRINTF(...) printf(__VA_ARGS__)
iv123 0:4946262d6030 54 #else
iv123 0:4946262d6030 55 #define PRINTF(...)
iv123 0:4946262d6030 56 #endif
iv123 0:4946262d6030 57
iv123 0:4946262d6030 58 /* Print the data travelling over the SPI in the .csv format for the GUI*/
iv123 0:4946262d6030 59 //#define PRINT_CSV_FORMAT
iv123 0:4946262d6030 60 #ifdef PRINT_CSV_FORMAT
iv123 0:4946262d6030 61 #include <stdio.h>
iv123 0:4946262d6030 62 #define PRINT_CSV(...) printf(__VA_ARGS__)
iv123 0:4946262d6030 63 #else
iv123 0:4946262d6030 64 #define PRINT_CSV(...)
iv123 0:4946262d6030 65 #endif
iv123 0:4946262d6030 66
iv123 0:4946262d6030 67 #ifdef __cplusplus
iv123 0:4946262d6030 68 }
iv123 0:4946262d6030 69 #endif
iv123 0:4946262d6030 70
iv123 0:4946262d6030 71 #endif /* __DEBUG_H */
iv123 0:4946262d6030 72
iv123 0:4946262d6030 73 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/