projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix headerguard.
[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 281c2704c939ceb021fa86ae0bc2b4023624f4a0..ffec0db7c0c20e94b310668aa84ae5a6e72ccd11 100644
(file)
--- a/
bertos/cpu/cortex-m3/drv/flash_lm3s.c
+++ b/
bertos/cpu/cortex-m3/drv/flash_lm3s.c
@@
-117,6
+117,7
@@
static size_t lm3s_flash_readDirect(struct KBlock *blk, block_idx_t idx, void *b
static size_t lm3s_flash_writeDirect(struct KBlock *blk, block_idx_t idx, const void *_buf, size_t offset, size_t size)
{
static size_t lm3s_flash_writeDirect(struct KBlock *blk, block_idx_t idx, const void *_buf, size_t offset, size_t size)
{
+ (void)offset;
ASSERT(offset == 0);
ASSERT(size == blk->blk_size);
ASSERT(offset == 0);
ASSERT(size == blk->blk_size);
@@
-200,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 */
@@
-212,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;
}
}