FreeCalypso > hg > freecalypso-sw
annotate gsm-fw/L1/include/l1_pwmgr.h @ 669:b3def8c01572
gsm-fw/include/condat: gprs.h and macdef.h imported from g23m/condat/com/inc
(LoCosto version)
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Sun, 28 Sep 2014 16:56:27 +0000 |
parents | 976aeaa2e6e1 |
children |
rev | line source |
---|---|
567
528fa901ae79
L1: l1_pwmgr.c compiles with stripped-down version of l1_pwmgr.h
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
1 /* |
528fa901ae79
L1: l1_pwmgr.c compiles with stripped-down version of l1_pwmgr.h
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
2 * This header file appears in the LoCosto version, but not in Leonardo. |
528fa901ae79
L1: l1_pwmgr.c compiles with stripped-down version of l1_pwmgr.h
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
3 * The version of this file in the LoCosto source was full of LoCosto |
528fa901ae79
L1: l1_pwmgr.c compiles with stripped-down version of l1_pwmgr.h
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
4 * specifics, so originally I planned on omitting it in FreeCalypso. |
528fa901ae79
L1: l1_pwmgr.c compiles with stripped-down version of l1_pwmgr.h
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
5 * However, some of the C modules make use of some of the definitions |
528fa901ae79
L1: l1_pwmgr.c compiles with stripped-down version of l1_pwmgr.h
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
6 * here no matter what CHIPSET, so I'm including a stripped-down version |
528fa901ae79
L1: l1_pwmgr.c compiles with stripped-down version of l1_pwmgr.h
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
7 * that has all LoCosto-isms removed, but retains the needed definitions. |
528fa901ae79
L1: l1_pwmgr.c compiles with stripped-down version of l1_pwmgr.h
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
8 */ |
528fa901ae79
L1: l1_pwmgr.c compiles with stripped-down version of l1_pwmgr.h
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
9 |
528fa901ae79
L1: l1_pwmgr.c compiles with stripped-down version of l1_pwmgr.h
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
10 #ifndef __L1_PWMGR_H__ |
528fa901ae79
L1: l1_pwmgr.c compiles with stripped-down version of l1_pwmgr.h
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
11 #define __L1_PWMGR_H__ |
528fa901ae79
L1: l1_pwmgr.c compiles with stripped-down version of l1_pwmgr.h
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
12 |
528fa901ae79
L1: l1_pwmgr.c compiles with stripped-down version of l1_pwmgr.h
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
13 #define FAIL_SLEEP_PERIPH_CHECK 1 /* When initial Check_Peripheral_App */ |
528fa901ae79
L1: l1_pwmgr.c compiles with stripped-down version of l1_pwmgr.h
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
14 #define FAIL_SLEEP_OSTIMERGAUGE 2 /* When checking for Osload, HWtimer or min_time_gauging */ |
528fa901ae79
L1: l1_pwmgr.c compiles with stripped-down version of l1_pwmgr.h
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
15 #define FAIL_SLEEP_PERIPH_SLEEP 3 /* When the peripherals are put to sleep */ |
528fa901ae79
L1: l1_pwmgr.c compiles with stripped-down version of l1_pwmgr.h
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
16 #define FAIL_SLEEP_L1SYNCH 4 /* Failed at l1s_synch level itself */ |
528fa901ae79
L1: l1_pwmgr.c compiles with stripped-down version of l1_pwmgr.h
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
17 |
528fa901ae79
L1: l1_pwmgr.c compiles with stripped-down version of l1_pwmgr.h
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
18 #define FAIL_SLEEP_DUE_TO_OSLOAD 0 |
528fa901ae79
L1: l1_pwmgr.c compiles with stripped-down version of l1_pwmgr.h
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
19 #define FAIL_SLEEP_DUE_TO_HWTIMER 1 |
528fa901ae79
L1: l1_pwmgr.c compiles with stripped-down version of l1_pwmgr.h
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
20 #define FAIL_SLEEP_DUE_TO_MINTIMEGAUGING 2 |
528fa901ae79
L1: l1_pwmgr.c compiles with stripped-down version of l1_pwmgr.h
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
21 |
573
976aeaa2e6e1
gsm-fw/L1/include/l1_pwmgr.h: L1_PWMGR_APP_OFFSET definition needed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
567
diff
changeset
|
22 #define L1_PWMGR_APP_OFFSET 0x80 |
976aeaa2e6e1
gsm-fw/L1/include/l1_pwmgr.h: L1_PWMGR_APP_OFFSET definition needed
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
567
diff
changeset
|
23 |
567
528fa901ae79
L1: l1_pwmgr.c compiles with stripped-down version of l1_pwmgr.h
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
24 typedef struct |
528fa901ae79
L1: l1_pwmgr.c compiles with stripped-down version of l1_pwmgr.h
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
25 { |
528fa901ae79
L1: l1_pwmgr.c compiles with stripped-down version of l1_pwmgr.h
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
26 UWORD8 fail_id; |
528fa901ae79
L1: l1_pwmgr.c compiles with stripped-down version of l1_pwmgr.h
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
27 UWORD8 fail_ret_val; |
528fa901ae79
L1: l1_pwmgr.c compiles with stripped-down version of l1_pwmgr.h
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
28 }T_PWMGR_DEBUG; |
528fa901ae79
L1: l1_pwmgr.c compiles with stripped-down version of l1_pwmgr.h
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
29 |
528fa901ae79
L1: l1_pwmgr.c compiles with stripped-down version of l1_pwmgr.h
Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
parents:
diff
changeset
|
30 #endif |