Module17: added 100ms blink of sync led to indicate device startup

See also #216.
pull/222/head
Silvano Seva 2023-12-23 14:02:26 +01:00
rodzic 916337e3d7
commit 230e6310c7
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -20,6 +20,7 @@
***************************************************************************/
#include <interfaces/platform.h>
#include <interfaces/delays.h>
#include <interfaces/nvmem.h>
#include <interfaces/audio.h>
#include <peripherals/gpio.h>
@ -85,6 +86,11 @@ void platform_init()
uint16_t ver = adc1_getMeasurement(ADC_HWVER_CH);
if(ver >= 3000)
hwInfo.hw_version = 1;
/* 100ms blink of sync led to signal device startup */
gpio_setPin(SYNC_LED);
sleepFor(0, 100);
gpio_clearPin(SYNC_LED);
}
void platform_terminate()