comparison src/cs/drivers/drv_core/inth/niq32.c @ 10:4f002f675fd1

niq32.c: reduced for FFS editor
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 15 May 2020 03:55:23 +0000
parents 92470e5d0b9e
children 9a8a20d45be7
comparison
equal deleted inserted replaced
9:227e8621dcf2 10:4f002f675fd1
151 IQ_TimerHandler1, /* timer 1 */ 151 IQ_TimerHandler1, /* timer 1 */
152 IQ_TimerHandler2, /* timer 2 */ 152 IQ_TimerHandler2, /* timer 2 */
153 IQ_Dummy, /* AIRQ 3 */ 153 IQ_Dummy, /* AIRQ 3 */
154 IQ_FrameHandler, /* TPU Frame It AIRQ 4 */ 154 IQ_FrameHandler, /* TPU Frame It AIRQ 4 */
155 IQ_Dummy, /* AIRQ 5 */ 155 IQ_Dummy, /* AIRQ 5 */
156 #if (OP_L1_STANDALONE == 0) 156 #if 0 //(OP_L1_STANDALONE == 0)
157 SIM_IntHandler, /* AIRQ 6 */ 157 SIM_IntHandler, /* AIRQ 6 */
158 #else 158 #else
159 IQ_Dummy, /* AIRQ 6 */ 159 IQ_Dummy, /* AIRQ 6 */
160 #endif 160 #endif
161 #if ((CHIPSET == 2) || (CHIPSET == 3)) 161 #if ((CHIPSET == 2) || (CHIPSET == 3))
256 IQ_Dummy, /* AIRQ 11 ULPD GAUGING */ 256 IQ_Dummy, /* AIRQ 11 ULPD GAUGING */
257 IQ_Dummy, /* AIRQ 12 */ 257 IQ_Dummy, /* AIRQ 12 */
258 IQ_Dummy, /* AIRQ 13 Spi Tx Rx interrupt */ 258 IQ_Dummy, /* AIRQ 13 Spi Tx Rx interrupt */
259 IQ_Dummy, /* DMA interrupt */ 259 IQ_Dummy, /* DMA interrupt */
260 IQ_Dummy, /* LEAD */ 260 IQ_Dummy, /* LEAD */
261 #if (OP_L1_STANDALONE == 0) 261 #if 0 //(OP_L1_STANDALONE == 0)
262 SIM_CD_IntHandler, /* SIM card-detect fast interrupt */ 262 SIM_CD_IntHandler, /* SIM card-detect fast interrupt */
263 #else 263 #else
264 IQ_Dummy, /* SIM card-detect fast interrupt */ 264 IQ_Dummy, /* SIM card-detect fast interrupt */
265 #endif 265 #endif
266 IQ_Dummy, /* External fast interrupt */ 266 IQ_Dummy, /* External fast interrupt */
296 /* Return : none */ 296 /* Return : none */
297 /* Functionality : Handle unused interrupts */ 297 /* Functionality : Handle unused interrupts */
298 /*--------------------------------------------------------------*/ 298 /*--------------------------------------------------------------*/
299 void IQ_Gauging_Handler(void) 299 void IQ_Gauging_Handler(void)
300 { 300 {
301 #if 0 /* FC FFS editor */
301 GAUGING_Handler(); 302 GAUGING_Handler();
302 #if (OP_L1_STANDALONE == 0) 303 #if (OP_L1_STANDALONE == 0)
303 RTC_GaugingHandler(); 304 RTC_GaugingHandler();
305 #endif
304 #endif 306 #endif
305 } 307 }
306 308
307 309
308 /*--------------------------------------------------------------*/ 310 /*--------------------------------------------------------------*/
320 #else 322 #else
321 // Mask external interrupt 12 323 // Mask external interrupt 12
322 IQ_Mask(IQ_EXT); 324 IQ_Mask(IQ_EXT);
323 #endif 325 #endif
324 326
327 #if 0 /* FC FFS editor */
325 // The external IRQ is mapped on the ABB interrupt. 328 // The external IRQ is mapped on the ABB interrupt.
326 // The associated HISR ABB_Hisr is activated on reception on the external IRQ. 329 // The associated HISR ABB_Hisr is activated on reception on the external IRQ.
327 if(Activate_ABB_HISR()) 330 if(Activate_ABB_HISR())
328 { 331 {
329 #if (CHIPSET == 12) 332 #if (CHIPSET == 12)
331 #else 334 #else
332 // Mask external interrupt 12 335 // Mask external interrupt 12
333 IQ_Unmask(IQ_EXT); 336 IQ_Unmask(IQ_EXT);
334 #endif 337 #endif
335 } 338 }
339 #endif
336 } 340 }
337 341
338 #if (CHIPSET != 12) 342 #if (CHIPSET != 12)
339 /*--------------------------------------------------------------*/ 343 /*--------------------------------------------------------------*/
340 /* IQ_Dummy */ 344 /* IQ_Dummy */
357 /* Functionality : Handle RTC Time interrupts */ 361 /* Functionality : Handle RTC Time interrupts */
358 /*--------------------------------------------------------------*/ 362 /*--------------------------------------------------------------*/
359 363
360 void IQ_Rtc_Handler(void) 364 void IQ_Rtc_Handler(void)
361 { 365 {
366 #if 0 /* FC FFS editor */
362 #if (OP_L1_STANDALONE == 0) 367 #if (OP_L1_STANDALONE == 0)
363 RTC_ItTimerHandle(); 368 RTC_ItTimerHandle();
364 #endif 369 #endif
370 #endif
365 } 371 }
366 372
367 /*--------------------------------------------------------------*/ 373 /*--------------------------------------------------------------*/
368 /* IQ_RtcA_GsmTim_Handler */ 374 /* IQ_RtcA_GsmTim_Handler */
369 /*--------------------------------------------------------------*/ 375 /*--------------------------------------------------------------*/
373 /*--------------------------------------------------------------*/ 379 /*--------------------------------------------------------------*/
374 380
375 #if ((CHIPSET == 4) || (CHIPSET == 5) || (CHIPSET == 6) || (CHIPSET == 7) || (CHIPSET == 8) || (CHIPSET == 9) || (CHIPSET == 10) || (CHIPSET == 11) || (CHIPSET == 12)) 381 #if ((CHIPSET == 4) || (CHIPSET == 5) || (CHIPSET == 6) || (CHIPSET == 7) || (CHIPSET == 8) || (CHIPSET == 9) || (CHIPSET == 10) || (CHIPSET == 11) || (CHIPSET == 12))
376 void IQ_RtcA_Handler(void) 382 void IQ_RtcA_Handler(void)
377 { 383 {
384 #if 0 /* FC FFS editor */
378 #if (OP_L1_STANDALONE == 0) 385 #if (OP_L1_STANDALONE == 0)
379 /* INTH_DISABLEONEIT(IQ_RTC_ALARM); *//* RTC ALARM IT */ 386 /* INTH_DISABLEONEIT(IQ_RTC_ALARM); *//* RTC ALARM IT */
380 if ( (* (SYS_WORD8 *) RTC_STATUS_REG) & RTC_ALARM ) 387 if ( (* (SYS_WORD8 *) RTC_STATUS_REG) & RTC_ALARM )
381 RTC_ItAlarmHandle(); 388 RTC_ItAlarmHandle();
382 #endif 389 #endif
390 #endif
383 } 391 }
384 392
385 void IQ_GsmTim_Handler(void) 393 void IQ_GsmTim_Handler(void)
386 { 394 {
387 395
446 /*--------------------------------------------------------------*/ 454 /*--------------------------------------------------------------*/
447 void IQ_FrameHandler(void) 455 void IQ_FrameHandler(void)
448 { 456 {
449 IQ_FrameCount++; 457 IQ_FrameCount++;
450 TMT_Timer_Interrupt(); 458 TMT_Timer_Interrupt();
459 #if 0 /* FC FFS editor */
451 TP_FrameIntHandler(); 460 TP_FrameIntHandler();
461 #endif
452 #if (OP_L1_STANDALONE == 0) 462 #if (OP_L1_STANDALONE == 0)
453 #if (TI_PROFILER == 1) 463 #if (TI_PROFILER == 1)
454 // TDMA treatment for profiling buffer 464 // TDMA treatment for profiling buffer
455 ti_profiler_tdma_action(); 465 ti_profiler_tdma_action();
456 #endif 466 #endif
539 /* Functionality : Handle keypad and GPIO interrupts */ 549 /* Functionality : Handle keypad and GPIO interrupts */
540 /*--------------------------------------------------------------*/ 550 /*--------------------------------------------------------------*/
541 551
542 void IQ_KeypadGPIOHandler(void) 552 void IQ_KeypadGPIOHandler(void)
543 { 553 {
544 554 #if 0 /* FC FFS editor */
545 #if (OP_L1_STANDALONE == 0) 555 #if (OP_L1_STANDALONE == 0)
546 /* 556 /*
547 * GPIO interrupt must be checked before the keypad interrupt. The GPIO 557 * GPIO interrupt must be checked before the keypad interrupt. The GPIO
548 * status bit is reset when the register is read. 558 * status bit is reset when the register is read.
549 */ 559 */
564 if (AI_CheckITSource (ARMIO_KEYPDAD_INT)) 574 if (AI_CheckITSource (ARMIO_KEYPDAD_INT))
565 { 575 {
566 kpd_key_handler (); 576 kpd_key_handler ();
567 } 577 }
568 #endif 578 #endif
579 #endif
569 } 580 }
570 581
571 #elif ((BOARD == 34) || (BOARD == 42) || (BOARD == 43) || (BOARD == 45)) 582 #elif ((BOARD == 34) || (BOARD == 42) || (BOARD == 43) || (BOARD == 45))
572 583
573 /*--------------------------------------------------------------*/ 584 /*--------------------------------------------------------------*/