summaryrefslogtreecommitdiff
path: root/fw/fe310/phone/main.c
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2022-10-24 19:57:30 +0200
committerUros Majstorovic <majstor@majstor.org>2022-10-24 19:57:30 +0200
commita5a94dea7043fa6b65693cf0cc11d426d49c637d (patch)
tree97b73d5c42a581f1962f07db96313207f84e7a61 /fw/fe310/phone/main.c
parentd8d94a9c2f13b1a7c6d0c209f9757e3f1f122e0b (diff)
added SMS app; fixed phone app
Diffstat (limited to 'fw/fe310/phone/main.c')
-rw-r--r--fw/fe310/phone/main.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/fw/fe310/phone/main.c b/fw/fe310/phone/main.c
index 8696ebe..fd4d672 100644
--- a/fw/fe310/phone/main.c
+++ b/fw/fe310/phone/main.c
@@ -25,6 +25,7 @@
#include "wifi.h"
#include "cell.h"
+#include "sms.h"
#include "phone.h"
#include "modem.h"
#include "timer.h"
@@ -50,6 +51,12 @@ static int home_page(EVEWindow *window, EVEViewStack *stack) {
{
.widget.type = EVE_WIDGET_TYPE_PAGE,
.widget.g.w = APP_SCREEN_W,
+ .widget.tspec.page.title = "SMS",
+ .widget.tspec.page.constructor = sms_app,
+ },
+ {
+ .widget.type = EVE_WIDGET_TYPE_PAGE,
+ .widget.g.w = APP_SCREEN_W,
.widget.tspec.page.title = "Phone",
.widget.tspec.page.constructor = phone_app,
},
@@ -99,6 +106,7 @@ int main() {
wifi_init();
cell_init();
+ sms_init();
phone_init();
app_init(home_page, 0x20);