移植stm32代码
This commit is contained in:
27
debug.c
Normal file
27
debug.c
Normal file
@@ -0,0 +1,27 @@
|
||||
#include "debug.h"
|
||||
|
||||
|
||||
u8 _DEBUG = 1;
|
||||
|
||||
|
||||
|
||||
void DEBUG(){
|
||||
_DEBUG = !_DEBUG;
|
||||
printf("DEBUG IS: %s",(_DEBUG ? "ON" : "OFF"));
|
||||
}
|
||||
|
||||
|
||||
|
||||
void DEBUG_PRINTF(const char *fmt, ...) {
|
||||
if(_DEBUG){
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
vprintf(fmt, args);
|
||||
va_end(args);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void SDRAM_USED(){
|
||||
}
|
||||
Reference in New Issue
Block a user