From: batt Date: Fri, 2 Apr 2010 10:01:25 +0000 (+0000) Subject: AT91SAM7: add FMCN shifts. X-Git-Tag: 2.5.0~528 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=1a270a00a630cfce94f0569eefa92060f0e26749;p=bertos.git AT91SAM7: add FMCN shifts. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3380 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/cpu/arm/io/at91_mc.h b/bertos/cpu/arm/io/at91_mc.h index fbae705e..735bc410 100644 --- a/bertos/cpu/arm/io/at91_mc.h +++ b/bertos/cpu/arm/io/at91_mc.h @@ -109,6 +109,7 @@ #define MC_FWS_3R4W 0x00000200 ///< 3 cycles for read, 4 for write operations. #define MC_FWS_4R4W 0x00000300 ///< 4 cycles for read and write operations. #define MC_FMCN_MASK 0x00FF0000 ///< Flash microsecond cycle number mask. +#define MC_FMCN_SHIFT 16 ///< Flash microsecond cycle number shift. #define MC_FCR_OFF 0x00000064 ///< MC flash command register offset. #define MC_FCR (*((reg32_t *)(MC_BASE + MC_FCR_OFF))) ///< MC flash command register address.