projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add spi with dma implementation for sam3, and define generic header for both. Note...
[bertos.git]
/
bertos
/
cpu
/
cortex-m3
/
drv
/
flash_lm3s.c
diff --git
a/bertos/cpu/cortex-m3/drv/flash_lm3s.c
b/bertos/cpu/cortex-m3/drv/flash_lm3s.c
index 7ca0a7cf33b126e3b8577f31e26a3e088a2be6d0..ffec0db7c0c20e94b310668aa84ae5a6e72ccd11 100644
(file)
--- a/
bertos/cpu/cortex-m3/drv/flash_lm3s.c
+++ b/
bertos/cpu/cortex-m3/drv/flash_lm3s.c
@@
-201,11
+201,11
@@
static void common_init(Flash *fls)
}
}
-void flash_hw_init(Flash *fls,
int flags
)
+void flash_hw_init(Flash *fls,
UNUSED_ARG(int, flags)
)
{
common_init(fls);
fls->blk.priv.vt = &flash_lm3s_buffered_vt;
{
common_init(fls);
fls->blk.priv.vt = &flash_lm3s_buffered_vt;
- fls->blk.priv.flags |= KB_BUFFERED | KB_PARTIAL_WRITE
| flags
;
+ fls->blk.priv.flags |= KB_BUFFERED | KB_PARTIAL_WRITE;
fls->blk.priv.buf = flash_buf;
/* Load the first block in the cache */
fls->blk.priv.buf = flash_buf;
/* Load the first block in the cache */
@@
-213,11
+213,10
@@
void flash_hw_init(Flash *fls, int flags)
memcpy(fls->blk.priv.buf, flash_start, fls->blk.blk_size);
}
memcpy(fls->blk.priv.buf, flash_start, fls->blk.blk_size);
}
-void flash_hw_initUnbuffered(Flash *fls,
int flags
)
+void flash_hw_initUnbuffered(Flash *fls,
UNUSED_ARG(int, flags)
)
{
common_init(fls);
fls->blk.priv.vt = &flash_lm3s_unbuffered_vt;
{
common_init(fls);
fls->blk.priv.vt = &flash_lm3s_unbuffered_vt;
- fls->blk.priv.flags |= flags;
}
}