projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
doc: Add further documentation for fatfile_open().
[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 11838ebacf466864e28a29d64231a087ed1c0bde..0897132c358809eb3c024c0c9779a739479a7345 100644
(file)
--- a/
bertos/cpu/avr/drv/flash_avr.h
+++ b/
bertos/cpu/avr/drv/flash_avr.h
@@
-54,7
+54,7
@@
typedef uint16_t avr_page_t;
/**
* FlashAvr KFile context structure.
*/
/**
* FlashAvr KFile context structure.
*/
-typedef struct
KFile
FlashAvr
+typedef struct FlashAvr
{
/**
* File descriptor.
{
/**
* File descriptor.
@@
-78,7
+78,7
@@
typedef struct KFileFlashAvr
uint8_t page_buf[SPM_PAGESIZE];
uint8_t page_buf[SPM_PAGESIZE];
-}
KFile
FlashAvr;
+} FlashAvr;
@@
-88,16
+88,16
@@
typedef struct KFileFlashAvr
#define KFT_FLASHAVR MAKE_ID('F', 'L', 'A', 'V')
/**
#define KFT_FLASHAVR MAKE_ID('F', 'L', 'A', 'V')
/**
- * Convert + ASSERT from generic KFile to
KFile
FlashAvr.
+ * Convert + ASSERT from generic KFile to FlashAvr.
*/
*/
-INLINE
KFileFlashAvr * KFILEFLASHAVR
(KFile *fd)
+INLINE
FlashAvr * FLASHAVR_CAST
(KFile *fd)
{
ASSERT(fd->_type == KFT_FLASHAVR);
{
ASSERT(fd->_type == KFT_FLASHAVR);
- return (
KFile
FlashAvr *)fd;
+ return (FlashAvr *)fd;
}
}
-void flash_avr_init(struct
KFile
FlashAvr *fd);
+void flash_avr_init(struct FlashAvr *fd);