OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [ARM9_STR91X_IAR/] [Library/] [include/] [91x_ahbapb.h] - Blame information for rev 584

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.