componeent structure, preparation for component branch

This commit is contained in:
Lurkars
2020-09-29 19:58:01 +02:00
parent b473e88be1
commit 43ecb0a42e
45 changed files with 998 additions and 9747 deletions
+9 -3
View File
@@ -26,11 +26,14 @@
#include "ena-bluetooth-advertise.h"
#include "ena-bluetooth-scan.h"
#include "ena-cwa.h"
#include "interface.h"
#include "ds3231.h"
#include "ssd1306.h"
#include "interface.h"
#include "button-input.h"
#include "rtc.h"
#include "wifi-controller.h"
#include "sdkconfig.h"
void app_main(void)
@@ -51,9 +54,9 @@ void app_main(void)
// start interface
interface_start();
// set system time from DS3231
// set system time from RTC
struct tm rtc_time;
ds3231_get_time(&rtc_time);
rtc_get_time(&rtc_time);
time_t curtime = mktime(&rtc_time);
struct timeval tv = {0};
@@ -69,6 +72,9 @@ void app_main(void)
// start with main interface
interface_main_start();
// start button input
button_input_start();
while (1)
{
ena_run();