FreeCalypso > hg > tcs211-fcmodem
comparison chipsetsw/drivers/drv_app/abb/abb_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_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 "main/sys_types.h" | |
41 #include "abb/abb_core_inth.h" | |
42 | |
43 #ifndef _WINDOWS | |
44 | |
45 #include "l1sw.cfg" | |
46 #include "chipset.cfg" | |
47 | |
48 /****************************************************************/ | |
49 /* Power ON/OFF key definition. */ | |
50 /****************************************************************/ | |
51 // If <ON/OFF> key is pressed more than 20 TDMAs, it's a Hook-ON | |
52 #define SHORT_OFF_KEY_PRESSED (20) | |
53 | |
54 // If <ON/OFF> key is pressed more than 160 TDMAs, it's a Hook-ON AND then Power-OFF | |
55 #define OFF_LOOP_COUNT (8) | |
56 #define LONG_OFF_KEY_PRESSED (OFF_LOOP_COUNT * SHORT_OFF_KEY_PRESSED) | |
57 | |
58 #endif // _WINDOWS | |
59 | |
60 // PROTOTYPES | |
61 void spi_abb_read_int_reg_callback(SYS_UWORD16 *read_value); | |
62 | |
63 #endif // __ABB_INTH_H__ |