projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
timer: check for initialization of irq module when it is enabled
[bertos.git]
/
bertos
/
drv
/
flash25.c
diff --git
a/bertos/drv/flash25.c
b/bertos/drv/flash25.c
index 807ff2114286be9b8b94600224c19487352337b7..793fab019dc546c3c298f6d44b0dc5dd4a8d7fee 100644
(file)
--- a/
bertos/drv/flash25.c
+++ b/
bertos/drv/flash25.c
@@
-27,10
+27,9
@@
* the GNU General Public License.
*
* Copyright 2007 Develer S.r.l. (http://www.develer.com/)
* the GNU General Public License.
*
* Copyright 2007 Develer S.r.l. (http://www.develer.com/)
- *
* -->
*
* -->
*
- *
\brief Function library for serial Flash memory.
+ * \brief Function library for serial Flash memory.
*
* Module provide a kfile interface, that ensure an abstraction
* from comunication channel and give a standard interface.
*
* Module provide a kfile interface, that ensure an abstraction
* from comunication channel and give a standard interface.
@@
-55,11
+54,7
@@
#include <kern/kfile.h>
#include <kern/kfile.h>
-#if CONFIG_KERNEL
- #include <kern/proc.h>
-#else
- #define proc_yield() do {} while(0)
-#endif
+#include <cpu/relax.h> /* cpu_relax() */
#warning FIXME:This file was change, but is untest!
#warning FIXME:This file was change, but is untest!
@@
-81,8
+76,8
@@
static void flash25_waitReady(Flash25 *fd)
if (!(stat & RDY_BIT))
break;
if (!(stat & RDY_BIT))
break;
- else
-
proc_yield
();
+
+
cpu_relax
();
}
}
}
}