ISIX-RTOS - small operating system for ARM microcontrollers 1.2

printk.h

Go to the documentation of this file.
00001 /*-----------------------------------------------------------------------*/
00002 #ifndef __ISIX_PRINTK_H
00003 #define __ISIX_PRINTK_H
00004 /*-----------------------------------------------------------------------*/
00005 #include <isix/config.h>
00006 /*-----------------------------------------------------------------------*/
00007 #if (ISIX_DEBUG_ENABLE == ISIX_DBG_OFF)
00008 #define isix_printk(...)
00009 #else
00010 #include <tiny_printf.h>
00011 
00012 #define isix_printk(...) do { isixp_enter_critical(); \
00013                                                  tiny_printf("%s:%d|%s|",__FILE__,__LINE__,__FUNCTION__); \
00014                                                  tiny_printf(__VA_ARGS__); \
00015                                                  tiny_printf("\r\n"); \
00016                                                  isixp_exit_critical(); \
00017                                            } while(0)
00018 #endif
00019 
00020 /*-----------------------------------------------------------------------*/
00021 #endif
00022 
00023 
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines