annotate gsm-fw/bsp/niq32.c @ 143:afceeeb2cba1

Our nuc-fw is destined to become gsm-fw, so I went ahead and did the big hg mv
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Tue, 12 Nov 2013 05:35:48 +0000
parents nuc-fw/bsp/niq32.c@035672b72f9b
children 595192258bc9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
1 /******************************************************************************
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
2 TEXAS INSTRUMENTS INCORPORATED PROPRIETARY INFORMATION
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
3
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
4 Property of Texas Instruments -- For Unrestricted Internal Use Only
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
5 Unauthorized reproduction and/or distribution is strictly prohibited. This
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
6 product is protected under copyright law and trade secret law as an
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
7 unpublished work. Created 1987, (C) Copyright 1997 Texas Instruments. All
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
8 rights reserved.
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
9
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
10
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
11 Filename : niq32.c
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
12
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
13 Description : Nucleus IQ initializations
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
14
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
15 Project : Drivers
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
16
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
17 Author : proussel@ti.com Patrick Roussel.
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
18
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
19 Version number : 1.25
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
20
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
21 Date : 08/22/03
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
22
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
23 Previous delta : 12/19/00 14:24:51
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
24
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
25 *******************************************************************************/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
26
113
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
27 #include "../include/config.h"
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
28 #include "../include/sys_types.h"
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
29
113
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
30 #include "inth.h"
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
31 #include "mem.h"
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
32 #include "iq.h"
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
33 #include "ulpd.h"
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
34 #include "armio.h"
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
35
128
789a9a95533f nuc-fw: more minor preparations for the big transition
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 113
diff changeset
36 #include "../serial/serialswitch.h"
789a9a95533f nuc-fw: more minor preparations for the big transition
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 113
diff changeset
37
113
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
38 #if 0
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
39
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
40 /* original maze of includes */
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
41
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
42 #if(OP_L1_STANDALONE == 0)
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
43 #include "debug.cfg"
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
44 #include "rv/rv_defined_swe.h"
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
45 #include "rtc/board/rtc_config.h"
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
46 #else
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
47 #include "l1_macro.h"
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
48 #include "l1_confg.h"
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
49 #endif
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
50
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
51 #if(OP_L1_STANDALONE == 0)
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
52 #include "swconfig.cfg"
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
53 #ifdef BLUETOOTH_INCLUDED
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
54 #include "btemobile.cfg"
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
55 #ifdef BT_CLK_REQ_INT
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
56 #include "board/bth_drv.h"
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
57 #endif
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
58 #endif
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
59 #endif
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
60
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
61
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
62 #if(L1_DYN_DSP_DWNLD == 1)
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
63 #include "l1_api_hisr.h"
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
64 #endif
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
65
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
66 #if (OP_L1_STANDALONE == 0)
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
67 #include "main/sys_types.h"
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
68 #else
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
69 #include "sys_types.h"
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
70 #endif
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
71
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
72 #if (CHIPSET == 12)
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
73 #include "sys_inth.h"
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
74 #else
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
75 #include "inth/inth.h"
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
76 #include "memif/mem.h"
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
77 #if (OP_L1_STANDALONE == 1)
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
78 #include "serialswitch_core.h"
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
79 #else
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
80 #include "uart/serialswitch.h"
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
81 #endif
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
82
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
83 #if (OP_L1_STANDALONE == 0)
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
84 #include "sim/sim.h"
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
85 #endif
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
86 #endif
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
87
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
88 #include "abb/abb_core_inth.h" // for External Interrupt
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
89 #define IQ_H
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
90 #include "inth/iq.h"
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
91 #include "ulpd/ulpd.h"
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
92 #if (BOARD == 34)
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
93 #include "csmi/csmi.h"
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
94 #endif
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
95
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
96 #if (defined RVM_DAR_SWE) && (defined _GSM)
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
97 extern void dar_watchdog_reset(void);
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
98 #endif
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
99
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
100 #if ((BOARD == 8) || (BOARD == 9) || (BOARD == 40) || (BOARD == 41) || (BOARD == 42) || (BOARD == 43) || (BOARD == 45))
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
101 #include "armio/armio.h"
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
102 #if (OP_L1_STANDALONE == 0)
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
103 #include "uart/uartfax.h"
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
104 #endif
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
105 #endif
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
106
113
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
107 /* end of original include maze */
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
108 #endif
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
109
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
110 /* External declaration */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
111 extern void GAUGING_Handler(void);
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
112 extern void TMT_Timer_Interrupt(void);
113
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
113 #if 0 //(OP_L1_STANDALONE == 1)
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
114 extern void TM_Timer1Handler(void);
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
115 #endif
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
116 extern void kpd_key_handler(void);
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
117 extern void TP_FrameIntHandler(void);
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
118
113
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
119 #if 1 //(OP_L1_STANDALONE == 0)
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
120 #if (defined RVM_MPM_SWE)
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
121 extern void MPM_InterruptHandler(void);
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
122 #endif
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
123
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
124 #if (TI_PROFILER == 1)
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
125 extern void ti_profiler_tdma_action(void);
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
126 #endif
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
127
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
128 #if(RF_FAM==35)
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
129 extern void TSP_RxHandler(void);
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
130 #endif
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
131
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
132 extern void RTC_GaugingHandler(void);
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
133 extern void RTC_ItTimerHandle(void);
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
134 extern void RTC_ItAlarmHandle(void);
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
135 #endif
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
136
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
137 /* Global variables */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
138 unsigned IQ_TimerCount1; /* Used to check if timer is incrementing */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
139 unsigned IQ_TimerCount2; /* Used to check if timer is incrementing */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
140 unsigned IQ_TimerCount; /* Used to check if timer is incrementing */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
141 unsigned IQ_DummyCount; /* Used to check if dummy IT */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
142 unsigned IQ_FrameCount; /* Used to check if Frame IT TPU*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
143 unsigned IQ_GsmTimerCount; /* Used to check if GSM Timer IT */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
144
113
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
145 /* FreeCalypso: the following interrupt handlers remain to be integrated */
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
146 #define SIM_IntHandler IQ_Dummy
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
147 #define SIM_CD_IntHandler IQ_Dummy
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
148
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
149 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
150 /* irqHandlers */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
151 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
152 /* Parameters :none */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
153 /* Return : none */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
154 /* Functionality : Table of interrupt handlers */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
155 /* These MUST be 32-bit entries */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
156 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
157
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
158 SYS_FUNC irqHandlers[IQ_NUM_INT] =
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
159 {
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
160 IQ_TimerHandler, /* Watchdog timer */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
161 IQ_TimerHandler1, /* timer 1 */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
162 IQ_TimerHandler2, /* timer 2 */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
163 IQ_Dummy, /* AIRQ 3 */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
164 IQ_FrameHandler, /* TPU Frame It AIRQ 4 */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
165 IQ_Dummy, /* AIRQ 5 */
113
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
166 #if 1 //(OP_L1_STANDALONE == 0)
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
167 SIM_IntHandler, /* AIRQ 6 */
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
168 #else
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
169 IQ_Dummy, /* AIRQ 6 */
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
170 #endif
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
171 #if ((CHIPSET == 2) || (CHIPSET == 3))
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
172 SER_uart_handler, /* AIRQ 7 */
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
173 #elif ((CHIPSET == 4) || (CHIPSET == 5) || (CHIPSET == 6) || (CHIPSET == 7) || (CHIPSET == 8) || (CHIPSET == 9) || (CHIPSET == 10) || (CHIPSET == 11))
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
174 SER_uart_modem_handler, /* AIRQ 7 */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
175 #endif
113
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
176 #if 1 //((BOARD == 8) || (BOARD == 9) || (BOARD == 40) || (BOARD == 41))
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
177 // CC test 0316
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
178 IQ_KeypadGPIOHandler, /* AIRQ 8 */
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
179 // end
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
180 #else
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
181 IQ_KeypadHandler, /* AIRQ 8 */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
182 #endif
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
183 IQ_Rtc_Handler, /* AIRQ 9 RTC Timer*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
184 #if ((CHIPSET == 2) || (CHIPSET == 3))
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
185 IQ_RtcA_GsmTim_Handler, /* AIRQ 10 RTC ALARM OR ULPD GSM TIMER*/
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
186 #elif ((CHIPSET == 4) || (CHIPSET == 5) || (CHIPSET == 6) || (CHIPSET == 7) || (CHIPSET == 8) || (CHIPSET == 9) || (CHIPSET == 10) || (CHIPSET == 11))
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
187 IQ_RtcA_Handler, /* AIRQ 10 RTC ALARM */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
188 #endif
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
189 IQ_Gauging_Handler, /* AIRQ 11 ULPD GAUGING */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
190 IQ_External, /* AIRQ 12 */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
191 IQ_Dummy, /* AIRQ 13 */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
192 IQ_Dummy, /* DMA interrupt */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
193 #if (CHIPSET == 4)
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
194 IQ_Dummy, /* LEAD */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
195 IQ_Dummy, /* SIM card-detect fast interrupt */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
196 IQ_Dummy, /* External fast interrupt */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
197 SER_uart_irda_handler, /* UART IrDA interrupt */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
198 IQ_GsmTim_Handler /* ULPD GSM timer */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
199 #elif ((CHIPSET == 5) || (CHIPSET == 6))
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
200 IQ_Dummy, /* LEAD */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
201 IQ_Dummy, /* SIM card-detect fast interrupt */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
202 IQ_Dummy, /* External fast interrupt */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
203 SER_uart_irda_handler, /* UART IrDA interrupt */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
204 IQ_GsmTim_Handler, /* ULPD GSM timer */
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
205 #if (BOARD == 34)
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
206 IQ_IcrHandler32,
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
207 #else
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
208 IQ_Dummy, /* Not mapped interrupt */
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
209 #endif
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
210 IQ_Dummy, /* Not mapped interrupt */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
211 IQ_Dummy, /* Not mapped interrupt */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
212 IQ_Dummy, /* Not mapped interrupt */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
213 IQ_Dummy /* GEA interrupt */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
214 #elif ((CHIPSET == 7) || (CHIPSET == 8) || (CHIPSET == 10) || (CHIPSET == 11))
113
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
215 #if 0 //(L1_DYN_DSP_DWNLD == 1)
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
216 IQ_ApiHandler, /* LEAD */
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
217 #else
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
218 IQ_Dummy, /* LEAD */
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
219 #endif
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
220 IQ_Dummy, /* SIM card-detect fast interrupt */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
221 IQ_Dummy, /* External fast interrupt */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
222 SER_uart_irda_handler, /* UART IrDA interrupt */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
223 IQ_GsmTim_Handler, /* ULPD GSM timer */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
224 IQ_Dummy /* GEA interrupt */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
225 #elif (CHIPSET == 9)
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
226 IQ_Dummy, /* LEAD */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
227 IQ_Dummy, /* SIM card-detect fast interrupt */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
228 IQ_Dummy, /* External fast interrupt */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
229 SER_uart_irda_handler, /* UART IrDA interrupt */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
230 IQ_GsmTim_Handler, /* ULPD GSM timer */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
231 IQ_Dummy, /* Not mapped interrupt */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
232 IQ_Dummy, /* Not mapped interrupt */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
233 IQ_Dummy, /* Not mapped interrupt */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
234 IQ_Dummy, /* Not mapped interrupt */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
235 IQ_Dummy /* Reserved */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
236 #else
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
237 IQ_Dummy /* LEAD */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
238 #endif
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
239 };
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
240
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
241 #if ((CHIPSET == 4) || (CHIPSET == 5) || (CHIPSET == 6) || (CHIPSET == 7) || (CHIPSET == 8) || (CHIPSET == 9) || (CHIPSET == 10) || (CHIPSET == 11))
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
242 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
243 /* fiqHandlers */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
244 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
245 /* Parameters :none */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
246 /* Return :none */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
247 /* Functionality : Table of interrupt handlers */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
248 /* These MUST be 32-bit entries */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
249 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
250
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
251 SYS_FUNC fiqHandlers[IQ_NUM_INT] =
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
252 {
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
253 IQ_Dummy, /* Watchdog timer */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
254 IQ_Dummy, /* timer 1 */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
255 IQ_Dummy, /* timer 2 */
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
256 #if ((OP_L1_STANDALONE == 0) && (RF_FAM == 35))
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
257 TSP_RxHandler, /* 3 TSP */
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
258 #else
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
259 IQ_Dummy, /* AIRQ 3 */
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
260 #endif
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
261 IQ_Dummy, /* TPU Frame It AIRQ 4 */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
262 IQ_Dummy, /* AIRQ 5 */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
263 IQ_Dummy, /* AIRQ 6 */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
264 IQ_Dummy, /* AIRQ 7 */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
265 IQ_Dummy, /* AIRQ 8 */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
266 IQ_Dummy, /* AIRQ 9 RTC Timer */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
267 IQ_Dummy, /* AIRQ 10 RTC ALARM */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
268 IQ_Dummy, /* AIRQ 11 ULPD GAUGING */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
269 IQ_Dummy, /* AIRQ 12 */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
270 IQ_Dummy, /* AIRQ 13 Spi Tx Rx interrupt */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
271 IQ_Dummy, /* DMA interrupt */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
272 IQ_Dummy, /* LEAD */
113
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
273 #if 1 //(OP_L1_STANDALONE == 0)
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
274 SIM_CD_IntHandler, /* SIM card-detect fast interrupt */
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
275 #else
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
276 IQ_Dummy, /* SIM card-detect fast interrupt */
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
277 #endif
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
278 IQ_Dummy, /* External fast interrupt */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
279 IQ_Dummy, /* UART_IRDA interrupt */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
280 #if (CHIPSET == 4)
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
281 IQ_Dummy /* ULPD GSM timer */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
282 #elif ((CHIPSET == 5) || (CHIPSET == 6))
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
283 IQ_Dummy, /* ULPD GSM timer */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
284 IQ_Dummy, /* Not mapped interrupt */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
285 IQ_Dummy, /* Not mapped interrupt */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
286 IQ_Dummy, /* Not mapped interrupt */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
287 IQ_Dummy, /* Not mapped interrupt */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
288 IQ_Dummy /* GEA interrupt */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
289 #elif ((CHIPSET == 7) || (CHIPSET == 8) || (CHIPSET == 10) || (CHIPSET == 11))
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
290 IQ_Dummy, /* ULPD GSM timer */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
291 IQ_Dummy /* GEA timer */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
292 #elif (CHIPSET == 9)
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
293 IQ_Dummy, /* ULPD GSM timer */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
294 IQ_Dummy, /* Not mapped interrupt */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
295 IQ_Dummy, /* Not mapped interrupt */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
296 IQ_Dummy, /* Not mapped interrupt */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
297 IQ_Dummy, /* Not mapped interrupt */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
298 IQ_Dummy /* Reserved */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
299 #endif
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
300 };
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
301 #endif
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
302
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
303 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
304 /* IQ_Gauging_Handler */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
305 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
306 /* Parameters :none */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
307 /* Return : none */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
308 /* Functionality : Handle unused interrupts */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
309 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
310 void IQ_Gauging_Handler(void)
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
311 {
113
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
312 #if 0
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
313 // FreeCalypso: code not integrated yet
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
314 GAUGING_Handler();
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
315 #if (OP_L1_STANDALONE == 0)
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
316 RTC_GaugingHandler();
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
317 #endif
113
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
318 #endif
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
319 }
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
320
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
321
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
322 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
323 /* IQ_External */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
324 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
325 /* Parameters : none */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
326 /* Return : none */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
327 /* Functionality : Handle External IRQ mapped on ABB. */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
328 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
329 void IQ_External(void)
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
330 {
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
331 #if (CHIPSET == 12)
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
332 // Mask external interrupt 12
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
333 F_INTH_DISABLE_ONE_IT(C_INTH_ABB_IRQ_IT);
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
334 #else
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
335 // Mask external interrupt 12
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
336 IQ_Mask(IQ_EXT);
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
337 #endif
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
338
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
339 // The external IRQ is mapped on the ABB interrupt.
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
340 // The associated HISR ABB_Hisr is activated on reception on the external IRQ.
113
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
341 #if 0
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
342 // FreeCalypso: code not integrated yet
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
343 if(Activate_ABB_HISR())
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
344 {
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
345 #if (CHIPSET == 12)
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
346 F_INTH_ENABLE_ONE_IT(C_INTH_ABB_IRQ_IT);
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
347 #else
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
348 // Mask external interrupt 12
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
349 IQ_Unmask(IQ_EXT);
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
350 #endif
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
351 }
113
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
352 #endif
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
353 }
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
354
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
355 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
356 /* IQ_Dummy */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
357 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
358 /* Parameters :none */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
359 /* Return : none */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
360 /* Functionality : Handle unused interrupts */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
361 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
362 void IQ_Dummy(void)
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
363 {
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
364 IQ_DummyCount++;
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
365 }
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
366
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
367 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
368 /* IQ_RTCHandler */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
369 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
370 /* Parameters :none */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
371 /* Return : none */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
372 /* Functionality : Handle RTC Time interrupts */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
373 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
374
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
375 void IQ_Rtc_Handler(void)
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
376 {
113
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
377 #if 0 //(OP_L1_STANDALONE == 0)
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
378 RTC_ItTimerHandle();
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
379 #endif
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
380 }
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
381
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
382 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
383 /* IQ_RtcA_GsmTim_Handler */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
384 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
385 /* Parameters :none */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
386 /* Return : none */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
387 /* Functionality : Handle RTC ALARM or GAUGING interrupts */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
388 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
389
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
390 #if ((CHIPSET == 4) || (CHIPSET == 5) || (CHIPSET == 6) || (CHIPSET == 7) || (CHIPSET == 8) || (CHIPSET == 9) || (CHIPSET == 10) || (CHIPSET == 11) || (CHIPSET == 12))
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
391 void IQ_RtcA_Handler(void)
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
392 {
113
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
393 #if 0 //(OP_L1_STANDALONE == 0)
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
394 /* INTH_DISABLEONEIT(IQ_RTC_ALARM); *//* RTC ALARM IT */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
395 if ( (* (SYS_WORD8 *) RTC_STATUS_REG) & RTC_ALARM )
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
396 RTC_ItAlarmHandle();
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
397 #endif
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
398 }
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
399
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
400 void IQ_GsmTim_Handler(void)
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
401 {
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
402
113
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
403 if ( (* (SYS_UWORD16 *) ULPD_GSM_TIMER_IT_REG) & ULPD_IT_TIMER_GSM )
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
404 {
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
405 // it is GSM Timer it.....
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
406 IQ_GsmTimerCount++;
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
407 }
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
408 }
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
409 #else
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
410 void IQ_RtcA_GsmTim_Handler(void)
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
411 {
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
412 #if (OP_L1_STANDALONE == 0)
113
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
413 if ( (* (SYS_UWORD16 *) ULPD_GSM_TIMER_IT_REG) & ULPD_IT_TIMER_GSM )
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
414 {
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
415 // it is GSM Timer it.....
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
416 IQ_GsmTimerCount++;
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
417 }
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
418 else
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
419 {
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
420 /* INTH_DISABLEONEIT(IQ_RTC_ALARM); *//* RTC ALARM IT */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
421 if ( (* (SYS_WORD8 *) RTC_STATUS_REG) & RTC_ALARM )
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
422 RTC_ItAlarmHandle();
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
423 }
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
424 #endif
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
425 }
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
426 #endif
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
427
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
428 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
429 /* IQ_TimerHandler */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
430 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
431 /* Parameters :none */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
432 /* Return : none */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
433 /* Functionality : Handle Timer interrupts */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
434 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
435 void IQ_TimerHandler(void)
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
436 {
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
437 IQ_TimerCount++;
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
438 TMT_Timer_Interrupt();
113
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
439 #if 0 //(defined RVM_DAR_SWE) && (defined _GSM)
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
440 dar_watchdog_reset();
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
441 #endif
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
442 }
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
443
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
444 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
445 /* IQ_FramerHandler */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
446 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
447 /* Parameters :none */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
448 /* Return : none */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
449 /* Functionality : Handle Timer interrupts */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
450 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
451 void IQ_FrameHandler(void)
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
452 {
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
453 IQ_FrameCount++;
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
454 TMT_Timer_Interrupt();
113
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
455 #if 0
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
456 // FreeCalypso: that L1 or whatever code hasn't been integrated yet
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
457 TP_FrameIntHandler();
113
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
458 #endif
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
459 #if (OP_L1_STANDALONE == 0)
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
460 #if (TI_PROFILER == 1)
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
461 // TDMA treatment for profiling buffer
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
462 ti_profiler_tdma_action();
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
463 #endif
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
464 #endif
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
465 }
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
466
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
467 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
468 /* IQ_TimerHandler1 */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
469 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
470 /* Parameters :none */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
471 /* Return : none */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
472 /* Functionality : Handle Timer 1 interrupts */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
473 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
474 void IQ_TimerHandler1(void)
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
475 {
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
476 IQ_TimerCount1++;
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
477 #if (OP_L1_STANDALONE == 1)
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
478 TM_Timer1Handler();
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
479 #endif
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
480 }
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
481
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
482 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
483 /* IQ_TimerHandler2 */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
484 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
485 /* Parameters :none */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
486 /* Return : none */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
487 /* Functionality : Handle Timer 2 interrupts */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
488 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
489 void IQ_TimerHandler2(void)
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
490 {
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
491 IQ_TimerCount2++;
131
035672b72f9b nuc-fw: sans-GSM tick timer and Init_Unmask_IT() implemented
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 128
diff changeset
492 #if !CONFIG_GSM
035672b72f9b nuc-fw: sans-GSM tick timer and Init_Unmask_IT() implemented
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 128
diff changeset
493 TMT_Timer_Interrupt();
035672b72f9b nuc-fw: sans-GSM tick timer and Init_Unmask_IT() implemented
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 128
diff changeset
494 #endif
035672b72f9b nuc-fw: sans-GSM tick timer and Init_Unmask_IT() implemented
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 128
diff changeset
495 }
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
496
113
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
497 #if 0 //(L1_DYN_DSP_DWNLD == 1)
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
498 /*-------------------------------------------------------*/
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
499 /* IQ_ApiHandler() */
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
500 /*-------------------------------------------------------*/
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
501 /* Parameters : none */
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
502 /* Return : none */
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
503 /* Functionality : API int management */
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
504 /*-------------------------------------------------------*/
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
505 void IQ_ApiHandler(void)
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
506 {
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
507 l1_api_handler();
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
508 } /* IQ_ApiHandler() */
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
509 #endif
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
510
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
511
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
512 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
513 /* IQ_IRQ_isr */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
514 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
515 /* Parameters :none */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
516 /* Return : none */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
517 /* Functionality : HHandle IRQ interrupts */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
518 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
519 void IQ_IRQ_isr(void)
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
520 {
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
521 irqHandlers[((* (SYS_UWORD16 *) INTH_B_IRQ_REG) & INTH_SRC_NUM)](); /* ACK IT */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
522 * (SYS_UWORD16 *) INTH_CTRL_REG |= (1 << INTH_IRQ); /* valid next IRQ */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
523 }
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
524
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
525 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
526 /* IQ_FIQ_isr */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
527 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
528 /* Parameters :none */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
529 /* Return : none */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
530 /* Functionality : Handle FIQ interrupts */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
531 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
532 void IQ_FIQ_isr(void)
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
533 {
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
534 #if ((CHIPSET == 4) || (CHIPSET == 5) || (CHIPSET == 6) || (CHIPSET == 7) || (CHIPSET == 8) || (CHIPSET == 9) || (CHIPSET == 10) || (CHIPSET == 11))
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
535 fiqHandlers[((* (SYS_UWORD16 *) INTH_B_FIQ_REG) & INTH_SRC_NUM)](); /* ACK IT */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
536 #endif
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
537 * (SYS_UWORD16 *) INTH_CTRL_REG |= (1 << INTH_FIQ); /* valid next FIQ */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
538 }
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
539
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
540 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
541 /* IQ_KeypadGPIOHandler */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
542 /*--------------------------------------------------------------*/
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
543 /* Parameters : none */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
544 /* Return : none */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
545 /* Functionality : Handle keypad and GPIO interrupts */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
546 /*--------------------------------------------------------------*/
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
547 // CC test 0316
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
548 //#include "rvm/rvm_use_id_list.h"
113
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
549 //#include "rvf/rvf_api.h"
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
550 //static char debug_buffer[50];
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
551 // end
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
552
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
553 void IQ_KeypadGPIOHandler(void)
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
554 {
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
555
113
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
556 #if 0 //(OP_L1_STANDALONE == 0)
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
557 /*
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
558 * GPIO interrupt must be checked before the keypad interrupt. The GPIO
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
559 * status bit is reset when the register is read.
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
560 */
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
561
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
562 if (AI_CheckITSource (ARMIO_GPIO_INT))
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
563
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
564 // CC test 0315
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
565 {
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
566 AI_MaskIT (ARMIO_MASKIT_GPIO);
113
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
567 //sprintf(debug_buffer, "GPIO_Interrupt");
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
568 //rvf_send_trace(debug_buffer, 40, NULL_PARAM, RV_TRACE_LEVEL_ERROR, RVT_USE_ID);
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
569 AI_UnmaskIT(ARMIO_MASKIT_GPIO); //0x0002
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
570 // end
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
571 /*
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
572 #ifdef RVM_MPM_SWE
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
573 // check if the SWE has been started
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
574 MPM_InterruptHandler ();
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
575 #elif BT_CLK_REQ_INT
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
576
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
577 BT_DRV_ClkReqInterruptHandler( );
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
578 #else
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
579 UAF_DTRInterruptHandler ();
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
580 #endif
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
581 */
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
582 }
113
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
583 if (AI_CheckITSource (ARMIO_KEYPAD_INT))
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
584 {
113
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
585 // CC test 0316
3b2e941043d8 nuc-fw/bsp: niq32.c compiles
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 112
diff changeset
586 //sprintf(debug_buffer, "Key_Interrupt");
112
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
587 //rvf_send_trace(debug_buffer, 40, NULL_PARAM, RV_TRACE_LEVEL_ERROR, RVT_USE_ID);
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
588 // end
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
589 kpd_key_handler ();
4179acab05f7 nuc-fw/bsp: niq32.c and sim.h replaced with new versions
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents: 93
diff changeset
590 }
93
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
591
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
592 #endif
45911ad957fd nuc-fw: beginning to integrate TI's BSP code
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff changeset
593 }