FreeCalypso > hg > freecalypso-sw
comparison nuc-fw/bsp/init_target.c @ 131:035672b72f9b
nuc-fw: sans-GSM tick timer and Init_Unmask_IT() implemented
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Fri, 01 Nov 2013 22:59:49 +0000 |
parents | 8b0793c67f9f |
children | 2c5160a9d652 |
comparison
equal
deleted
inserted
replaced
130:8b0793c67f9f | 131:035672b72f9b |
---|---|
12 #include "mem.h" | 12 #include "mem.h" |
13 #include "clkm.h" | 13 #include "clkm.h" |
14 #include "armio.h" | 14 #include "armio.h" |
15 #include "timer.h" | 15 #include "timer.h" |
16 #include "inth.h" | 16 #include "inth.h" |
17 #include "iq.h" | |
17 #include "rhea_arm.h" | 18 #include "rhea_arm.h" |
18 #include "ulpd.h" | 19 #include "ulpd.h" |
20 | |
21 #if !CONFIG_GSM | |
22 #include "timer2.h" | |
23 #endif | |
19 | 24 |
20 /* TPU_FREEZE is defined in l1_const.h */ | 25 /* TPU_FREEZE is defined in l1_const.h */ |
21 #include "../L1/include/l1_confg.h" | 26 #include "../L1/include/l1_confg.h" |
22 #include "../L1/include/l1_const.h" | 27 #include "../L1/include/l1_const.h" |
23 | 28 |
354 | 359 |
355 // Enable HW Timers 1 & 2 | 360 // Enable HW Timers 1 & 2 |
356 TM_EnableTimer (1); | 361 TM_EnableTimer (1); |
357 TM_EnableTimer (2); | 362 TM_EnableTimer (2); |
358 | 363 |
364 #if !CONFIG_GSM | |
365 Dtimer2_Init_cntl (1875, 1, 0, 1); | |
366 #endif | |
367 | |
359 #endif /* (OP_L1_STANDALONE == 0) */ | 368 #endif /* (OP_L1_STANDALONE == 0) */ |
360 | 369 |
361 } | 370 } |
371 | |
372 /* | |
373 * Init_Unmask_IT() is the last function called from Application_Initialize(); | |
374 * it also had to be reconstructed from disassembly. | |
375 */ | |
376 | |
377 void Init_Unmask_IT(void) | |
378 { | |
379 #if CONFIG_GSM | |
380 IQ_Unmask(IQ_FRAME); | |
381 #endif | |
382 IQ_Unmask(IQ_UART_IRDA_IT); | |
383 IQ_Unmask(IQ_UART_IT); | |
384 #if 0 | |
385 IQ_Unmask(IQ_ARMIO); | |
386 IQ_Unmask(IQ_API); | |
387 #endif | |
388 #if !CONFIG_GSM | |
389 IQ_Unmask(IQ_TIM2); | |
390 #endif | |
391 } |