comparison chipsetsw/drivers/drv_core/abb/abb_core_inth.h @ 0:509db1a7b7b8

initial import: leo2moko-r1
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 03:24:05 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:509db1a7b7b8
1 /**********************************************************************************/
2 /* TEXAS INSTRUMENTS INCORPORATED PROPRIETARY INFORMATION */
3 /* */
4 /* Property of Texas Instruments -- For Unrestricted Internal Use Only */
5 /* Unauthorized reproduction and/or distribution is strictly prohibited. This */
6 /* product is protected under copyright law and trade secret law as an */
7 /* unpublished work. Created 1987, (C) Copyright 1997 Texas Instruments. All */
8 /* rights reserved. */
9 /* */
10 /* */
11 /* Filename : abb_core_inth.h */
12 /* */
13 /* Description : Functions to manage the ABB device interrupt. */
14 /* The Serial Port Interface is used to connect the TI */
15 /* Analog BaseBand (ABB). */
16 /* It is assumed that the ABB is connected as the SPI */
17 /* device 0, and ABB interrupt is mapped as external IT. */
18 /* */
19 /* Author : Pascal PUEL */
20 /* */
21 /* Version number : 1.0 */
22 /* */
23 /* Date and time : Jan 2003 */
24 /* */
25 /* Previous delta : Creation */
26 /* */
27 /**********************************************************************************/
28 /* */
29 /* 17/12/03 */
30 /* The original abb_inth.h has been splitted between the actual abb_inth.h */
31 /* located in drv_apps directory and abb_inth_core.h located in drv_core */
32 /* directory. */
33 /* */
34 /**********************************************************************************/
35
36 #ifndef __ABB_CORE_INTH_H__
37 #define __ABB_CORE_INTH_H__
38
39 #include "l1sw.cfg"
40
41 #if (OP_L1_STANDALONE == 0)
42 #include "main/sys_types.h"
43 #else
44 #include "sys_types.h"
45 #endif
46
47 #ifndef _WINDOWS
48
49 #include "chipset.cfg"
50
51 // Structure definition for ADC READING RESULT REPORTS
52 // Define the maximum number of measures performed by the MADC module
53 #if ((ANLG_FAM == 1) || (ANLG_FAM == 3))
54 #define MADC_NUMBER_OF_MEAS (9)
55 #endif
56 #if (ANLG_FAM == 2)
57 #define MADC_NUMBER_OF_MEAS (8)
58 #endif
59
60 typedef struct
61 {
62 SYS_UWORD16 adc_result[MADC_NUMBER_OF_MEAS];
63 } T_CST_ADC_RESULT;
64
65 #else // _WINDOWS
66
67 #define MADC_NUMBER_OF_MEAS (8)
68
69 #endif // _WINDOWS
70
71
72 // PROTOTYPES
73 #ifndef _WINDOWS
74 void Create_ABB_HISR(void);
75 SYS_BOOL Activate_ABB_HISR(void);
76 #endif // _WINDOWS
77
78 void EXT_HisrEntry(void);
79
80
81 #endif // __ABB_CORE_INTH_H__