Firmware: introduce DBG_FS debug level

This commit is contained in:
Maximilian Rehkopf 2011-10-08 18:41:56 +02:00
parent 3bf7788693
commit b9ba978206
3 changed files with 8 additions and 1 deletions

View File

@ -1,6 +1,7 @@
#ifndef _CONFIG_H
#define _CONFIG_H
// #define DEBUG_FS
// #define DEBUG_SD
// #define DEBUG_IRQ
// #define DEBUG_MSU1

View File

@ -190,7 +190,7 @@ uint32_t scan_dir(char* path, char mkdb, uint32_t this_dir_tgt) {
file_close(); */
/* write element pointer to current dir structure */
printf("d=%d Saving %lX to Address %lX [file %s]\n", depth, db_tgt, dir_tgt, path);
DBG_FS printf("d=%d Saving %lX to Address %lX [file %s]\n", depth, db_tgt, dir_tgt, path);
if((db_tgt&0xffff) > ((0x10000-(sizeof(len) + pathlen + sizeof(buf)-1 + 1))&0xffff)) {
printf("switch! old=%lx ", db_tgt);
db_tgt &= 0xffff0000;

View File

@ -27,6 +27,12 @@
#ifndef FILETYPES_H
#define FILETYPES_H
#ifdef DEBUG_FS
#define DBG_FS
#else
#define DBG_FS while(0)
#endif
#include "ff.h"
#define FS_MAX_DEPTH (10)