64 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
		
		
			
		
	
	
			64 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| 
								 | 
							
								/****************************************************************************
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								Copyright(c) 2019 by Aerospace C.Power (Chongqing) Microelectronics. ALL RIGHTS RESERVED.
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								This Information is proprietary to Aerospace C.Power (Chongqing) Microelectronics and MAY NOT
							 | 
						||
| 
								 | 
							
								be copied by any method or incorporated into another program without
							 | 
						||
| 
								 | 
							
								the express written consent of Aerospace C.Power. This Information or any portion
							 | 
						||
| 
								 | 
							
								thereof remains the property of Aerospace C.Power. The Information contained herein
							 | 
						||
| 
								 | 
							
								is believed to be accurate and Aerospace C.Power assumes no responsibility or
							 | 
						||
| 
								 | 
							
								liability for its use in any way and conveys no license or title under
							 | 
						||
| 
								 | 
							
								any patent or copyright and makes no representation or warranty that this
							 | 
						||
| 
								 | 
							
								Information is free from patent or copyright infringement.
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								****************************************************************************/
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#ifndef __INCLUDE_WQ_DEBUG_H__
							 | 
						||
| 
								 | 
							
								#define __INCLUDE_WQ_DEBUG_H__
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#include "iot_io_api.h"
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#ifndef WQ_TOPO_DETECT_DEBUG_PRINT
							 | 
						||
| 
								 | 
							
								#define WQ_TOPO_DETECT_DEBUG_PRINT  0
							 | 
						||
| 
								 | 
							
								#endif
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#ifndef WQ_TSFM_DETECT_DEBUG_PRINT
							 | 
						||
| 
								 | 
							
								#define WQ_TSFM_DETECT_DEBUG_PRINT  0
							 | 
						||
| 
								 | 
							
								#endif
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#define iot_wq_printf iot_printf
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#if WQ_TOPO_DETECT_DEBUG_PRINT
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#define wq_dbg_printf(fmt, ...) do{\
							 | 
						||
| 
								 | 
							
								        iot_wq_printf("[TOPO-D]" fmt "\n", ##__VA_ARGS__);\
							 | 
						||
| 
								 | 
							
								        }while(0)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#else /* WQ_TOPO_DETECT_DEBUG_PRINT */
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#define wq_dbg_printf(fmt, ...)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#endif /* WQ_TOPO_DETECT_DEBUG_PRINT */
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#define wq_info_printf(fmt, ...) do{\
							 | 
						||
| 
								 | 
							
								         iot_wq_printf("[TOPO-I]" fmt "\n", ##__VA_ARGS__);\
							 | 
						||
| 
								 | 
							
								        }while(0)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#if WQ_TSFM_DETECT_DEBUG_PRINT
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#define wq_tsfm_dbg_printf(fmt, ...) do{\
							 | 
						||
| 
								 | 
							
								        iot_wq_printf("[TSFM-D]" fmt "\n", ##__VA_ARGS__);\
							 | 
						||
| 
								 | 
							
								        }while(0)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#else /* WQ_TSFM_DETECT_DEBUG_PRINT */
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#define wq_tsfm_dbg_printf(fmt, ...)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#endif /* WQ_TOPO_DETECT_DEBUG_PRINT */
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#define wq_tsfm_info_printf(fmt, ...) do{\
							 | 
						||
| 
								 | 
							
								        iot_wq_printf("[TSFM-I]" fmt "\n", ##__VA_ARGS__);\
							 | 
						||
| 
								 | 
							
								        }while(0)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#endif /* __INCLUDE_WQ_DEBUG_H__ */
							 |