From a1e24807fbcc7cdee2d26db94b8a0356f304d02c Mon Sep 17 00:00:00 2001 From: Thammi Date: Fri, 30 Aug 2013 17:41:35 +0200 Subject: [PATCH] Add notes to buzzer functions --- firmware/include/pentabug/hal.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/firmware/include/pentabug/hal.h b/firmware/include/pentabug/hal.h index 622186b..2c9342d 100644 --- a/firmware/include/pentabug/hal.h +++ b/firmware/include/pentabug/hal.h @@ -17,7 +17,6 @@ void init_hw(void); // resets hardware to a state which is convenient for starting applications void reset_hw(void); - // BUTTONS // returns 1 if the button is currently pressed, 0 otherwise @@ -44,9 +43,12 @@ void motor_inv(void); // BUZZER +// turns buzzer into one of the sound wave creating states void buzzer_up(void); void buzzer_down(void); +// inverts both buzzer pins, creates a sound wave if buzzer was previously up or down (see above) void buzzer_inv(void); +// turns buzzer off, buzzer_inv() won't create a sound wave after this call void buzzer_off(void); // WAITING