FreeCalypso > hg > fc-tourmaline
comparison src/cs/drivers/drv_app/buzzer/buzzer.c @ 271:d478d9ed1c3e
BZ_KeyBeep_{ON,OFF} functions: call BZ_Tone() first, then BZ_Enable()
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 13 Jun 2021 18:35:26 +0000 |
parents | 4f59ca578891 |
children | edd8482a6576 |
comparison
equal
deleted
inserted
replaced
270:4f59ca578891 | 271:d478d9ed1c3e |
---|---|
87 { | 87 { |
88 volatile int i; | 88 volatile int i; |
89 | 89 |
90 BZ_Init (); | 90 BZ_Init (); |
91 BZ_Volume (255); | 91 BZ_Volume (255); |
92 BZ_Tone (50); | |
92 BZ_Enable (); | 93 BZ_Enable (); |
93 BZ_Tone (50); | |
94 | 94 |
95 for (i = 0; i < 17000; i++) | 95 for (i = 0; i < 17000; i++) |
96 ; | 96 ; |
97 | 97 |
98 BZ_Disable (); | 98 BZ_Disable (); |
110 { | 110 { |
111 volatile int i; | 111 volatile int i; |
112 | 112 |
113 BZ_Init (); | 113 BZ_Init (); |
114 BZ_Volume (255); | 114 BZ_Volume (255); |
115 BZ_Tone (100); | |
115 BZ_Enable (); | 116 BZ_Enable (); |
116 BZ_Tone (100); | |
117 | 117 |
118 for (i = 0; i < 17000; i++) | 118 for (i = 0; i < 17000; i++) |
119 ; | 119 ; |
120 | 120 |
121 BZ_Disable (); | 121 BZ_Disable (); |