реклама на сайте
подробности

 
 
> diskio
sergey sva
сообщение Mar 22 2011, 19:09
Сообщение #1


Гуру
******

Группа: Свой
Сообщений: 2 546
Регистрация: 23-05-07
Из: Самарская область Сызрань
Пользователь №: 27 923



Не соображу как это работает и куда будет выводить 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 он вроде не привязан ?
Go to the top of the page
 
+Quote Post



Reply to this topicStart new topic
1 чел. читают эту тему (гостей: 1, скрытых пользователей: 0)
Пользователей: 0

 


RSS Текстовая версия Сейчас: 19th July 2025 - 12:34
Рейтинг@Mail.ru


Страница сгенерированна за 0.01372 секунд с 7
ELECTRONIX ©2004-2016