RobotHardware-UESTC/Hardware/Pibot驱动底盘/PiRobot_Firmware v1.0/STM32/Lib/Board/print.h

13 lines
239 B
C
Raw Normal View History

2023-12-12 10:36:56 +08:00
#ifndef PIBOT_PRINT_H_
#define PIBOT_PRINT_H_
#include <stdio.h>
#if DEBUG_ENABLE
#define pb_printf(format,...) printf("" __FILE__ ":%d - " format "\r\n", __LINE__, ##__VA_ARGS__)
#else
#define pb_printf(format,...)
#endif
#endif