Mon, 21 Jun 2021 19:04:10 +0200
Finished experimental code to drive the German HendiControl board. Added BoilPower and RampPower buttons during the while boil process. RampPower (going to boil power) is now adjustable. Added PWM driver code to the driver task.
0 | 1 | #ifndef _TASK_SOUND_H |
2 | #define _TASK_SOUND_H | |
3 | ||
4 | /** | |
5 | * @file task_sound.h | |
4 | 6 | * @brief BrewBoard Sound driver. Uses a simple piezo buzzer. |
0 | 7 | */ |
8 | ||
1
ad2c8b13eb88
Updated lots of doxygen comments
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
9 | /** |
ad2c8b13eb88
Updated lots of doxygen comments
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
10 | * @brief Sound prompt types |
ad2c8b13eb88
Updated lots of doxygen comments
Michiel Broek <mbroek@mbse.eu>
parents:
0
diff
changeset
|
11 | */ |
0 | 12 | typedef enum { |
13 | SOUND_StartUp = 0, ///< Startup sound. | |
14 | SOUND_Prompt, ///< Prompt sound | |
15 | SOUND_TempReached, ///< Temperature Reached | |
16 | SOUND_TimeOut, ///< Time out. | |
17 | SOUND_AddHop, ///< Add hop sound | |
18 | SOUND_End, ///< End sound | |
19 | SOUND_Warn, ///< Warning sound | |
20 | } SOUND_TYPE; | |
21 | ||
22 | /** | |
23 | * @brief Play sound | |
24 | * @param id Sound ID | |
25 | */ | |
26 | void SoundPlay(int id); | |
27 | ||
28 | /** | |
29 | * @brief FreeRTOS sound task. | |
30 | */ | |
31 | void task_sound(void *); | |
32 | ||
33 | ||
34 | #endif |