projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
USB: coding style fixes (structure naming)
[bertos.git]
/
bertos
/
drv
/
dataflash_hwtest.c
diff --git
a/bertos/drv/dataflash_hwtest.c
b/bertos/drv/dataflash_hwtest.c
index 3edf8111ac94b2ce546726b1c851a0c0dcb7f66e..a90814d90d0e8f1d5fdc218db53d66ee53945d1d 100644
(file)
--- a/
bertos/drv/dataflash_hwtest.c
+++ b/
bertos/drv/dataflash_hwtest.c
@@
-44,7
+44,6
@@
* we use a kfile_test module that perform some generic test.
*
*
* we use a kfile_test module that perform some generic test.
*
*
- * \version $Id$
* \author Daniele Basile <asterix@develer.com>
*/
* \author Daniele Basile <asterix@develer.com>
*/
@@
-66,7
+65,7
@@
#include <drv/dataflash.h>
#include <kern/proc.h>
#include <drv/dataflash.h>
#include <kern/proc.h>
-#include <
kern
/kfile.h>
+#include <
io
/kfile.h>
#include <string.h>
#include <string.h>
@@
-130,10
+129,10
@@
int dataflash_testSetup(void)
* Init SPI module and dataflash driver.
*/
// Open SPI comunication channel
* 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");
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
LOG_INFO("SPI0 set baudrate..ok\n");
//Init dataflash memory