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