Rev 196 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | ingob | 1 | /******************** (C) COPYRIGHT 2006 STMicroelectronics ******************** |
2 | * File Name : 91x_emi.h |
||
3 | * Author : MCD Application Team |
||
4 | * Date First Issued : 05/18/2006 : Version 1.0 |
||
5 | * Description : This file contains all the functions prototypes for the |
||
6 | * EMI software library. |
||
7 | ******************************************************************************** |
||
8 | * History: |
||
9 | * 05/22/2007 : Version 1.2 |
||
10 | * 05/24/2006 : Version 1.1 |
||
11 | * 05/18/2006 : Version 1.0 |
||
12 | ******************************************************************************** |
||
13 | * THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS |
||
14 | * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. |
||
15 | * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, |
||
16 | * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE |
||
17 | * CONTENT OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING |
||
18 | * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. |
||
19 | *******************************************************************************/ |
||
20 | |||
21 | /* Define to prevent recursive inclusion -------------------------------------*/ |
||
22 | #ifndef __91x_EMI_H |
||
23 | #define __91x_EMI_H |
||
24 | |||
25 | /* Includes ------------------------------------------------------------------*/ |
||
26 | #include "91x_map.h" |
||
27 | |||
28 | /* Exported types ------------------------------------------------------------*/ |
||
29 | typedef struct |
||
30 | { |
||
31 | u32 EMI_Bank_IDCY; |
||
32 | |||
33 | u32 EMI_Bank_WSTRD; |
||
34 | |||
35 | u32 EMI_Bank_WSTWR; |
||
36 | |||
37 | u32 EMI_Bank_WSTROEN; |
||
38 | |||
39 | u32 EMI_Bank_WSTWEN; |
||
40 | |||
41 | u32 EMI_Bank_MemWidth ; |
||
42 | |||
43 | u32 EMI_Bank_WriteProtection; |
||
44 | |||
45 | u32 EMI_PageModeRead_TransferLength; |
||
46 | |||
47 | u32 EMI_PageModeRead_Selection; |
||
48 | |||
49 | } EMI_InitTypeDef; |
||
50 | |||
51 | /* Exported constants --------------------------------------------------------*/ |
||
52 | |||
53 | |||
54 | /* page transfer length for page mode read */ |
||
55 | #define EMI_4Data 0x00000000 /*4 transfers burst*/ |
||
56 | #define EMI_8Data 0x00000400 /*8 transfers burst*/ |
||
57 | |||
58 | |||
59 | /*Select or deselect the page mode read*/ |
||
60 | #define EMI_NormalMode 0x00000000 /*Normal Mode*/ |
||
61 | #define EMI_PageModeRead 0x00000100 /*Page Mode Read*/ |
||
62 | |||
63 | |||
64 | /*memory width*/ |
||
65 | #define EMI_Width_Byte 0x00000000 /*8 bits width*/ |
||
66 | #define EMI_Width_HalfWord 0x00000010 /*16 bits width*/ |
||
67 | |||
68 | /*Write protection feature */ |
||
69 | #define EMI_Bank_NonWriteProtect 0x00000000 /*No write protection*/ |
||
70 | #define EMI_Bank_WriteProtect 0x00000008 /*bank is write protected*/ |
||
71 | |||
72 | |||
73 | /* Exported macro ------------------------------------------------------------*/ |
||
74 | |||
75 | |||
76 | /* Exported functions ------------------------------------------------------- */ |
||
77 | |||
78 | void EMI_DeInit(void); |
||
79 | void EMI_Init( EMI_Bank_TypeDef* EMI_Bankx, EMI_InitTypeDef* EMI_InitStruct); |
||
80 | void EMI_StructInit(EMI_InitTypeDef* EMI_InitStruct); |
||
81 | |||
82 | #endif /* __EMI_H */ |
||
83 | |||
84 | /******************* (C) COPYRIGHT 2006 STMicroelectronics *****END OF FILE****/ |