Nut/OS  4.10.3
API Reference
at91_eefc.h
Go to the documentation of this file.
00001 #ifndef _ARCH_ARM_AT91_EEFC_H_
00002 #define _ARCH_ARM_AT91_EEFC_H_
00003 
00004 /*
00005  * Copyright (C) 2010 by egnite GmbH
00006  *
00007  * All rights reserved.
00008  *
00009  * Redistribution and use in source and binary forms, with or without
00010  * modification, are permitted provided that the following conditions
00011  * are met:
00012  *
00013  * 1. Redistributions of source code must retain the above copyright
00014  *    notice, this list of conditions and the following disclaimer.
00015  * 2. Redistributions in binary form must reproduce the above copyright
00016  *    notice, this list of conditions and the following disclaimer in the
00017  *    documentation and/or other materials provided with the distribution.
00018  * 3. Neither the name of the copyright holders nor the names of
00019  *    contributors may be used to endorse or promote products derived
00020  *    from this software without specific prior written permission.
00021  *
00022  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
00023  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
00024  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
00025  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
00026  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
00027  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
00028  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
00029  * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
00030  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00031  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
00032  * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00033  * SUCH DAMAGE.
00034  *
00035  * For additional information see http://www.ethernut.de/
00036  */
00037 
00051 
00054 #define EEFC_FMR_OFF            0x00000000  
00055 #define EEFC_FMR (EEFC_BASE + EEFC_FMR_OFF) 
00056 #define EEFC_FWS                0x00000F00  
00057 #define EEFC_FWS_LSB                    8   
00059 
00060 
00062 #define EEFC_FCR_OFF            0x00000004  
00063 #define EEFC_FCR (EEFC_BASE + EEFC_FCR_OFF) 
00064 #define EEFC_FCMD               0x000000FF  
00065 #define EEFC_FCMD_GETD          0x00000000  
00066 #define EEFC_FCMD_WP            0x00000001  
00067 #define EEFC_FCMD_WPL           0x00000002  
00068 #define EEFC_FCMD_EWP           0x00000003  
00069 #define EEFC_FCMD_EWPL          0x00000004  
00070 #define EEFC_FCMD_EA            0x00000005  
00071 #define EEFC_FCMD_EPL           0x00000006  
00072 #define EEFC_FCMD_EPA           0x00000007  
00073 #define EEFC_FCMD_SLB           0x00000008  
00074 #define EEFC_FCMD_CLB           0x00000009  
00075 #define EEFC_FCMD_GLB           0x0000000A  
00076 #define EEFC_FCMD_SGPB          0x0000000B  
00077 #define EEFC_FCMD_CGPB          0x0000000C  
00078 #define EEFC_FCMD_GGPB          0x0000000D  
00079 #define EEFC_FARG               0x00FFFF00  
00080 #define EEFC_FARG_LSB                   8   
00081 #define EEFC_FKEY               0x5A000000  
00083 
00084 
00086 #define EEFC_FSR_OFF            0x00000008  
00087 #define EEFC_FSR (EEFC_BASE + EEFC_FSR_OFF) 
00088 #define EEFC_FRDY               0x00000001  
00089 #define EEFC_FCMDE              0x00000002  
00090 #define EEFC_LOCKE              0x00000004  
00092 
00093 
00095 #define EEFC_FRR_OFF            0x0000000C  
00096 #define EEFC_FRR (EEFC_BASE + EEFC_FRR_OFF) 
00098 
00099 
00101 #define EEFC_FVR_OFF            0x00000010  
00102 #define EEFC_FVR (EEFC_BASE + EEFC_FVR_OFF) 
00104 
00105 
00107 #endif