*
*
* \version $Id$
- *
* \author Daniele Basile <asterix@develer.com>
*/
#include <cfg/module.h>
// Define logging setting (for cfg/log.h module).
-#define LOG_LEVEL DATAFLASH_LOG_LEVEL
-#define LOG_VERBOSITY DATAFLASH_LOG_VERBOSITY
+#define LOG_LEVEL DATAFLASH_LOG_LEVEL
+#define LOG_FORMAT DATAFLASH_LOG_FORMAT
#include <cfg/log.h> // for logging system
#include <drv/timer.h>
/*
* Kfile structure to test a dataflash.
*/
-static KFileSerial spi_fd;
-static KFileDataflash dflash_fd;
+static Serial spi_fd;
+static DataFlash dflash_fd;
/*
* Define tmp buffer to stora data for
* Setup all needed to test dataflash memory
*
*/
-int dataflash_testSetup(void)
+int dataflash_testSetUp(void)
{
- kfile_testSetup();
+ kfile_testSetUp();
LOG_INFO("KFILE setup..ok\n");
LOG_INFO("Check if kernel is enable (if enable you should see the assert message.)\n");
proc_init();
#endif
- if (!dataflash_testSetup())
+ if (!dataflash_testSetUp())
{
LOG_INFO("DATAFLASH setup..ok\n");
}
return EOF;
}
- dataflash_testRun();
+ dataflash_testRun();
for(;;)
{