diff options
Diffstat (limited to 'fw/fe310/test/test.c')
-rw-r--r-- | fw/fe310/test/test.c | 12 |
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, |