移植stm32代码

This commit is contained in:
Qiea
2024-11-10 11:13:57 +08:00
parent 77ddd25170
commit 271bd6efa1
8 changed files with 536 additions and 12 deletions

27
debug.c Normal file
View 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(){
}