Rev 304 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
196 | killagreg | 1 | /******************** (C) COPYRIGHT 2008 STMicroelectronics ******************** |
1 | ingob | 2 | * File Name : 91x_ahbapb.h |
3 | * Author : MCD Application Team |
||
196 | killagreg | 4 | * Version : V2.1 |
5 | * Date : 12/22/2008 |
||
1 | ingob | 6 | * Description : This file contains all the functions prototypes for the |
196 | killagreg | 7 | * AHBAPB firmware library. |
1 | ingob | 8 | ******************************************************************************** |
9 | * THE PRESENT SOFTWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH |
||
10 | * CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS |
||
11 | * A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT |
||
12 | * OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT |
||
13 | * OF SUCH SOFTWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION |
||
14 | * CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. |
||
15 | *******************************************************************************/ |
||
16 | |||
17 | /* Define to prevent recursive inclusion -------------------------------------*/ |
||
18 | #ifndef _91x_AHBAPB_H |
||
19 | #define _91x_AHBAPB_H |
||
20 | |||
21 | #include "91x_map.h" |
||
22 | |||
23 | #define AHBAPB_Split_Enable 0x01000000 |
||
24 | #define AHBAPB_Split_Disable 0xFEFFFFFF |
||
25 | #define AHBAPB_Error_Enable 0x0000100 |
||
26 | #define AHBAPB_Error_Disable 0xFFFFEFF |
||
27 | |||
28 | /*FLAG*/ |
||
29 | #define AHBAPB_FLAG_ERROR 0x01 /* error flag*/ |
||
30 | #define AHBAPB_FLAG_OUTM 0x10 /* Out of Memory flag */ |
||
31 | #define AHBAPB_FLAG_APBT 0x20 /* APB Time-out flag */ |
||
32 | #define AHBAPB_FLAG_RW 0x40 /*Access type flag*/ |
||
33 | |||
34 | /* Includes ------------------------------------------------------------------*/ |
||
35 | |||
36 | |||
37 | /* AHBAPB Init structure definition */ |
||
38 | typedef struct |
||
39 | { |
||
40 | u32 AHBAPB_SetTimeOut; |
||
41 | u32 AHBAPB_Error; |
||
42 | u32 AHBAPB_Split; |
||
43 | u8 AHBAPB_SplitCounter; |
||
44 | }AHBAPB_InitTypeDef; |
||
45 | |||
46 | /* Exported constants --------------------------------------------------------*/ |
||
47 | void AHBAPB_DeInit(AHBAPB_TypeDef* AHBAPBx); |
||
48 | void AHBAPB_Init(AHBAPB_TypeDef* AHBAPBx, AHBAPB_InitTypeDef* AHBAPB_InitStruct); |
||
49 | void AHBAPB_StructInit(AHBAPB_InitTypeDef* AHBAPB_InitStruct); |
||
50 | FlagStatus AHBAPB_GetFlagStatus(AHBAPB_TypeDef* AHBAPBx, u8 AHBAPB_FLAG); |
||
51 | void AHBAPB_ClearFlag(AHBAPB_TypeDef* AHBAPBx, u8 AHBAPB_FLAG); |
||
52 | u32 AHBAPB_GetPeriphAddrError(AHBAPB_TypeDef* AHBAPBx); |
||
53 | |||
54 | |||
55 | #endif /* _91x_AHBAPB_H */ |
||
56 | |||
196 | killagreg | 57 | /******************* (C) COPYRIGHT 2008 STMicroelectronics *****END OF FILE****/ |