summaryrefslogtreecommitdiff
path: root/fw/fe310/test/test.c
diff options
context:
space:
mode:
authorUros Majstorovic <majstor@majstor.org>2022-08-09 23:07:38 +0200
committerUros Majstorovic <majstor@majstor.org>2022-08-09 23:07:38 +0200
commitb45c75151af9e31c2016fa30dc071f9695d6369c (patch)
tree590651bd3c37d0cb74a7414637b370d286368ff0 /fw/fe310/test/test.c
parent76ed6228dc0b88840d01f99761ca09323bf11c51 (diff)
fixed test
Diffstat (limited to 'fw/fe310/test/test.c')
-rw-r--r--fw/fe310/test/test.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/fw/fe310/test/test.c b/fw/fe310/test/test.c
index fddbbc1..fc080d2 100644
--- a/fw/fe310/test/test.c
+++ b/fw/fe310/test/test.c
@@ -5,8 +5,8 @@
#include <eos.h>
-#include <i2c.h>
-#include <i2c/bq25895.h>
+#include <soc/i2c.h>
+#include <dev/bq25895.h>
#include <eve/eve.h>
#include <eve/eve_kbd.h>
#include <eve/eve_font.h>
@@ -15,8 +15,6 @@
#include <eve/screen/page.h>
#include <eve/screen/form.h>
-#include <eve/widget/widgets.h>
-
#include "app/app_root.h"
#include "test.h"
@@ -34,15 +32,13 @@ int app_test_uievt(EVEForm *form, uint16_t evt, void *param) {
int rv, ret = 0, i;
switch (evt) {
- case EVE_UIEVT_PAGE_TOUCH:
+ case EVE_UIEVT_GEST_TOUCH:
printf("PAGE TOUCH\n");
printf("BQ25895:\n");
- eos_i2c_start();
for (i=0; i<0x15; i++) {
rv = reg_read(i, &data);
if (!rv) printf("REG%02x: %02x\n", i, data);
}
- eos_i2c_stop();
break;
default:
@@ -53,7 +49,7 @@ int app_test_uievt(EVEForm *form, uint16_t evt, void *param) {
}
void app_test(EVEWindow *window, EVEViewStack *stack) {
- EVEWidgetSpec spec[] = {
+ EVEFormSpec spec[] = {
{
.widget.type = EVE_WIDGET_TYPE_SPACER,
.widget.g.h = 1,