main/task_sound.h

Wed, 28 Jul 2021 22:04:54 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Wed, 28 Jul 2021 22:04:54 +0200
changeset 112
77cf1e9866e5
parent 4
6d1f512cd074
permissions
-rw-r--r--

Removed the 1024 - again.

#ifndef	_TASK_SOUND_H
#define	_TASK_SOUND_H

/**
 * @file task_sound.h
 * @brief BrewBoard Sound driver. Uses a simple piezo buzzer.
 */

/**
 * @brief Sound prompt types
 */
typedef enum {
    SOUND_StartUp = 0,			///< Startup sound.
    SOUND_Prompt,                   	///< Prompt sound
    SOUND_TempReached,                  ///< Temperature Reached
    SOUND_TimeOut,                      ///< Time out.
    SOUND_AddHop,                       ///< Add hop sound
    SOUND_End,                          ///< End sound
    SOUND_Warn,                         ///< Warning sound
} SOUND_TYPE;

/**
 * @brief Play sound
 * @param id Sound ID
 */
void SoundPlay(int id);

/**
 * @brief FreeRTOS sound task.
 */
void task_sound(void *);


#endif

mercurial