comparison bsp/abb+spi/abb_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_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 /* abb_core_inth.h must be included in abb_inth.h. */
34 /* */
35 /******************************************************************************/
36
37 #ifndef __ABB_INTH_H__
38 #define __ABB_INTH_H__
39
40 #include "abb_core_inth.h"
41
42 #ifndef _WINDOWS
43
44 /****************************************************************/
45 /* Power ON/OFF key definition. */
46 /****************************************************************/
47 // If <ON/OFF> key is pressed more than 20 TDMAs, it's a Hook-ON
48 #define SHORT_OFF_KEY_PRESSED (20)
49
50 // If <ON/OFF> key is pressed more than 160 TDMAs, it's a Hook-ON AND then Power-OFF
51 #define OFF_LOOP_COUNT (8)
52 #define LONG_OFF_KEY_PRESSED (OFF_LOOP_COUNT * SHORT_OFF_KEY_PRESSED)
53
54 #endif // _WINDOWS
55
56 // PROTOTYPES
57 void spi_abb_read_int_reg_callback(SYS_UWORD16 *read_value);
58
59 #endif // __ABB_INTH_H__