projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nand driver: default log level not too noisy
[bertos.git]
/
bertos
/
cpu
/
avr
/
drv
/
flash_avr.h
diff --git
a/bertos/cpu/avr/drv/flash_avr.h
b/bertos/cpu/avr/drv/flash_avr.h
index 7b4317d97106029c5bbab80e341f88a153ef6060..b75a38b8b3ef1f80654116b8a0dbd0865abc1566 100644
(file)
--- a/
bertos/cpu/avr/drv/flash_avr.h
+++ b/
bertos/cpu/avr/drv/flash_avr.h
@@
-30,21
+30,22
@@
*
* -->
*
*
* -->
*
- * \brief Self programming routines (interface).
- *
- * \version $Id$
* \author Francesco Sacchi <batt@develer.com>
* \author Daniele Basile <asterix@develer.com>
* \author Francesco Sacchi <batt@develer.com>
* \author Daniele Basile <asterix@develer.com>
+ *
+ * \brief AVR Internal flash read/write driver.
*/
*/
-#ifndef
DRV_
FLASH_AVR_H
-#define
DRV_
FLASH_AVR_H
+#ifndef FLASH_AVR_H
+#define FLASH_AVR_H
-#include <cfg/compiler.h>
-#include <kern/kfile.h>
+#include "cfg/cfg_emb_flash.h"
-bool flash_avr_test(void);
-void flash_avr_init(struct KFile *fd);
+#if !CONFIG_FLASH_DISABLE_OLD_API
+ /* For backwards compatibility */
+ #define FlashAvr Flash
+ #define flash_avr_init(fls) flash_init(fls);
+#endif /* !CONFIG_FLASH_DISABLE_OLD_API */
#endif /* DRV_FLASH_AVR_H */
#endif /* DRV_FLASH_AVR_H */