FreeCalypso > hg > fc-tourmaline
comparison src/cs/drivers/drv_app/buzzer/buzzer.c @ 270:4f59ca578891
buzzer.c: rm remnants of C-Sample LT
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 13 Jun 2021 18:32:16 +0000 |
parents | 4f839e1991e8 |
children | d478d9ed1c3e |
comparison
equal
deleted
inserted
replaced
269:4f839e1991e8 | 270:4f59ca578891 |
---|---|
148 * | 148 * |
149 * Set LCD display level | 149 * Set LCD display level |
150 */ | 150 */ |
151 void LT_Level(SYS_WORD8 level) | 151 void LT_Level(SYS_WORD8 level) |
152 { | 152 { |
153 #if (BOARD == 7 || BOARD == 8 || BOARD == 9) | |
153 if (level > 63) level=63; | 154 if (level > 63) level=63; |
154 | 155 |
155 // the level range is 0 up to 63 | 156 // the level range is 0 up to 63 |
156 *((volatile SYS_UWORD16 *) LT_LEVEL) = level; | 157 *((volatile SYS_UWORD16 *) LT_LEVEL) = level; |
158 #endif | |
157 } | 159 } |
158 | 160 |
159 | 161 |
160 /* | 162 /* |
161 * LT_Status | 163 * LT_Status |
168 #if (BOARD == 7 || BOARD == 8 || BOARD == 9) | 170 #if (BOARD == 7 || BOARD == 8 || BOARD == 9) |
169 if (*((volatile SYS_UWORD16 *) ARMIO_PWM_CNTL) & LT_ON) | 171 if (*((volatile SYS_UWORD16 *) ARMIO_PWM_CNTL) & LT_ON) |
170 return(1); // the light is on | 172 return(1); // the light is on |
171 else | 173 else |
172 return(0); | 174 return(0); |
175 #else | |
176 return(0); | |
173 #endif | 177 #endif |
174 | |
175 return(0); | |
176 | |
177 } | 178 } |