Move kfile interface to the io/ directory.
[bertos.git] / bertos / drv / dataflash_hwtest.c
index 3edf8111ac94b2ce546726b1c851a0c0dcb7f66e..7dcd9eb2bf5a90c0dfec5e16952c0beb76eafd6d 100644 (file)
@@ -66,7 +66,7 @@
 #include <drv/dataflash.h>
 
 #include <kern/proc.h>
-#include <kern/kfile.h>
+#include <io/kfile.h>
 
 #include <string.h>
 
@@ -130,10 +130,10 @@ int dataflash_testSetup(void)
          * Init SPI module and dataflash driver.
          */
         // Open SPI comunication channel
-        spimaster_init(&spi_fd, CONFIG_SPI_PORT);
+        spimaster_init(&spi_fd, 0);
         LOG_INFO("SPI0 init..ok\n");
 
-        ser_setbaudrate(&spi_fd, CONFIG_SPI_BAUDRATE);
+        ser_setbaudrate(&spi_fd, 5000000UL);
         LOG_INFO("SPI0 set baudrate..ok\n");
 
         //Init dataflash memory