From e7c081bcf578efdfe4f0091c9eaba6e6d657c720 Mon Sep 17 00:00:00 2001
From: asterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Date: Wed, 11 Aug 2010 14:40:59 +0000
Subject: [PATCH] Add support for old init.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4165 38d2e660-2303-0410-9eaa-f027e97ec537
---
 bertos/cpu/avr/drv/flash_avr.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/bertos/cpu/avr/drv/flash_avr.h b/bertos/cpu/avr/drv/flash_avr.h
index 6556e95d..b75a38b8 100644
--- a/bertos/cpu/avr/drv/flash_avr.h
+++ b/bertos/cpu/avr/drv/flash_avr.h
@@ -42,8 +42,10 @@
 #include "cfg/cfg_emb_flash.h"
 
 #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 */
-- 
2.34.1