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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [CORTEX_AT91SAM3U256_IAR/] [AT91Lib/] [peripherals/] [isi/] [isi.h] - Blame information for rev 580

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 580 jeremybenn
/* ----------------------------------------------------------------------------
2
 *         ATMEL Microcontroller Software Support
3
 * ----------------------------------------------------------------------------
4
 * Copyright (c) 2008, Atmel Corporation
5
 *
6
 * All rights reserved.
7
 *
8
 * Redistribution and use in source and binary forms, with or without
9
 * modification, are permitted provided that the following conditions are met:
10
 *
11
 * - Redistributions of source code must retain the above copyright notice,
12
 * this list of conditions and the disclaimer below.
13
 *
14
 * Atmel's name may not be used to endorse or promote products derived from
15
 * this software without specific prior written permission.
16
 *
17
 * DISCLAIMER: THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR
18
 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
20
 * DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT,
21
 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
23
 * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
24
 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25
 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
26
 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 * ----------------------------------------------------------------------------
28
 */
29
 
30
//------------------------------------------------------------------------------
31
/// \unit
32
///
33
/// !Purpose
34
/// 
35
/// Interface for configuration the Image Sensor Interface (ISI) peripheral.
36
/// 
37
/// !Usage
38
/// 
39
/// -# ISI_Init: initialize ISI with default parameters
40
/// -# ISI_EnableInterrupt: enable one or more interrupts
41
/// -# ISI_DisableInterrupt: disable one or more interrupts
42
/// -# ISI_Enable: enable isi module
43
/// -# ISI_Disable: disable isi module
44
/// -# ISI_CodecPathFull: enable codec path
45
/// -# ISI_SetFrame: set frame rate
46
/// -# ISI_BytesForOnePixel: return number of byte for one pixel
47
/// -# ISI_StatusRegister: return ISI status register
48
/// -# ISI_Reset: make a software reset
49
//------------------------------------------------------------------------------
50
 
51
#ifndef ISI_H
52
#define ISI_H
53
 
54
//------------------------------------------------------------------------------
55
//         Types
56
//------------------------------------------------------------------------------
57
 
58
/// ISI descriptors
59
typedef struct
60
{
61
    /// Current LCD index, used with AT91C_ISI_MAX_PREV_BUFFER
62
    unsigned int CurrentLcdIndex;
63
    /// set if Fifo Codec Empty is present
64
    volatile unsigned int DisplayCodec;
65
    /// upgrade for each Fifo Codec Overflow (statistics use)
66
    unsigned int nb_codec_ovf;
67
    /// upgrade for each Fifo Preview Overflow (statistics use)
68
    unsigned int nb_prev_ovf;
69
}ISI_Descriptors;
70
 
71
/// Frame Buffer Descriptors
72
typedef struct
73
{
74
    /// Address of the Current FrameBuffer
75
    unsigned int Current;
76
#if defined (BOARD_ISI_V200)
77
    /// Address of the Control
78
    unsigned int Control;
79
#endif
80
    /// Address of the Next FrameBuffer
81
    unsigned int Next;
82
}ISI_FrameBufferDescriptors;
83
 
84
//------------------------------------------------------------------------------
85
//         Exported functions
86
//------------------------------------------------------------------------------
87
extern void ISI_Enable(void);
88
extern void ISI_Disable(void);
89
extern void ISI_EnableInterrupt(unsigned int flag);
90
extern void ISI_DisableInterrupt(unsigned int flag);
91
extern void ISI_CodecPathFull(void);
92
extern void ISI_SetFrame(unsigned int frate);
93
extern unsigned char ISI_BytesForOnePixel(unsigned char bmpRgb);
94
extern void ISI_Reset(void);
95
extern void ISI_Init(AT91PS_VIDEO pVideo);
96
extern unsigned int ISI_StatusRegister(void);
97
 
98
#endif //#ifndef ISI_H
99
 

powered by: WebSVN 2.1.0

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