log: Retouch documentation; Rearrenge level logic; Rename LOG_VERBOSITY to LOG_FORMAT...
[bertos.git] / bertos / drv / dataflash_test.c
index ae7673beb40cfe0d55b43c153bc71b67ca187b5a..276f9f432079e2f5ce29b861bf6c05d759c05ae4 100644 (file)
@@ -45,7 +45,6 @@
  *
  *
  * \version $Id$
- *
  * \author Daniele Basile <asterix@develer.com>
  */
 
@@ -58,8 +57,8 @@
 #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>
@@ -95,8 +94,8 @@
 /*
  * 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
@@ -109,9 +108,9 @@ static uint8_t save_buf[DATAFLASH_TEST_STR_LEN];
  * 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");
@@ -213,7 +212,7 @@ int main(void)
                 proc_init();
         #endif
 
-        if (!dataflash_testSetup())
+        if (!dataflash_testSetUp())
         {
                 LOG_INFO("DATAFLASH setup..ok\n");
         }
@@ -223,7 +222,7 @@ int main(void)
                 return EOF;
         }
 
-       dataflash_testRun();
+               dataflash_testRun();
 
         for(;;)
         {