]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/pdk.git/blob - packages/ti/transport/ndk/nimu/src/NIMU_drv_log.h
dm f/w: prsdk-7319: don't call PSI_ABORT
[processor-sdk/pdk.git] / packages / ti / transport / ndk / nimu / src / NIMU_drv_log.h
1 /**
2  *  \file   NIMU_drv_log.h
3  *
4  *  \brief  This file contains the prototypes for the log print functions. By
5             default the prints will be directed to serial console using UART.
6  *
7  */
9 /*
10  * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com/
11  *
12  * Redistribution and use in source and binary forms, with or without
13  * modification, are permitted provided that the following conditions
14  * are met:
15  *
16  * Redistributions of source code must retain the above copyright
17  * notice, this list of conditions and the following disclaimer.
18  *
19  * Redistributions in binary form must reproduce the above copyright
20  * notice, this list of conditions and the following disclaimer in the
21  * documentation and/or other materials provided with the
22  * distribution.
23  *
24  * Neither the name of Texas Instruments Incorporated nor the names of
25  * its contributors may be used to endorse or promote products derived
26  * from this software without specific prior written permission.
27  *
28  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
29  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
30  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
31  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
32  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
33  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
34  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
35  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
36  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
38  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39  *
40  */
42 #ifndef NIMU_DRV_LOG_H
43 #define NIMU_DRV_LOG_H
45 #ifdef __cplusplus
46 extern "C" {
47 #endif
49 #include <stdio.h>
51 /**********************************************************************
52  ************************** Global Variables **************************
53  **********************************************************************/
55 /**********************************************************************
56  ************************** Macros ************************************
57  **********************************************************************/
58 /* Enable the below macro to have prints on the IO Console */
59 /* #define CIO_DRV_CONSOLE */
61 #ifdef CIO_DRV_CONSOLE
62 #define NIMU_drv_log            printf
63 #define NIMU_drv_log1           printf
64 #define NIMU_drv_log2           printf
65 #define NIMU_drv_log3           printf
66 #define NIMU_drv_log4           printf
67 #define NIMU_drv_log5           printf
68 #define NIMU_drv_log6           printf
69 #define NIMU_drv_log7           printf
70 #else
71 #define NIMU_drv_log(x)
72 #define NIMU_drv_log1(x,y)
73 #define NIMU_drv_log2(x,y,z)
74 #define NIMU_drv_log3(x,y,z,l)
75 #define NIMU_drv_log4(x,y,z,l,m)
76 #define NIMU_drv_log5(x,y,z,l,m,n)
77 #define NIMU_drv_log6(x,y,z,l,m,n,o)
78 #define NIMU_drv_log7(x,y,z,l,m,n,o,p)
79 #endif
81 #ifdef __cplusplus
82 }
83 #endif
85 #endif /* NIMU_DRV_LOG_H */