projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Re-Refactor code under new specs. FlashAvr.
[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 4a0aea73f88eaacb05f61198121333d0c0ee1f8f..5b8dd6b194d3a1f0d82531cd3138886a2168600a 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 FlashAvr
KFile
+typedef struct FlashAvr
{
/**
* File descriptor.
{
/**
* File descriptor.
@@
-78,7
+78,7
@@
typedef struct FlashAvrKFile
uint8_t page_buf[SPM_PAGESIZE];
uint8_t page_buf[SPM_PAGESIZE];
-} FlashAvr
KFile
;
+} FlashAvr;
@@
-88,16
+88,16
@@
typedef struct FlashAvrKFile
#define KFT_FLASHAVR MAKE_ID('F', 'L', 'A', 'V')
/**
#define KFT_FLASHAVR MAKE_ID('F', 'L', 'A', 'V')
/**
- * Convert + ASSERT from generic KFile to FlashAvr
KFile
.
+ * Convert + ASSERT from generic KFile to FlashAvr.
*/
*/
-INLINE FlashAvr
KFile
* FLASHAVRKFILE(KFile *fd)
+INLINE FlashAvr * FLASHAVRKFILE(KFile *fd)
{
ASSERT(fd->_type == KFT_FLASHAVR);
{
ASSERT(fd->_type == KFT_FLASHAVR);
- return (FlashAvr
KFile
*)fd;
+ return (FlashAvr *)fd;
}
}
-void flash_avr_init(struct FlashAvr
KFile
*fd);
+void flash_avr_init(struct FlashAvr *fd);