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
/
flash25.c
diff --git
a/bertos/drv/flash25.c
b/bertos/drv/flash25.c
index a903a1c58e770349adbc7a15f09f6697c9840a25..f12e41e9aee7fa40714809b12232b7175cd0ce92 100644
(file)
--- a/
bertos/drv/flash25.c
+++ b/
bertos/drv/flash25.c
@@
-36,7
+36,6
@@
* Typicaly this kind of memory use an SPI bus, but you should
* use another comunication channel you have defined.
*
* Typicaly this kind of memory use an SPI bus, but you should
* use another comunication channel you have defined.
*
- * \version $Id$
* \author Daniele Basile <asterix@develer.com>
*/
* \author Daniele Basile <asterix@develer.com>
*/
@@
-52,11
+51,11
@@
#include <drv/timer.h>
#include <drv/flash25.h>
#include <drv/timer.h>
#include <drv/flash25.h>
-#include <
kern
/kfile.h>
+#include <
io
/kfile.h>
-#include <cpu/
relax
.h> /* cpu_relax() */
+#include <cpu/
power
.h> /* cpu_relax() */
-#warning FIXME:This file was change
, but is untest
!
+#warning FIXME:This file was change
d, but is untested
!
/**
* Wait until flash memory is ready.
/**
* Wait until flash memory is ready.
@@
-325,8
+324,7
@@
void flash25_sectorErase(Flash25 *fd, Flash25Sector sector)
*/
flash25_waitReady(fd);
*/
flash25_waitReady(fd);
- DB(kprintf("Erased sector [%ld] in %d ms\n", sector, ticks_to_ms(timer_clock() - start_time)));
-
+ DB(kprintf("Erased sector [%ld] in %ld ms\n", (unsigned long)sector, (unsigned long)ticks_to_ms(timer_clock() - start_time)));
}
/**
}
/**