From: asterix Date: Fri, 6 Jun 2008 10:47:14 +0000 (+0000) Subject: Restore wrong commit. X-Git-Tag: 2.0.0~509 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=d22ff0c965c5b8614485fa780044b2d68fd59c90;p=bertos.git Restore wrong commit. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1425 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/drv/dataflash_test.c b/bertos/drv/dataflash_test.c index 8bb8757e..ae7673be 100644 --- a/bertos/drv/dataflash_test.c +++ b/bertos/drv/dataflash_test.c @@ -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