projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
timer: Amend previous commit (and Subversion sucks)
[bertos.git]
/
bertos
/
drv
/
dataflash_test.c
diff --git
a/bertos/drv/dataflash_test.c
b/bertos/drv/dataflash_test.c
index ae7673beb40cfe0d55b43c153bc71b67ca187b5a..276f9f432079e2f5ce29b861bf6c05d759c05ae4 100644
(file)
--- a/
bertos/drv/dataflash_test.c
+++ b/
bertos/drv/dataflash_test.c
@@
-45,7
+45,6
@@
*
*
* \version $Id$
*
*
* \version $Id$
- *
* \author Daniele Basile <asterix@develer.com>
*/
* \author Daniele Basile <asterix@develer.com>
*/
@@
-58,8
+57,8
@@
#include <cfg/module.h>
// Define logging setting (for cfg/log.h module).
#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>
#include <cfg/log.h> // for logging system
#include <drv/timer.h>
@@
-95,8
+94,8
@@
/*
* Kfile structure to test a dataflash.
*/
/*
* Kfile structure to test a dataflash.
*/
-static
KFile
Serial spi_fd;
-static
KFileDataf
lash dflash_fd;
+static Serial spi_fd;
+static
DataF
lash dflash_fd;
/*
* Define tmp buffer to stora data for
/*
* 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
*
*/
* Setup all needed to test dataflash memory
*
*/
-int dataflash_testSet
u
p(void)
+int dataflash_testSet
U
p(void)
{
{
- kfile_testSet
u
p();
+ kfile_testSet
U
p();
LOG_INFO("KFILE setup..ok\n");
LOG_INFO("Check if kernel is enable (if enable you should see the assert message.)\n");
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
proc_init();
#endif
- if (!dataflash_testSet
u
p())
+ if (!dataflash_testSet
U
p())
{
LOG_INFO("DATAFLASH setup..ok\n");
}
{
LOG_INFO("DATAFLASH setup..ok\n");
}
@@
-223,7
+222,7
@@
int main(void)
return EOF;
}
return EOF;
}
- dataflash_testRun();
+
dataflash_testRun();
for(;;)
{
for(;;)
{