FreeCalypso > hg > fc-tourmaline
comparison src/ui/bmi/mmiBuzzer.h @ 101:ada0621d4e74
mmiBuzzer.h: bogotab fixes
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 08 Nov 2020 22:56:39 +0000 |
parents | c0052fe355d3 |
children |
comparison
equal
deleted
inserted
replaced
100:609eb8031c17 | 101:ada0621d4e74 |
---|---|
1 /******************************************************************************* | 1 /******************************************************************************* |
2 | 2 |
3 CONDAT (UK) | 3 CONDAT (UK) |
4 | 4 |
5 ******************************************************************************** | 5 ******************************************************************************** |
6 | 6 |
7 This software product is the property of Condat (UK) Ltd and may not be | 7 This software product is the property of Condat (UK) Ltd and may not be |
8 disclosed to any third party without the express permission of the owner. | 8 disclosed to any third party without the express permission of the owner. |
9 | 9 |
10 ******************************************************************************** | 10 ******************************************************************************** |
11 | 11 |
12 $Project name: Basic MMI | 12 $Project name: Basic MMI |
13 $Project code: BMI (6349) | 13 $Project code: BMI (6349) |
14 $Module: PhoneBook | 14 $Module: PhoneBook |
15 $File: MmiBuzzer.h | 15 $File: MmiBuzzer.h |
16 $Revision: 1.0 | 16 $Revision: 1.0 |
17 | 17 |
18 $Author: Condat(UK) | 18 $Author: Condat(UK) |
19 $Date: 25/10/00 | 19 $Date: 25/10/00 |
20 | 20 |
21 ******************************************************************************** | 21 ******************************************************************************** |
22 | 22 |
23 Description: | 23 Description: |
24 | 24 |
25 ******************************************************************************** | 25 ******************************************************************************** |
26 | 26 |
27 $History: MmiBuzzer.h | 27 $History: MmiBuzzer.h |
28 | 28 |
29 25/10/00 Original Condat(UK) BMI version. | 29 25/10/00 Original Condat(UK) BMI version. |
30 | 30 |
31 $End | 31 $End |
32 | 32 |
33 *******************************************************************************/ | 33 *******************************************************************************/ |
34 | 34 |
35 | 35 |
36 #if !defined(BUZZER_H) | 36 #if !defined(BUZZER_H) |
37 #define BUZZER_H | 37 #define BUZZER_H |
38 | 38 |
39 #define USE_PWT // use build in tone generator cascade. | 39 #define USE_PWT // use build in tone generator cascade. |
40 | 40 |
41 | 41 |
42 #define BUZZER_ASIC_CONF_REG ( *( ( volatile USHORT* ) 0xFFFEF008) ) | 42 #define BUZZER_ASIC_CONF_REG ( *( ( volatile USHORT* ) 0xFFFEF008) ) |
43 #define BUZZER_BZ_OR_PWT 0x20 // bit 5 = 0 for BZ =1 for PWT | 43 #define BUZZER_BZ_OR_PWT 0x20 // bit 5 = 0 for BZ =1 for PWT |
44 #define BUZZER_FREE_BIT_CLOCK_EN 0xFF // See HER207 Section 7.4.5 | 44 #define BUZZER_FREE_BIT_CLOCK_EN 0xFF // See HER207 Section 7.4.5 |
45 #define BUZZER_ARMIO_CNTL ( *( ( volatile USHORT* ) 0xFFFE4806) ) | 45 #define BUZZER_ARMIO_CNTL ( *( ( volatile USHORT* ) 0xFFFE4806) ) |
46 | 46 |
47 #define BUZZER_ON 0x01 // Set bit 0 | 47 #define BUZZER_ON 0x01 // Set bit 0 |
48 #define BUZZER_OFF 0xFE // Reset bit 0 | 48 #define BUZZER_OFF 0xFE // Reset bit 0 |
49 | 49 |
50 #ifdef USE_PWT | 50 #ifdef USE_PWT |
51 | 51 |
52 #define PWT_FRC_REG ( *( ( volatile UBYTE* ) 0xFFFE8800) ) | 52 #define PWT_FRC_REG ( *( ( volatile UBYTE* ) 0xFFFE8800) ) |
53 #define PWT_VCR_REG ( *( ( volatile UBYTE* ) 0xFFFE8801) ) | 53 #define PWT_VCR_REG ( *( ( volatile UBYTE* ) 0xFFFE8801) ) |
54 #define PWT_CGR_REG ( *( ( volatile UBYTE* ) 0xFFFE8802) ) | 54 #define PWT_CGR_REG ( *( ( volatile UBYTE* ) 0xFFFE8802) ) |
55 | 55 |
56 #define BUZZER_MAX_VOL 0x3F | 56 #define BUZZER_MAX_VOL 0x3F |
57 | 57 |
58 | 58 |
59 #else | 59 #else |
60 // Bit definitions in CNTL | 60 // Bit definitions in CNTL |
61 #define BUZZER_SET_GPIO 0x0FDF // Set bit 5 | 61 #define BUZZER_SET_GPIO 0x0FDF // Set bit 5 |
62 #define BUZZER_FREQ_CLOCK 0xC65D40 // 13 MHz | 62 #define BUZZER_FREQ_CLOCK 0xC65D40 // 13 MHz |
63 #define BUZZER_2_POWER_9 0x0200 // See HER207 section 7.4.14 | 63 #define BUZZER_2_POWER_9 0x0200 // See HER207 section 7.4.14 |
64 | 64 |
65 | 65 |
66 #define BUZZER_LEVEL_REG ( *( ( volatile USHORT* ) 0xFFFE4812) ) | 66 #define BUZZER_LEVEL_REG ( *( ( volatile USHORT* ) 0xFFFE4812) ) |
67 #define BUZZER_CNTL_REG ( *( ( volatile USHORT* ) 0xFFFE480E) ) | 67 #define BUZZER_CNTL_REG ( *( ( volatile USHORT* ) 0xFFFE480E) ) |
68 #define BUZZER_LOAD_TIM_REG ( *( ( volatile USHORT* ) 0xFFFE4808) ) | 68 #define BUZZER_LOAD_TIM_REG ( *( ( volatile USHORT* ) 0xFFFE4808) ) |
69 #endif | 69 #endif |
70 | 70 |
71 | 71 |
72 | 72 |
73 | 73 |