main/task_sound.h

Wed, 01 May 2019 21:27:28 +0200

author
Michiel Broek <mbroek@mbse.eu>
date
Wed, 01 May 2019 21:27:28 +0200
changeset 34
5c92103c5e72
parent 4
6d1f512cd074
permissions
-rw-r--r--

Version 0.2.10. Fixed spelling error in websocket component. Updated esp-idf to v4.0-dev-459-gba1ff1692 and adjusted several sources for changed headers. Finalized keeping the AP running at all times. Increased websocket server stack depth from 6000 to 7000.

#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