FreeCalypso > hg > leo2moko-debug
comparison chipsetsw/drivers/drv_core/timer/timer_sec.h @ 0:509db1a7b7b8
initial import: leo2moko-r1
author | Space Falcon <falcon@ivan.Harhan.ORG> |
---|---|
date | Mon, 01 Jun 2015 03:24:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:509db1a7b7b8 |
---|---|
1 /******************************************************************************* | |
2 TEXAS INSTRUMENTS INCORPORATED PROPRIETARY INFORMATION | |
3 | |
4 Property of Texas Instruments -- For Unrestricted Internal Use Only | |
5 Unauthorized reproduction and/or distribution is strictly prohibited. This | |
6 product is protected under copyright law and trade secret law as an | |
7 unpublished work. Created 1987, (C) Copyright 1997 Texas Instruments. All | |
8 rights reserved. | |
9 | |
10 | |
11 Filename : timer_sec.h | |
12 | |
13 Description : timer_sec.c header | |
14 | |
15 Project : drivers | |
16 | |
17 Author : pmonteil@tif.ti.com Patrice Monteil. | |
18 | |
19 Version number : 1.3 | |
20 | |
21 Date and time : 07/23/98 16:25:53 | |
22 Previous delta : 07/23/98 16:25:52 | |
23 | |
24 SCCS file : /db/gsm_asp/db_ht96/dsp_0/gsw/rel_0/mcu_l1/release1.5/mod/emu/EMU_MCMP/eva3_drivers/source/SCCS/s.timer.h | |
25 | |
26 Sccs Id (SID) : '@(#) timer.h 1.3 07/23/98 16:25:53 ' | |
27 | |
28 | |
29 *****************************************************************************/ | |
30 | |
31 #include "l1sw.cfg" | |
32 #include "chipset.cfg" | |
33 | |
34 #if (CHIPSET == 12) | |
35 | |
36 #if (OP_L1_STANDALONE == 0) | |
37 #include "main/sys_types.h" | |
38 #else | |
39 #include "sys_types.h" | |
40 #endif | |
41 | |
42 #define TIMER_SEC_CNTL_REG MEM_TIMER_SEC_ADDR /* Secure watchdog Control Timer register */ | |
43 | |
44 #define TIMER_SEC_LOAD_REG (MEM_TIMER_SEC_ADDR + 0x02) /* Timer load register */ | |
45 #define TIMER_SEC_READ_REG (MEM_TIMER_SEC_ADDR + 0x02) /* Timer read register */ | |
46 #define TIMER_SEC_MODE_REG (MEM_TIMER_SEC_ADDR + 0x04) /* Timer mode register */ | |
47 | |
48 | |
49 /*---------------------------------------------------------------/ | |
50 /* TIMER_SEC_START_STOP () */ | |
51 /*--------------------------------------------------------------*/ | |
52 /* Parameters : start or stop command */ | |
53 /* Return : none */ | |
54 /* Functionality : Start or Stop the timer */ | |
55 /*--------------------------------------------------------------*/ | |
56 #define TIMER_SEC_START_STOP(startStop) ((startStop) ? ((* (volatile SYS_UWORD16 *) TIMER_SEC_CNTL_REG) |= TIMER_ST) : \ | |
57 ((* (volatile SYS_UWORD16 *) TIMER_SEC_CNTL_REG) &= ~TIMER_ST)) | |
58 | |
59 | |
60 /* Prototype of the functions */ | |
61 | |
62 void TM_SEC_DisableWatchdog(void); | |
63 void TM_SEC_EnableWatchdog(void); | |
64 void TM_SEC_ResetWatchdog(SYS_UWORD16 cnt); | |
65 | |
66 | |
67 | |
68 SYS_UWORD16 TIMER_SEC_Read (SYS_UWORD16); | |
69 SYS_UWORD16 TIMER_SEC_WriteValue (SYS_UWORD16); | |
70 SYS_UWORD16 TIMER_SEC_ReadValue (void); | |
71 | |
72 #endif /* CHIPSET == 12 */ | |
73 |