FreeCalypso > hg > freecalypso-citrine
comparison bsp/abb+spi/abb_core_inth.h @ 0:75a11d740a02
initial import of gsm-fw from freecalypso-sw rev 1033:5ab737ac3ad7
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 09 Jun 2016 00:02:41 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:75a11d740a02 |
---|---|
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 "../../include/config.h" | |
40 #include "../../include/sys_types.h" | |
41 | |
42 #ifndef _WINDOWS | |
43 | |
44 // Structure definition for ADC READING RESULT REPORTS | |
45 // Define the maximum number of measures performed by the MADC module | |
46 #if ((ANALOG == 1) || (ANALOG == 3)) | |
47 #define MADC_NUMBER_OF_MEAS (9) | |
48 #endif | |
49 #if (ANALOG == 2) | |
50 #define MADC_NUMBER_OF_MEAS (8) | |
51 #endif | |
52 | |
53 typedef struct | |
54 { | |
55 SYS_UWORD16 adc_result[MADC_NUMBER_OF_MEAS]; | |
56 } T_CST_ADC_RESULT; | |
57 | |
58 #else // _WINDOWS | |
59 | |
60 #define MADC_NUMBER_OF_MEAS (8) | |
61 | |
62 #endif // _WINDOWS | |
63 | |
64 | |
65 // PROTOTYPES | |
66 #ifndef _WINDOWS | |
67 void Create_ABB_HISR(void); | |
68 SYS_BOOL Activate_ABB_HISR(void); | |
69 #endif // _WINDOWS | |
70 | |
71 void EXT_HisrEntry(void); | |
72 | |
73 | |
74 #endif // __ABB_CORE_INTH_H__ |