projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add missing header.
[bertos.git]
/
bertos
/
drv
/
dataflash_test.c
diff --git
a/bertos/drv/dataflash_test.c
b/bertos/drv/dataflash_test.c
index d8b05610f7529105a6f52216d9b1b129f96a5bdf..fa8085586d8c038d3624288426ee301435875b2f 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
@@
-115,8
+114,8
@@
int dataflash_testSetUp(void)
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");
- SILENT_ASSERT("bertos/drv/dataflash_test.c:119: Assertion failed: !CONFIG_KERN
EL
");
- ASSERT(!CONFIG_KERN
EL
);
+ SILENT_ASSERT("bertos/drv/dataflash_test.c:119: Assertion failed: !CONFIG_KERN");
+ ASSERT(!CONFIG_KERN);
/*
* This test use a kfile_test module,
/*
* This test use a kfile_test module,
@@
-209,7
+208,7
@@
int main(void)
IRQ_ENABLE;
kdbg_init();
IRQ_ENABLE;
kdbg_init();
- #if CONFIG_KERN
EL
+ #if CONFIG_KERN
proc_init();
#endif
proc_init();
#endif