comparison gsm-fw/bsp/abb+spi/abb.h @ 149:971e84124a6f

gsm-fw/bsp/abb+spi: preening of header files, first pass
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sat, 16 Nov 2013 19:41:30 +0000
parents 63750f70796d
children cc0944d35698
comparison
equal deleted inserted replaced
148:63750f70796d 149:971e84124a6f
28 /**********************************************************************************/ 28 /**********************************************************************************/
29 29
30 #ifndef __ABB_H__ 30 #ifndef __ABB_H__
31 #define __ABB_H__ 31 #define __ABB_H__
32 32
33 #include "l1sw.cfg" 33 #include "../../include/config.h"
34 34 #include "../../include/sys_types.h"
35 #if (OP_L1_STANDALONE == 0)
36 #include "main/sys_types.h"
37 #else
38 #include "sys_types.h"
39 #endif
40
41 35
42 #ifndef _WINDOWS 36 #ifndef _WINDOWS
43
44
45 #include "chipset.cfg"
46
47
48
49 37
50 /*------------------------------------*/ 38 /*------------------------------------*/
51 /* SYREN PG Definition */ 39 /* SYREN PG Definition */
52 /*------------------------------------*/ 40 /*------------------------------------*/
53 41
54 #if (ANLG_FAM == 3) // SYREN 42 #if (ANALOG == 3) // SYREN
55 #define S_PG_10 1 43 #define S_PG_10 1
56 #define S_PG_20 2 44 #define S_PG_20 2
57 #endif // (ANLG_FAM == 3) 45 #endif // (ANALOG == 3)
58 46
59 47
60 48
61 // DEFINITIONS FOR OMEGA/NAUSICA 49 // DEFINITIONS FOR OMEGA/NAUSICA
62 #if (ANLG_FAM == 1) 50 #if (ANALOG == 1)
63 // ABB PAGE 51 // ABB PAGE
64 #define PAGE0 0x0001 52 #define PAGE0 0x0001
65 #define PAGE1 0x0002 53 #define PAGE1 0x0002
66 54
67 // ABB REGISTERS 55 // ABB REGISTERS
185 #define AFCTEST 0x0010 173 #define AFCTEST 0x0010
186 #define AFCNORM 0x0000 174 #define AFCNORM 0x0000
187 175
188 176
189 // DEFINITIONS FOR IOTA 177 // DEFINITIONS FOR IOTA
190 #elif (ANLG_FAM == 2) 178 #elif (ANALOG == 2)
191 // ABB PAGE 179 // ABB PAGE
192 #define PAGE0 0x0001 180 #define PAGE0 0x0001
193 #define PAGE1 0x0002 181 #define PAGE1 0x0002
194 #define PAGE2 0x0010 182 #define PAGE2 0x0010
195 183
352 #define SLPDLY 0x001F // delay to set IOTA in sleep mode (unit: 20*T32Khz) 340 #define SLPDLY 0x001F // delay to set IOTA in sleep mode (unit: 20*T32Khz)
353 #define MASK_SLEEP_MODE 0x0000 // set the regulators in low consumption in sleep mode 341 #define MASK_SLEEP_MODE 0x0000 // set the regulators in low consumption in sleep mode
354 342
355 343
356 // DEFINITIONS FOR SYREN 344 // DEFINITIONS FOR SYREN
357 #elif (ANLG_FAM == 3) 345 #elif (ANALOG == 3)
358 346
359 // ABB PAGE 347 // ABB PAGE
360 #define PAGE0 0x0001 348 #define PAGE0 0x0001
361 #define PAGE1 0x0002 349 #define PAGE1 0x0002
362 #define PAGE2 0x0010 350 #define PAGE2 0x0010
547 #define NORMAL_SLEEP 0x00 535 #define NORMAL_SLEEP 0x00
548 536
549 #define MAIN_BG 0x01, 537 #define MAIN_BG 0x01,
550 #define SLEEP_BG 0x00 538 #define SLEEP_BG 0x00
551 539
552 #endif // ANLG_FAM == 1,2,3 540 #endif // ANALOG == 1,2,3
553 541
554 542
555 // Define the level of semaphore protection for all accesses to the ABB 543 // Define the level of semaphore protection for all accesses to the ABB
556 // 0 for no protection 544 // 0 for no protection
557 // 1 for protection low 545 // 1 for protection low
583 void ABB_wa_VRPC(SYS_UWORD16 value); 571 void ABB_wa_VRPC(SYS_UWORD16 value);
584 void ABB_Write_Uplink_Data(SYS_UWORD16 *TM_ul_data); 572 void ABB_Write_Uplink_Data(SYS_UWORD16 *TM_ul_data);
585 #if (OP_L1_STANDALONE == 0) 573 #if (OP_L1_STANDALONE == 0)
586 void ABB_Power_Off(void); 574 void ABB_Power_Off(void);
587 #endif 575 #endif
588 #if (ANLG_FAM ==3) 576 #if (ANALOG ==3)
589 void Syren_Sleep_Config(SYS_UWORD16 sleep_type,SYS_UWORD16 bg_select, SYS_UWORD16 sleep_delay); 577 void Syren_Sleep_Config(SYS_UWORD16 sleep_type,SYS_UWORD16 bg_select, SYS_UWORD16 sleep_delay);
590 #endif 578 #endif
591 579
592 #else // _WINDOWS 580 #else // _WINDOWS
593 // DEFINITIONS FOR IOTA 581 // DEFINITIONS FOR IOTA