Sat, 18 May 2019 11:34:51 +0200
SNTP uses a callback function to mark the system time is valid. SNTP is started after we received a DHCP ip address. Added an config option to set a preffered NTP server name, most likely on your most used LAN. It will always fal back to pool.ntp.org.
#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