From: qwert Date: Thu, 17 Jul 2008 16:29:31 +0000 (+0000) Subject: Remove deprecated flash_avr_test method and generic clean at the code. X-Git-Tag: 2.0.0~444 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=dd6db266344e7bf6d58673d7ce5b5b3a9ed9e64d;p=bertos.git Remove deprecated flash_avr_test method and generic clean at the code. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1490 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/avr/drv/flash_avr.c b/bertos/cpu/avr/drv/flash_avr.c index ad350b29..c587c527 100644 --- a/bertos/cpu/avr/drv/flash_avr.c +++ b/bertos/cpu/avr/drv/flash_avr.c @@ -61,8 +61,6 @@ #include -#if 1 - /** * Definition of type for avr flash module. @@ -149,11 +147,10 @@ static void flash_avr_flush(void) * Write current buffered page in flash memory (if modified). * This function erase flash memory page before writing. */ -static int flash_avr_kfileFlush(struct KFile * fd) +static int flash_avr_kfileFlush(UNUSED_ARG(struct KFile *,fd)) { KFILEFLASHAVR(fd); - (void)fd; flash_avr_flush(); return 0; } @@ -300,5 +297,5 @@ void flash_avr_init(struct KFile *fd) flash_avr_open(fd); } -#endif + diff --git a/bertos/cpu/avr/drv/flash_avr.h b/bertos/cpu/avr/drv/flash_avr.h index 390f648d..c64fc699 100644 --- a/bertos/cpu/avr/drv/flash_avr.h +++ b/bertos/cpu/avr/drv/flash_avr.h @@ -69,8 +69,6 @@ INLINE KFileFlashAvr * KFILEFLASHAVR(KFile *fd) } - -bool flash_avr_test(void); void flash_avr_init(struct KFile *fd);