diff options
Diffstat (limited to 'fw/fe310/test')
-rw-r--r-- | fw/fe310/test/main.c | 2 | ||||
-rw-r--r-- | fw/fe310/test/modem.c | 4 | ||||
-rw-r--r-- | fw/fe310/test/status.c | 6 | ||||
-rw-r--r-- | fw/fe310/test/wifi.c | 4 |
4 files changed, 5 insertions, 11 deletions
diff --git a/fw/fe310/test/main.c b/fw/fe310/test/main.c index 6801b97..7516fe8 100644 --- a/fw/fe310/test/main.c +++ b/fw/fe310/test/main.c @@ -74,7 +74,7 @@ int main() { eos_init(); - app_root_init(app_home_page); + app_screen_init(app_home_page); app_status_init(); app_phone_init(); app_wifi_init(); diff --git a/fw/fe310/test/modem.c b/fw/fe310/test/modem.c index 6453b24..2a2ee7c 100644 --- a/fw/fe310/test/modem.c +++ b/fw/fe310/test/modem.c @@ -89,7 +89,7 @@ static void handle_cell_msg(unsigned char type, unsigned char *buffer, uint16_t EVEText *text = ¶m->text; int i; - eos_spi_dev_start(EOS_DEV_DISP); + eve_spi_start(); for (i=1; i<len; i++) { if (buffer[i] != '\r') eve_text_putc(text, buffer[i]); } @@ -97,7 +97,7 @@ static void handle_cell_msg(unsigned char type, unsigned char *buffer, uint16_t text->dirty = 0; eve_screen_draw(window->screen); } - eos_spi_dev_stop(); + eve_spi_stop(); eos_net_free(buffer, 0); } else { param->cell_dev_handler(type, buffer, len); diff --git a/fw/fe310/test/status.c b/fw/fe310/test/status.c index 489bf78..2f44842 100644 --- a/fw/fe310/test/status.c +++ b/fw/fe310/test/status.c @@ -78,11 +78,7 @@ static uint8_t status_draw(EVEView *v, uint8_t tag0) { void app_status_msg_set(char *msg, int refresh) { strcpy(status_msg, msg); - if (refresh) { - eos_spi_dev_start(EOS_DEV_DISP); - eve_screen_draw(app_screen()); - eos_spi_dev_stop(); - } + if (refresh) app_screen_refresh(); } void app_status_init(void) { diff --git a/fw/fe310/test/wifi.c b/fw/fe310/test/wifi.c index 86f6b62..5306d37 100644 --- a/fw/fe310/test/wifi.c +++ b/fw/fe310/test/wifi.c @@ -68,9 +68,7 @@ void wifi_scan_handler(unsigned char type, unsigned char *buffer, uint16_t size) eve_selectw_option_set(select, buffer + 1, size - 1); eos_net_free(buffer, 0); - eos_spi_dev_start(EOS_DEV_DISP); - eve_screen_draw(app_screen()); - eos_spi_dev_stop(); + app_screen_refresh(); } static void wifi_connect_handler(unsigned char type, unsigned char *buffer, uint16_t size) { |