2022-11-09 18:55:21 +08:00

38 lines
805 B
C

#ifndef __MAIN_H__
#define __MAIN_H__
#include <stdbool.h>
#include <string.h>
#include <stdint.h>
#include "SWM320.h"
#include "dev_rgblcd.h"
#include "dev_systick.h"
//#include "dev_gt9147.h"
#include "dev_gt911.h"
#include "dev_uart.h"
#include "dev_sdio.h"
#define TEXT_RED "\x1B[1;31m"
#define TEXT_GREEN "\x1B[1;32m"
#define TEXT_YELLOW "\x1B[1;33m"
//调试信息
#define _DEBUG
#ifdef _DEBUG
#define debug(...) printf(TEXT_GREEN __VA_ARGS__)
#define debugwarn(...) printf(TEXT_YELLOW __VA_ARGS__)
#define debugerror(...) printf(TEXT_RED __VA_ARGS__)
// #define debug(...) printf(__VA_ARGS__)
// #define debugwarn(...) printf(__VA_ARGS__)
// #define debugerror(...) printf(__VA_ARGS__)
#else
#define debug(...) ;
#define debugwarn(...) ;
#define debugerror(...) ;
#endif
#endif //__MAIN_H__