comparison gsm-fw/bsp/rtc/rtc_functions.c @ 161:98be4841eeb7

gsm-fw: RTC code hooked into the build
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 18 Nov 2013 00:08:43 +0000
parents dbfc9ff4e8d2
children 595192258bc9
comparison
equal deleted inserted replaced
160:dbfc9ff4e8d2 161:98be4841eeb7
7 /* version: 1.0 */ 7 /* version: 1.0 */
8 /* */ 8 /* */
9 /* Date: 03/20/01 */ 9 /* Date: 03/20/01 */
10 /******************************************************************************/ 10 /******************************************************************************/
11 11
12 #ifndef _WINDOWS 12 #include "../../include/config.h"
13 #include "l1sw.cfg"
14 #include "chipset.cfg"
15 #endif
16 13
17 #include <string.h> /* needed for memset */ 14 #include <string.h> /* needed for memset */
18 #include "nucleus.h" 15
19 16 #include "rtc_messages_i.h"
20 #include "rtc/rtc_messages_i.h" 17 #include "rtc_api.h"
21 #include "rtc/rtc_api.h" 18 #include "rtc_i.h"
22 #include "rtc/rtc_i.h" 19 #include "rtc_config.h"
23 #include "rtc/board/rtc_config.h" 20
24 21 #include "../../riviera/rvm/rvm_use_id_list.h"
25 #include "rvm/rvm_use_id_list.h" 22
26 23 #include "../mem.h"
27 #include "memif/mem.h" 24 #include "../iq.h"
28 #include "inth/iq.h" 25 #include "../ulpd.h"
29 #include "ulpd/ulpd.h" 26 #include "../inth.h"
30 27
31 #if (CHIPSET == 12) 28 #include "../../nucleus/nucleus.h"
32 #include "inth/sys_inth.h"
33 #else
34 #include "inth/inth.h"
35 #endif
36 29
37 /* ----- Macro ----- */ 30 /* ----- Macro ----- */
38 /*-------------------------------------------------------------*/ 31 /*-------------------------------------------------------------*/
39 /* RTC_STOP */ 32 /* RTC_STOP */
40 /*-------------------------------------------------------------*/ 33 /*-------------------------------------------------------------*/
335 //*(volatile UINT8*) RTC_CTRL_REG |= RTC_AUTO_COMP; 328 //*(volatile UINT8*) RTC_CTRL_REG |= RTC_AUTO_COMP;
336 /* Disable auto compensation */ 329 /* Disable auto compensation */
337 *(volatile UINT8*) RTC_CTRL_REG &= ~RTC_AUTO_COMP; 330 *(volatile UINT8*) RTC_CTRL_REG &= ~RTC_AUTO_COMP;
338 331
339 /* For CHIPSET = 7, 9, 10 or 11, set analog baseband type */ 332 /* For CHIPSET = 7, 9, 10 or 11, set analog baseband type */
340 #if (((CHIPSET == 7) || (CHIPSET == 8) || (CHIPSET == 10) || (CHIPSET == 11)) && (ANLG_FAM == 1)) 333 #if (((CHIPSET == 7) || (CHIPSET == 8) || (CHIPSET == 10) || (CHIPSET == 11)) && (ANALOG == 1))
341 *(volatile UINT8*) RTC_CTRL_REG |= RTC_nDELTA_OMEGA; 334 *(volatile UINT8*) RTC_CTRL_REG |= RTC_nDELTA_OMEGA;
342 #endif 335 #endif
343 336
344 /* Activate periodic interrupt every minute*/ 337 /* Activate periodic interrupt every minute*/
345 /* Disable all IT before accessing register */ 338 /* Disable all IT before accessing register */
803 { 796 {
804 rvf_send_trace("Memory allocation error",23, NULL_PARAM, RV_TRACE_LEVEL_ERROR, RTC_USE_ID ); 797 rvf_send_trace("Memory allocation error",23, NULL_PARAM, RV_TRACE_LEVEL_ERROR, RTC_USE_ID );
805 } 798 }
806 } 799 }
807 } 800 }
808
809
810
811 /*---------------------------------------------------------------------------------------*/
812