Не соображу как это работает и куда будет выводить diskio_printf()
Код
/*-----------------------------------------------------------------------*/
/* Low level disk I/O module */
/* (C) Copyright 2007,2008 */
/* Martin Thomas, Lorenz Aebi */
/*-----------------------------------------------------------------------*/
/* This is a LPC23xx/24xx MCI disk I/O module */
/*-----------------------------------------------------------------------*/
// Add Multi Block Write by Lorenz Aebi 2008
// Bugfix from Marco Ziegert 20090823
// #define DISKIO_DEBUG
// #define DISKIO_DUMPSTAT
// #define DISKIO_DEBUGR
// #define DISKIO_DEBUGW
#include "LPC23xx.h"
#include "type.h"
#include "irq.h"
#include "target.h"
#include "mci.h"
#include "dma.h"
#include <string.h>
#include "diskio.h"
#ifdef __GNUC__
#include "monitor.h"
#define myprintf xprintf
#else
#include <stdio.h>
#define myprintf printf
#endif
#ifdef __ARMCC_VERSION
// RealView
#define INLINE __inline
#else
// gcc
#define INLINE inline
#endif
#ifdef DISKIO_DEBUG
#define diskio_printf myprintf этот код выключен
#else
#define diskio_printf( fmt, args... ) этот включен
#endif
#ifdef DISKIO_DEBUGR
#define diskio_printfr myprintf этот выключен
#else
#define diskio_printfr( fmt, args... ) этот включен
#endif
#ifdef DISKIO_DEBUGW
#define diskio_printfw myprintf этот выключен
#else
// #define diskio_printfw( fmt, args... )
#define diskio_printfw( fmt, ... ) этот включен
#endif
Дальше в коде diskio_printf("------ Status register %s\n -----", info);
куда он выведет не пойму к printf он вроде не привязан ?