Restore wrong commit.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 6 Jun 2008 10:47:14 +0000 (10:47 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Fri, 6 Jun 2008 10:47:14 +0000 (10:47 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1425 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/drv/dataflash_test.c

index 8bb8757e5fa41cc95e571f418dd0594bdad90ede..ae7673beb40cfe0d55b43c153bc71b67ca187b5a 100644 (file)
@@ -89,7 +89,7 @@
 #define DATAFLASH_TEST_STR_LEN                  12307
 
 // If you want use a rand function of standard library set to 1.
-#define DATAFLASH_USE_RAND_FUNC                     1
+#define DATAFLASH_USE_RAND_FUNC                     0
 /* \} */
 
 /*
@@ -131,10 +131,10 @@ int dataflash_testSetup(void)
          * Init SPI module and dataflash driver.
          */
         // Open SPI comunication channel
-        spimaster_init(&spi_fd, SER_SPI0);
+        spimaster_init(&spi_fd, CONFIG_SPI_PORT);
         LOG_INFO("SPI0 init..ok\n");
 
-        ser_setbaudrate(&spi_fd, 5000000UL);
+        ser_setbaudrate(&spi_fd, CONFIG_SPI_BAUDRATE);
         LOG_INFO("SPI0 set baudrate..ok\n");
 
         //Init dataflash memory