FreeCalypso > hg > fc-tourmaline
changeset 269:4f839e1991e8
.../drv_app/buzzer/buzzer.[ch]: rm trailing white space
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 13 Jun 2021 18:28:01 +0000 |
parents | f2e52cab0a73 |
children | 4f59ca578891 |
files | src/cs/drivers/drv_app/buzzer/buzzer.c src/cs/drivers/drv_app/buzzer/buzzer.h |
diffstat | 2 files changed, 26 insertions(+), 26 deletions(-) [+] |
line wrap: on
line diff
--- a/src/cs/drivers/drv_app/buzzer/buzzer.c Sun Jun 13 18:17:53 2021 +0000 +++ b/src/cs/drivers/drv_app/buzzer/buzzer.c Sun Jun 13 18:28:01 2021 +0000 @@ -18,7 +18,7 @@ #include "board.cfg" -/* +/* * Initialize buzzer * */ @@ -28,26 +28,26 @@ /* * BZ_Enable / BZ_Disable - * + * * Enable / disable buzzer - * + * * The buzzer uses timer 1 - */ + */ void BZ_Enable(void) { - *((volatile SYS_UWORD16 *) ARMIO_PWM_CNTL) |= BZ_ON; + *((volatile SYS_UWORD16 *) ARMIO_PWM_CNTL) |= BZ_ON; } void BZ_Disable(void) { - *((volatile SYS_UWORD16 *) ARMIO_PWM_CNTL) &= ~BZ_ON; + *((volatile SYS_UWORD16 *) ARMIO_PWM_CNTL) &= ~BZ_ON; } /* * BZ_Tone - * + * * Changes the timer count to set the tone frequency in Hz - * + * * 58 ticks= 1 ms, which give a frequency of 500 Hz * * @@ -63,9 +63,9 @@ /* * BZ_Volume - * + * * Changes the buzzer volume - * + * */ void BZ_Volume(int v) { @@ -79,7 +79,7 @@ /* * BZ_KeyBeep_ON - * + * * Audio feedback to user after keybeep * */ @@ -91,10 +91,10 @@ BZ_Volume (255); BZ_Enable (); BZ_Tone (50); - + for (i = 0; i < 17000; i++) ; - + BZ_Disable (); } @@ -102,7 +102,7 @@ /* * BZ_KeyBeep_OFF - * + * * Audio feedback to user after keybeep * */ @@ -114,10 +114,10 @@ BZ_Volume (255); BZ_Enable (); BZ_Tone (100); - + for (i = 0; i < 17000; i++) ; - + BZ_Disable (); } @@ -125,9 +125,9 @@ /* * LT_Enable / LT_Disable - * + * * Enable / disable LCD lighting - * + * */ void LT_Enable(void) { @@ -145,7 +145,7 @@ /* * LT_Level - * + * * Set LCD display level */ void LT_Level(SYS_WORD8 level) @@ -159,19 +159,19 @@ /* * LT_Status - * + * * Return lighting status for sleep manager - * + * */ SYS_BOOL LT_Status(void) { #if (BOARD == 7 || BOARD == 8 || BOARD == 9) - if (*((volatile SYS_UWORD16 *) ARMIO_PWM_CNTL) & LT_ON) + if (*((volatile SYS_UWORD16 *) ARMIO_PWM_CNTL) & LT_ON) return(1); // the light is on else - return(0); + return(0); #endif -return(0); +return(0); }
--- a/src/cs/drivers/drv_app/buzzer/buzzer.h Sun Jun 13 18:17:53 2021 +0000 +++ b/src/cs/drivers/drv_app/buzzer/buzzer.h Sun Jun 13 18:28:01 2021 +0000 @@ -3,7 +3,7 @@ * * Buzzer and light control * - * Target : ARM + * Target : ARM * * Copyright (c) Texas Instruments 1996 * @@ -30,4 +30,4 @@ void LT_Enable(void); void LT_Disable(void); void LT_Level(SYS_WORD8 level); -SYS_BOOL LT_Status(void); \ No newline at end of file +SYS_BOOL LT_Status(void);