Move flash related flags to the flash driver; refactor accordingly.
[bertos.git] / bertos / cpu / cortex-m3 / drv / flash_lm3s.c
index 7ca0a7cf33b126e3b8577f31e26a3e088a2be6d0..ffec0db7c0c20e94b310668aa84ae5a6e72ccd11 100644 (file)
@@ -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;
-       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 */
@@ -213,11 +213,10 @@ void flash_hw_init(Flash *fls, int flags)
        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;
-       fls->blk.priv.flags |= flags;
 }