From 9348f9936dc059bd77a70a34dd800635909ca792 Mon Sep 17 00:00:00 2001 From: Avamander Date: Fri, 2 Oct 2020 21:40:25 +0300 Subject: [PATCH 1/8] Renamed documentation folder for consistency --- doc/{CompanionApps => companionapps}/Amazfish.md | 0 .../Gadgetbridge.md | 0 .../NrfconnectOTA.md | 0 .../firmwareNoValidated.jpg | Bin .../firmwareValidated.jpg | Bin .../firmwareValidationApp.jpg | Bin 6 files changed, 0 insertions(+), 0 deletions(-) rename doc/{CompanionApps => companionapps}/Amazfish.md (100%) rename doc/{CompanionApps => companionapps}/Gadgetbridge.md (100%) rename doc/{CompanionApps => companionapps}/NrfconnectOTA.md (100%) rename doc/{CompanionApps => companionapps}/firmwareNoValidated.jpg (100%) rename doc/{CompanionApps => companionapps}/firmwareValidated.jpg (100%) rename doc/{CompanionApps => companionapps}/firmwareValidationApp.jpg (100%) diff --git a/doc/CompanionApps/Amazfish.md b/doc/companionapps/Amazfish.md similarity index 100% rename from doc/CompanionApps/Amazfish.md rename to doc/companionapps/Amazfish.md diff --git a/doc/CompanionApps/Gadgetbridge.md b/doc/companionapps/Gadgetbridge.md similarity index 100% rename from doc/CompanionApps/Gadgetbridge.md rename to doc/companionapps/Gadgetbridge.md diff --git a/doc/CompanionApps/NrfconnectOTA.md b/doc/companionapps/NrfconnectOTA.md similarity index 100% rename from doc/CompanionApps/NrfconnectOTA.md rename to doc/companionapps/NrfconnectOTA.md diff --git a/doc/CompanionApps/firmwareNoValidated.jpg b/doc/companionapps/firmwareNoValidated.jpg similarity index 100% rename from doc/CompanionApps/firmwareNoValidated.jpg rename to doc/companionapps/firmwareNoValidated.jpg diff --git a/doc/CompanionApps/firmwareValidated.jpg b/doc/companionapps/firmwareValidated.jpg similarity index 100% rename from doc/CompanionApps/firmwareValidated.jpg rename to doc/companionapps/firmwareValidated.jpg diff --git a/doc/CompanionApps/firmwareValidationApp.jpg b/doc/companionapps/firmwareValidationApp.jpg similarity index 100% rename from doc/CompanionApps/firmwareValidationApp.jpg rename to doc/companionapps/firmwareValidationApp.jpg From 455d8319e4af521de4e24cfa423a4c06c4378a8d Mon Sep 17 00:00:00 2001 From: Avamander Date: Fri, 2 Oct 2020 21:43:30 +0300 Subject: [PATCH 2/8] Reformatted the CMakeLists for consistency --- CMakeLists.txt | 2 +- src/CMakeLists.txt | 896 +++++++++++++++++++++++---------------------- 2 files changed, 463 insertions(+), 435 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f65a4397..5346ccfb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,7 @@ project(pinetime VERSION 0.8.2 LANGUAGES C CXX ASM) set(NRF_TARGET "nrf52") if (NOT ARM_NONE_EABI_TOOLCHAIN_PATH) - message(FATAL_ERROR "The path to the toolchain (arm-non-eabi) must be specified on the command line (add -DARM_NONE_EABI_TOOLCHAIN_PATH=") + message(FATAL_ERROR "The path to the toolchain (arm-none-eabi) must be specified on the command line (add -DARM_NONE_EABI_TOOLCHAIN_PATH=") endif () if (NOT NRF5_SDK_PATH) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index eee1d61a..1b5cdcbe 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -10,20 +10,20 @@ set(NRF_BOARD pca10040) if (NOT NRF5_SDK_PATH) message(FATAL_ERROR "The path to the nRF5 SDK (NRF5_SDK_PATH) must be set.") endif () -if(DEFINED ARM_NONE_EABI_TOOLCHAIN_PATH) +if (DEFINED ARM_NONE_EABI_TOOLCHAIN_PATH) set(ARM_NONE_EABI_TOOLCHAIN_BIN_PATH ${ARM_NONE_EABI_TOOLCHAIN_PATH}/bin) -endif() +endif () if (NOT NRF_TARGET MATCHES "nrf52") message(FATAL_ERROR "Only rRF52 boards are supported right now") -endif() +endif () # Setup toolchain include(${CMAKE_SOURCE_DIR}/cmake-nRF5x/arm-gcc-toolchain.cmake) -if(NOT DEFINED ARM_GCC_TOOLCHAIN) +if (NOT DEFINED ARM_GCC_TOOLCHAIN) message(FATAL_ERROR "The toolchain must be set up before calling this macro") -endif() +endif () set(CMAKE_OSX_SYSROOT "/") set(CMAKE_OSX_DEPLOYMENT_TARGET "") @@ -84,399 +84,399 @@ set(SDK_SOURCE_FILES # GPIOTE "${NRF5_SDK_PATH}/components/libraries/gpiote/app_gpiote.c" -) + ) set(TINYCRYPT_SRC - libs/mynewt-nimble/ext/tinycrypt/src/aes_encrypt.c - libs/mynewt-nimble/ext/tinycrypt/src/utils.c - ) + libs/mynewt-nimble/ext/tinycrypt/src/aes_encrypt.c + libs/mynewt-nimble/ext/tinycrypt/src/utils.c + ) set(NIMBLE_SRC - libs/mynewt-nimble/porting/npl/freertos/src/nimble_port_freertos.c - libs/mynewt-nimble/porting/npl/freertos/src/npl_os_freertos.c - libs/mynewt-nimble/nimble/host/src/ble_hs.c - libs/mynewt-nimble/nimble/host/src/ble_hs_hci_evt.c - libs/mynewt-nimble/nimble/host/src/ble_l2cap_sig_cmd.c - libs/mynewt-nimble/nimble/host/src/ble_l2cap_sig.c - libs/mynewt-nimble/nimble/host/src/ble_l2cap.c - libs/mynewt-nimble/nimble/host/src/ble_hs_mbuf.c - libs/mynewt-nimble/nimble/host/src/ble_sm.c - libs/mynewt-nimble/nimble/host/src/ble_gap.c - libs/mynewt-nimble/nimble/host/src/ble_gatts.c - libs/mynewt-nimble/nimble/host/src/ble_gattc.c - libs/mynewt-nimble/nimble/host/src/ble_hs_conn.c - libs/mynewt-nimble/nimble/host/src/ble_att_svr.c - libs/mynewt-nimble/nimble/host/src/ble_store.c - libs/mynewt-nimble/nimble/host/src/ble_store_util.c - libs/mynewt-nimble/nimble/host/src/ble_hs_pvcy.c - libs/mynewt-nimble/nimble/host/src/ble_hs_hci.c - libs/mynewt-nimble/nimble/host/src/ble_hs_log.c - libs/mynewt-nimble/nimble/host/src/ble_hs_hci_util.c - libs/mynewt-nimble/nimble/host/src/ble_hs_hci_cmd.c - libs/mynewt-nimble/nimble/host/src/ble_hs_cfg.c - libs/mynewt-nimble/nimble/host/src/ble_uuid.c - libs/mynewt-nimble/nimble/host/src/ble_hs_id.c - libs/mynewt-nimble/nimble/host/src/ble_hs_misc.c - libs/mynewt-nimble/nimble/host/src/ble_att.c - libs/mynewt-nimble/nimble/host/src/ble_att_clt.c - libs/mynewt-nimble/nimble/host/src/ble_att_svr.c - libs/mynewt-nimble/nimble/host/src/ble_att_cmd.c - libs/mynewt-nimble/nimble/host/src/ble_hs_atomic.c - libs/mynewt-nimble/nimble/host/src/ble_hs_adv.c - libs/mynewt-nimble/nimble/host/src/ble_hs_flow.c - libs/mynewt-nimble/nimble/host/src/ble_sm.c - libs/mynewt-nimble/nimble/host/src/ble_sm_cmd.c - libs/mynewt-nimble/nimble/host/src/ble_sm_lgcy.c - libs/mynewt-nimble/nimble/host/src/ble_sm_alg.c - libs/mynewt-nimble/nimble/host/src/ble_hs_mqueue.c - libs/mynewt-nimble/nimble/host/src/ble_hs_stop.c - libs/mynewt-nimble/nimble/host/src/ble_hs_startup.c - libs/mynewt-nimble/nimble/host/store/ram/src/ble_store_ram.c - libs/mynewt-nimble/nimble/host/src/ble_monitor.c - libs/mynewt-nimble/nimble/transport/ram/src/ble_hci_ram.c - libs/mynewt-nimble/nimble/controller/src/ble_ll.c - libs/mynewt-nimble/nimble/controller/src/ble_ll_rand.c - libs/mynewt-nimble/nimble/controller/src/ble_ll_conn.c - libs/mynewt-nimble/nimble/controller/src/ble_ll_ctrl.c - libs/mynewt-nimble/nimble/controller/src/ble_ll_hci.c - libs/mynewt-nimble/nimble/controller/src/ble_ll_conn_hci.c - libs/mynewt-nimble/nimble/controller/src/ble_ll_utils.c - libs/mynewt-nimble/nimble/controller/src/ble_ll_scan.c - libs/mynewt-nimble/nimble/controller/src/ble_ll_whitelist.c - libs/mynewt-nimble/nimble/controller/src/ble_ll_adv.c - libs/mynewt-nimble/nimble/controller/src/ble_ll_sched.c - libs/mynewt-nimble/nimble/controller/src/ble_ll_supp_cmd.c - libs/mynewt-nimble/nimble/controller/src/ble_ll_hci_ev.c - libs/mynewt-nimble/nimble/controller/src/ble_ll_rfmgmt.c - libs/mynewt-nimble/porting/nimble/src/os_cputime.c - libs/mynewt-nimble/porting/nimble/src/os_cputime_pwr2.c - libs/mynewt-nimble/porting/nimble/src/os_mbuf.c - libs/mynewt-nimble/porting/nimble/src/os_mempool.c - libs/mynewt-nimble/porting/nimble/src/hal_timer.c - libs/mynewt-nimble/porting/nimble/src/mem.c - libs/mynewt-nimble/porting/nimble/src/endian.c - libs/mynewt-nimble/porting/nimble/src/os_msys_init.c - libs/mynewt-nimble/nimble/drivers/nrf52/src/ble_hw.c - libs/mynewt-nimble/nimble/drivers/nrf52/src/ble_phy.c - libs/mynewt-nimble/nimble/host/services/gap/src/ble_svc_gap.c - libs/mynewt-nimble/nimble/host/services/gatt/src/ble_svc_gatt.c - libs/mynewt-nimble/nimble/host/util/src/addr.c - ) + libs/mynewt-nimble/porting/npl/freertos/src/nimble_port_freertos.c + libs/mynewt-nimble/porting/npl/freertos/src/npl_os_freertos.c + libs/mynewt-nimble/nimble/host/src/ble_hs.c + libs/mynewt-nimble/nimble/host/src/ble_hs_hci_evt.c + libs/mynewt-nimble/nimble/host/src/ble_l2cap_sig_cmd.c + libs/mynewt-nimble/nimble/host/src/ble_l2cap_sig.c + libs/mynewt-nimble/nimble/host/src/ble_l2cap.c + libs/mynewt-nimble/nimble/host/src/ble_hs_mbuf.c + libs/mynewt-nimble/nimble/host/src/ble_sm.c + libs/mynewt-nimble/nimble/host/src/ble_gap.c + libs/mynewt-nimble/nimble/host/src/ble_gatts.c + libs/mynewt-nimble/nimble/host/src/ble_gattc.c + libs/mynewt-nimble/nimble/host/src/ble_hs_conn.c + libs/mynewt-nimble/nimble/host/src/ble_att_svr.c + libs/mynewt-nimble/nimble/host/src/ble_store.c + libs/mynewt-nimble/nimble/host/src/ble_store_util.c + libs/mynewt-nimble/nimble/host/src/ble_hs_pvcy.c + libs/mynewt-nimble/nimble/host/src/ble_hs_hci.c + libs/mynewt-nimble/nimble/host/src/ble_hs_log.c + libs/mynewt-nimble/nimble/host/src/ble_hs_hci_util.c + libs/mynewt-nimble/nimble/host/src/ble_hs_hci_cmd.c + libs/mynewt-nimble/nimble/host/src/ble_hs_cfg.c + libs/mynewt-nimble/nimble/host/src/ble_uuid.c + libs/mynewt-nimble/nimble/host/src/ble_hs_id.c + libs/mynewt-nimble/nimble/host/src/ble_hs_misc.c + libs/mynewt-nimble/nimble/host/src/ble_att.c + libs/mynewt-nimble/nimble/host/src/ble_att_clt.c + libs/mynewt-nimble/nimble/host/src/ble_att_svr.c + libs/mynewt-nimble/nimble/host/src/ble_att_cmd.c + libs/mynewt-nimble/nimble/host/src/ble_hs_atomic.c + libs/mynewt-nimble/nimble/host/src/ble_hs_adv.c + libs/mynewt-nimble/nimble/host/src/ble_hs_flow.c + libs/mynewt-nimble/nimble/host/src/ble_sm.c + libs/mynewt-nimble/nimble/host/src/ble_sm_cmd.c + libs/mynewt-nimble/nimble/host/src/ble_sm_lgcy.c + libs/mynewt-nimble/nimble/host/src/ble_sm_alg.c + libs/mynewt-nimble/nimble/host/src/ble_hs_mqueue.c + libs/mynewt-nimble/nimble/host/src/ble_hs_stop.c + libs/mynewt-nimble/nimble/host/src/ble_hs_startup.c + libs/mynewt-nimble/nimble/host/store/ram/src/ble_store_ram.c + libs/mynewt-nimble/nimble/host/src/ble_monitor.c + libs/mynewt-nimble/nimble/transport/ram/src/ble_hci_ram.c + libs/mynewt-nimble/nimble/controller/src/ble_ll.c + libs/mynewt-nimble/nimble/controller/src/ble_ll_rand.c + libs/mynewt-nimble/nimble/controller/src/ble_ll_conn.c + libs/mynewt-nimble/nimble/controller/src/ble_ll_ctrl.c + libs/mynewt-nimble/nimble/controller/src/ble_ll_hci.c + libs/mynewt-nimble/nimble/controller/src/ble_ll_conn_hci.c + libs/mynewt-nimble/nimble/controller/src/ble_ll_utils.c + libs/mynewt-nimble/nimble/controller/src/ble_ll_scan.c + libs/mynewt-nimble/nimble/controller/src/ble_ll_whitelist.c + libs/mynewt-nimble/nimble/controller/src/ble_ll_adv.c + libs/mynewt-nimble/nimble/controller/src/ble_ll_sched.c + libs/mynewt-nimble/nimble/controller/src/ble_ll_supp_cmd.c + libs/mynewt-nimble/nimble/controller/src/ble_ll_hci_ev.c + libs/mynewt-nimble/nimble/controller/src/ble_ll_rfmgmt.c + libs/mynewt-nimble/porting/nimble/src/os_cputime.c + libs/mynewt-nimble/porting/nimble/src/os_cputime_pwr2.c + libs/mynewt-nimble/porting/nimble/src/os_mbuf.c + libs/mynewt-nimble/porting/nimble/src/os_mempool.c + libs/mynewt-nimble/porting/nimble/src/hal_timer.c + libs/mynewt-nimble/porting/nimble/src/mem.c + libs/mynewt-nimble/porting/nimble/src/endian.c + libs/mynewt-nimble/porting/nimble/src/os_msys_init.c + libs/mynewt-nimble/nimble/drivers/nrf52/src/ble_hw.c + libs/mynewt-nimble/nimble/drivers/nrf52/src/ble_phy.c + libs/mynewt-nimble/nimble/host/services/gap/src/ble_svc_gap.c + libs/mynewt-nimble/nimble/host/services/gatt/src/ble_svc_gatt.c + libs/mynewt-nimble/nimble/host/util/src/addr.c + ) set(LVGL_SRC - libs/lv_conf.h - libs/lvgl/lvgl.h - libs/lvgl/src/lv_core/lv_obj.c - libs/lvgl/src/lv_core/lv_obj.h - libs/lvgl/src/lv_core/lv_group.c - libs/lvgl/src/lv_core/lv_group.h - libs/lvgl/src/lv_core/lv_disp.c - libs/lvgl/src/lv_core/lv_disp.h - libs/lvgl/src/lv_core/lv_debug.h - libs/lvgl/src/lv_core/lv_debug.c - libs/lvgl/src/lv_core/lv_indev.c - libs/lvgl/src/lv_core/lv_indev.h - libs/lvgl/src/lv_core/lv_refr.c - libs/lvgl/src/lv_core/lv_refr.h - libs/lvgl/src/lv_core/lv_style.c - libs/lvgl/src/lv_core/lv_style.h - libs/lvgl/src/lv_misc/lv_anim.c - libs/lvgl/src/lv_misc/lv_anim.h - libs/lvgl/src/lv_misc/lv_async.h - libs/lvgl/src/lv_misc/lv_async.c - libs/lvgl/src/lv_misc/lv_fs.c - libs/lvgl/src/lv_misc/lv_fs.h - libs/lvgl/src/lv_misc/lv_task.c - libs/lvgl/src/lv_misc/lv_task.h - libs/lvgl/src/lv_misc/lv_area.c - libs/lvgl/src/lv_misc/lv_area.h - libs/lvgl/src/lv_misc/lv_bidi.c - libs/lvgl/src/lv_misc/lv_bidi.h - libs/lvgl/src/lv_misc/lv_circ.c - libs/lvgl/src/lv_misc/lv_circ.h - libs/lvgl/src/lv_misc/lv_color.c - libs/lvgl/src/lv_misc/lv_color.h - libs/lvgl/src/lv_misc/lv_fs.c - libs/lvgl/src/lv_misc/lv_fs.h - libs/lvgl/src/lv_misc/lv_gc.c - libs/lvgl/src/lv_misc/lv_gc.h - libs/lvgl/src/lv_misc/lv_ll.c - libs/lvgl/src/lv_misc/lv_ll.h - libs/lvgl/src/lv_misc/lv_log.c - libs/lvgl/src/lv_misc/lv_log.h - libs/lvgl/src/lv_misc/lv_math.c - libs/lvgl/src/lv_misc/lv_math.h - libs/lvgl/src/lv_misc/lv_mem.c - libs/lvgl/src/lv_misc/lv_mem.h - libs/lvgl/src/lv_misc/lv_printf.c - libs/lvgl/src/lv_misc/lv_printf.h - libs/lvgl/src/lv_misc/lv_task.c - libs/lvgl/src/lv_misc/lv_task.h - libs/lvgl/src/lv_misc/lv_templ.c - libs/lvgl/src/lv_misc/lv_templ.h - libs/lvgl/src/lv_misc/lv_txt.c - libs/lvgl/src/lv_misc/lv_txt.h - libs/lvgl/src/lv_misc/lv_types.h - libs/lvgl/src/lv_misc/lv_utils.c - libs/lvgl/src/lv_misc/lv_utils.h - libs/lvgl/src/lv_draw/lv_draw.c - libs/lvgl/src/lv_draw/lv_draw.h - libs/lvgl/src/lv_draw/lv_draw_arc.c - libs/lvgl/src/lv_draw/lv_draw_arc.h - libs/lvgl/src/lv_draw/lv_draw_basic.c - libs/lvgl/src/lv_draw/lv_draw_basic.h - libs/lvgl/src/lv_draw/lv_draw_img.c - libs/lvgl/src/lv_draw/lv_draw_img.h - libs/lvgl/src/lv_draw/lv_draw_label.c - libs/lvgl/src/lv_draw/lv_draw_label.h - libs/lvgl/src/lv_draw/lv_draw_line.c - libs/lvgl/src/lv_draw/lv_draw_line.h - libs/lvgl/src/lv_draw/lv_draw_rect.c - libs/lvgl/src/lv_draw/lv_draw_rect.h - libs/lvgl/src/lv_draw/lv_draw_triangle.c - libs/lvgl/src/lv_draw/lv_draw_triangle.h - libs/lvgl/src/lv_draw/lv_img_cache.c - libs/lvgl/src/lv_draw/lv_img_cache.h - libs/lvgl/src/lv_draw/lv_img_decoder.c - libs/lvgl/src/lv_draw/lv_img_decoder.h - libs/lvgl/src/lv_hal/lv_hal.h - libs/lvgl/src/lv_hal/lv_hal_disp.c - libs/lvgl/src/lv_hal/lv_hal_disp.h - libs/lvgl/src/lv_hal/lv_hal_indev.c - libs/lvgl/src/lv_hal/lv_hal_indev.h - libs/lvgl/src/lv_hal/lv_hal_tick.c - libs/lvgl/src/lv_hal/lv_hal_tick.h - libs/lvgl/src/lv_font/lv_font.c - libs/lvgl/src/lv_font/lv_font.h - libs/lvgl/src/lv_font/lv_font_fmt_txt.c - libs/lvgl/src/lv_font/lv_font_fmt_txt.h - libs/lvgl/src/lv_font/lv_symbol_def.h - libs/lvgl/src/lv_themes/lv_theme.c - libs/lvgl/src/lv_themes/lv_theme.h - libs/lvgl/src/lv_objx/lv_btn.h - libs/lvgl/src/lv_objx/lv_btn.c - libs/lvgl/src/lv_objx/lv_cont.h - libs/lvgl/src/lv_objx/lv_cont.c - libs/lvgl/src/lv_objx/lv_label.h - libs/lvgl/src/lv_objx/lv_label.c - libs/lvgl/src/lv_themes/lv_theme.c - libs/lvgl/src/lv_themes/lv_theme.h - libs/lvgl/src/lv_themes/lv_theme_night.h - libs/lvgl/src/lv_themes/lv_theme_night.c - libs/lvgl/src/lv_objx/lv_list.c - libs/lvgl/src/lv_objx/lv_list.h - libs/lvgl/src/lv_objx/lv_tileview.c - libs/lvgl/src/lv_objx/lv_tileview.h - libs/lvgl/src/lv_objx/lv_tabview.c - libs/lvgl/src/lv_objx/lv_tabview.h - libs/lvgl/src/lv_objx/lv_btnm.c - libs/lvgl/src/lv_objx/lv_btnm.h - libs/lvgl/src/lv_objx/lv_page.c - libs/lvgl/src/lv_objx/lv_page.h - libs/lvgl/src/lv_objx/lv_img.c - libs/lvgl/src/lv_objx/lv_img.h - libs/lvgl/src/lv_objx/lv_lmeter.c - libs/lvgl/src/lv_objx/lv_lmeter.h - libs/lvgl/src/lv_objx/lv_arc.c - libs/lvgl/src/lv_objx/lv_arc.h - libs/lvgl/src/lv_objx/lv_gauge.c - libs/lvgl/src/lv_objx/lv_gauge.h - libs/lvgl/src/lv_objx/lv_mbox.c - libs/lvgl/src/lv_objx/lv_mbox.h - libs/lvgl/src/lv_objx/lv_bar.c - libs/lvgl/src/lv_objx/lv_bar.h - libs/lvgl/src/lv_objx/lv_slider.h - libs/lvgl/src/lv_objx/lv_slider.c - libs/lvgl/src/lv_objx/lv_ddlist.c - libs/lvgl/src/lv_objx/lv_ddlist.h - ) + libs/lv_conf.h + libs/lvgl/lvgl.h + libs/lvgl/src/lv_core/lv_obj.c + libs/lvgl/src/lv_core/lv_obj.h + libs/lvgl/src/lv_core/lv_group.c + libs/lvgl/src/lv_core/lv_group.h + libs/lvgl/src/lv_core/lv_disp.c + libs/lvgl/src/lv_core/lv_disp.h + libs/lvgl/src/lv_core/lv_debug.h + libs/lvgl/src/lv_core/lv_debug.c + libs/lvgl/src/lv_core/lv_indev.c + libs/lvgl/src/lv_core/lv_indev.h + libs/lvgl/src/lv_core/lv_refr.c + libs/lvgl/src/lv_core/lv_refr.h + libs/lvgl/src/lv_core/lv_style.c + libs/lvgl/src/lv_core/lv_style.h + libs/lvgl/src/lv_misc/lv_anim.c + libs/lvgl/src/lv_misc/lv_anim.h + libs/lvgl/src/lv_misc/lv_async.h + libs/lvgl/src/lv_misc/lv_async.c + libs/lvgl/src/lv_misc/lv_fs.c + libs/lvgl/src/lv_misc/lv_fs.h + libs/lvgl/src/lv_misc/lv_task.c + libs/lvgl/src/lv_misc/lv_task.h + libs/lvgl/src/lv_misc/lv_area.c + libs/lvgl/src/lv_misc/lv_area.h + libs/lvgl/src/lv_misc/lv_bidi.c + libs/lvgl/src/lv_misc/lv_bidi.h + libs/lvgl/src/lv_misc/lv_circ.c + libs/lvgl/src/lv_misc/lv_circ.h + libs/lvgl/src/lv_misc/lv_color.c + libs/lvgl/src/lv_misc/lv_color.h + libs/lvgl/src/lv_misc/lv_fs.c + libs/lvgl/src/lv_misc/lv_fs.h + libs/lvgl/src/lv_misc/lv_gc.c + libs/lvgl/src/lv_misc/lv_gc.h + libs/lvgl/src/lv_misc/lv_ll.c + libs/lvgl/src/lv_misc/lv_ll.h + libs/lvgl/src/lv_misc/lv_log.c + libs/lvgl/src/lv_misc/lv_log.h + libs/lvgl/src/lv_misc/lv_math.c + libs/lvgl/src/lv_misc/lv_math.h + libs/lvgl/src/lv_misc/lv_mem.c + libs/lvgl/src/lv_misc/lv_mem.h + libs/lvgl/src/lv_misc/lv_printf.c + libs/lvgl/src/lv_misc/lv_printf.h + libs/lvgl/src/lv_misc/lv_task.c + libs/lvgl/src/lv_misc/lv_task.h + libs/lvgl/src/lv_misc/lv_templ.c + libs/lvgl/src/lv_misc/lv_templ.h + libs/lvgl/src/lv_misc/lv_txt.c + libs/lvgl/src/lv_misc/lv_txt.h + libs/lvgl/src/lv_misc/lv_types.h + libs/lvgl/src/lv_misc/lv_utils.c + libs/lvgl/src/lv_misc/lv_utils.h + libs/lvgl/src/lv_draw/lv_draw.c + libs/lvgl/src/lv_draw/lv_draw.h + libs/lvgl/src/lv_draw/lv_draw_arc.c + libs/lvgl/src/lv_draw/lv_draw_arc.h + libs/lvgl/src/lv_draw/lv_draw_basic.c + libs/lvgl/src/lv_draw/lv_draw_basic.h + libs/lvgl/src/lv_draw/lv_draw_img.c + libs/lvgl/src/lv_draw/lv_draw_img.h + libs/lvgl/src/lv_draw/lv_draw_label.c + libs/lvgl/src/lv_draw/lv_draw_label.h + libs/lvgl/src/lv_draw/lv_draw_line.c + libs/lvgl/src/lv_draw/lv_draw_line.h + libs/lvgl/src/lv_draw/lv_draw_rect.c + libs/lvgl/src/lv_draw/lv_draw_rect.h + libs/lvgl/src/lv_draw/lv_draw_triangle.c + libs/lvgl/src/lv_draw/lv_draw_triangle.h + libs/lvgl/src/lv_draw/lv_img_cache.c + libs/lvgl/src/lv_draw/lv_img_cache.h + libs/lvgl/src/lv_draw/lv_img_decoder.c + libs/lvgl/src/lv_draw/lv_img_decoder.h + libs/lvgl/src/lv_hal/lv_hal.h + libs/lvgl/src/lv_hal/lv_hal_disp.c + libs/lvgl/src/lv_hal/lv_hal_disp.h + libs/lvgl/src/lv_hal/lv_hal_indev.c + libs/lvgl/src/lv_hal/lv_hal_indev.h + libs/lvgl/src/lv_hal/lv_hal_tick.c + libs/lvgl/src/lv_hal/lv_hal_tick.h + libs/lvgl/src/lv_font/lv_font.c + libs/lvgl/src/lv_font/lv_font.h + libs/lvgl/src/lv_font/lv_font_fmt_txt.c + libs/lvgl/src/lv_font/lv_font_fmt_txt.h + libs/lvgl/src/lv_font/lv_symbol_def.h + libs/lvgl/src/lv_themes/lv_theme.c + libs/lvgl/src/lv_themes/lv_theme.h + libs/lvgl/src/lv_objx/lv_btn.h + libs/lvgl/src/lv_objx/lv_btn.c + libs/lvgl/src/lv_objx/lv_cont.h + libs/lvgl/src/lv_objx/lv_cont.c + libs/lvgl/src/lv_objx/lv_label.h + libs/lvgl/src/lv_objx/lv_label.c + libs/lvgl/src/lv_themes/lv_theme.c + libs/lvgl/src/lv_themes/lv_theme.h + libs/lvgl/src/lv_themes/lv_theme_night.h + libs/lvgl/src/lv_themes/lv_theme_night.c + libs/lvgl/src/lv_objx/lv_list.c + libs/lvgl/src/lv_objx/lv_list.h + libs/lvgl/src/lv_objx/lv_tileview.c + libs/lvgl/src/lv_objx/lv_tileview.h + libs/lvgl/src/lv_objx/lv_tabview.c + libs/lvgl/src/lv_objx/lv_tabview.h + libs/lvgl/src/lv_objx/lv_btnm.c + libs/lvgl/src/lv_objx/lv_btnm.h + libs/lvgl/src/lv_objx/lv_page.c + libs/lvgl/src/lv_objx/lv_page.h + libs/lvgl/src/lv_objx/lv_img.c + libs/lvgl/src/lv_objx/lv_img.h + libs/lvgl/src/lv_objx/lv_lmeter.c + libs/lvgl/src/lv_objx/lv_lmeter.h + libs/lvgl/src/lv_objx/lv_arc.c + libs/lvgl/src/lv_objx/lv_arc.h + libs/lvgl/src/lv_objx/lv_gauge.c + libs/lvgl/src/lv_objx/lv_gauge.h + libs/lvgl/src/lv_objx/lv_mbox.c + libs/lvgl/src/lv_objx/lv_mbox.h + libs/lvgl/src/lv_objx/lv_bar.c + libs/lvgl/src/lv_objx/lv_bar.h + libs/lvgl/src/lv_objx/lv_slider.h + libs/lvgl/src/lv_objx/lv_slider.c + libs/lvgl/src/lv_objx/lv_ddlist.c + libs/lvgl/src/lv_objx/lv_ddlist.h + ) list(APPEND IMAGE_FILES - DisplayApp/Icons/battery/os_battery_error.c - DisplayApp/Icons/battery/os_battery_100.c - DisplayApp/Icons/battery/os_battery_090.c - DisplayApp/Icons/battery/os_battery_080.c - DisplayApp/Icons/battery/os_battery_070.c - DisplayApp/Icons/battery/os_battery_060.c - DisplayApp/Icons/battery/os_battery_050.c - DisplayApp/Icons/battery/os_battery_040.c - DisplayApp/Icons/battery/os_battery_030.c - DisplayApp/Icons/battery/os_battery_020.c - DisplayApp/Icons/battery/os_battery_010.c - DisplayApp/Icons/battery/os_battery_005.c + DisplayApp/Icons/battery/os_battery_error.c + DisplayApp/Icons/battery/os_battery_100.c + DisplayApp/Icons/battery/os_battery_090.c + DisplayApp/Icons/battery/os_battery_080.c + DisplayApp/Icons/battery/os_battery_070.c + DisplayApp/Icons/battery/os_battery_060.c + DisplayApp/Icons/battery/os_battery_050.c + DisplayApp/Icons/battery/os_battery_040.c + DisplayApp/Icons/battery/os_battery_030.c + DisplayApp/Icons/battery/os_battery_020.c + DisplayApp/Icons/battery/os_battery_010.c + DisplayApp/Icons/battery/os_battery_005.c - DisplayApp/Icons/battery/os_batterycharging_100.c - DisplayApp/Icons/battery/os_batterycharging_090.c - DisplayApp/Icons/battery/os_batterycharging_080.c - DisplayApp/Icons/battery/os_batterycharging_070.c - DisplayApp/Icons/battery/os_batterycharging_060.c - DisplayApp/Icons/battery/os_batterycharging_050.c - DisplayApp/Icons/battery/os_batterycharging_040.c - DisplayApp/Icons/battery/os_batterycharging_030.c - DisplayApp/Icons/battery/os_batterycharging_020.c - DisplayApp/Icons/battery/os_batterycharging_010.c - DisplayApp/Icons/battery/os_batterycharging_005.c + DisplayApp/Icons/battery/os_batterycharging_100.c + DisplayApp/Icons/battery/os_batterycharging_090.c + DisplayApp/Icons/battery/os_batterycharging_080.c + DisplayApp/Icons/battery/os_batterycharging_070.c + DisplayApp/Icons/battery/os_batterycharging_060.c + DisplayApp/Icons/battery/os_batterycharging_050.c + DisplayApp/Icons/battery/os_batterycharging_040.c + DisplayApp/Icons/battery/os_batterycharging_030.c + DisplayApp/Icons/battery/os_batterycharging_020.c + DisplayApp/Icons/battery/os_batterycharging_010.c + DisplayApp/Icons/battery/os_batterycharging_005.c - DisplayApp/Icons/bluetooth/os_bt_connected.c - DisplayApp/Icons/bluetooth/os_bt_disconnected.c - ) + DisplayApp/Icons/bluetooth/os_bt_connected.c + DisplayApp/Icons/bluetooth/os_bt_disconnected.c + ) list(APPEND SOURCE_FILES - Logging/NrfLogger.cpp - DisplayApp/DisplayApp.cpp - DisplayApp/Screens/Screen.cpp - DisplayApp/Screens/Clock.cpp - DisplayApp/Screens/Tile.cpp - DisplayApp/Screens/Meter.cpp - DisplayApp/Screens/Gauge.cpp - DisplayApp/Screens/InfiniPaint.cpp - DisplayApp/Screens/DropDownDemo.cpp - DisplayApp/Screens/Modal.cpp - DisplayApp/Screens/BatteryIcon.cpp - DisplayApp/Screens/BleIcon.cpp - DisplayApp/Screens/Brightness.cpp - DisplayApp/Screens/SystemInfo.cpp - DisplayApp/Screens/Label.cpp - DisplayApp/Screens/FirmwareUpdate.cpp - DisplayApp/Screens/Music.cpp - DisplayApp/Screens/FirmwareValidation.cpp - DisplayApp/Screens/ApplicationList.cpp - main.cpp - drivers/St7789.cpp - drivers/SpiNorFlash.cpp - drivers/SpiMaster.cpp - drivers/Spi.cpp - drivers/Watchdog.cpp - drivers/DebugPins.cpp - drivers/InternalFlash.cpp - Components/Battery/BatteryController.cpp - Components/Ble/BleController.cpp - Components/Ble/NotificationManager.cpp - Components/DateTime/DateTimeController.cpp - Components/Brightness/BrightnessController.cpp - Components/Ble/NimbleController.cpp - Components/Ble/DeviceInformationService.cpp - Components/Ble/CurrentTimeClient.cpp - Components/Ble/AlertNotificationClient.cpp - Components/Ble/DfuService.cpp - Components/Ble/CurrentTimeService.cpp - Components/Ble/AlertNotificationService.cpp - Components/Ble/MusicService.cpp - Components/Ble/BatteryInformationService.cpp - Components/Ble/ImmediateAlertService.cpp - Components/FirmwareValidator/FirmwareValidator.cpp - drivers/Cst816s.cpp - FreeRTOS/port.c - FreeRTOS/port_cmsis_systick.c - FreeRTOS/port_cmsis.c + Logging/NrfLogger.cpp + DisplayApp/DisplayApp.cpp + DisplayApp/Screens/Screen.cpp + DisplayApp/Screens/Clock.cpp + DisplayApp/Screens/Tile.cpp + DisplayApp/Screens/Meter.cpp + DisplayApp/Screens/Gauge.cpp + DisplayApp/Screens/InfiniPaint.cpp + DisplayApp/Screens/DropDownDemo.cpp + DisplayApp/Screens/Modal.cpp + DisplayApp/Screens/BatteryIcon.cpp + DisplayApp/Screens/BleIcon.cpp + DisplayApp/Screens/Brightness.cpp + DisplayApp/Screens/SystemInfo.cpp + DisplayApp/Screens/Label.cpp + DisplayApp/Screens/FirmwareUpdate.cpp + DisplayApp/Screens/Music.cpp + DisplayApp/Screens/FirmwareValidation.cpp + DisplayApp/Screens/ApplicationList.cpp + main.cpp + drivers/St7789.cpp + drivers/SpiNorFlash.cpp + drivers/SpiMaster.cpp + drivers/Spi.cpp + drivers/Watchdog.cpp + drivers/DebugPins.cpp + drivers/InternalFlash.cpp + Components/Battery/BatteryController.cpp + Components/Ble/BleController.cpp + Components/Ble/NotificationManager.cpp + Components/DateTime/DateTimeController.cpp + Components/Brightness/BrightnessController.cpp + Components/Ble/NimbleController.cpp + Components/Ble/DeviceInformationService.cpp + Components/Ble/CurrentTimeClient.cpp + Components/Ble/AlertNotificationClient.cpp + Components/Ble/DfuService.cpp + Components/Ble/CurrentTimeService.cpp + Components/Ble/AlertNotificationService.cpp + Components/Ble/MusicService.cpp + Components/Ble/BatteryInformationService.cpp + Components/Ble/ImmediateAlertService.cpp + Components/FirmwareValidator/FirmwareValidator.cpp + drivers/Cst816s.cpp + FreeRTOS/port.c + FreeRTOS/port_cmsis_systick.c + FreeRTOS/port_cmsis.c - DisplayApp/LittleVgl.cpp - DisplayApp/Fonts/jetbrains_mono_extrabold_compressed.c - DisplayApp/Fonts/jetbrains_mono_bold_20.c + DisplayApp/LittleVgl.cpp + DisplayApp/Fonts/jetbrains_mono_extrabold_compressed.c + DisplayApp/Fonts/jetbrains_mono_bold_20.c - SystemTask/SystemTask.cpp - drivers/TwiMaster.cpp -) + SystemTask/SystemTask.cpp + drivers/TwiMaster.cpp + ) list(APPEND GRAPHICS_SOURCE_FILES - # FreeRTOS - FreeRTOS/port.c - FreeRTOS/port_cmsis_systick.c - FreeRTOS/port_cmsis.c + # FreeRTOS + FreeRTOS/port.c + FreeRTOS/port_cmsis_systick.c + FreeRTOS/port_cmsis.c - drivers/SpiNorFlash.cpp - drivers/SpiMaster.cpp - drivers/Spi.cpp - Logging/NrfLogger.cpp + drivers/SpiNorFlash.cpp + drivers/SpiMaster.cpp + drivers/Spi.cpp + Logging/NrfLogger.cpp - Components/Gfx/Gfx.cpp - drivers/St7789.cpp - Components/Brightness/BrightnessController.cpp + Components/Gfx/Gfx.cpp + drivers/St7789.cpp + Components/Brightness/BrightnessController.cpp - graphics.cpp -) + graphics.cpp + ) set(INCLUDE_FILES - Logging/Logger.h - Logging/NrfLogger.h - DisplayApp/DisplayApp.h - DisplayApp/TouchEvents.h - DisplayApp/Screens/Screen.h - DisplayApp/Screens/Clock.h - DisplayApp/Screens/Tile.h - DisplayApp/Screens/Meter.h - DisplayApp/Screens/Gauge.h - DisplayApp/Screens/InfiniPaint.h - DisplayApp/Screens/DropDownDemo.h - DisplayApp/Screens/Modal.h - DisplayApp/Screens/BatteryIcon.h - DisplayApp/Screens/BleIcon.cpp - DisplayApp/Screens/Brightness.h - DisplayApp/Screens/SystemInfo.h - DisplayApp/Screens/ScreenList.h - DisplayApp/Screens/Label.h - DisplayApp/Screens/FirmwareUpdate.h - DisplayApp/Screens/FirmwareValidation.h - DisplayApp/Screens/ApplicationList.h - DisplayApp/Apps.h - drivers/St7789.h - drivers/SpiNorFlash.h - drivers/SpiMaster.h - drivers/Spi.h - drivers/Watchdog.h - drivers/DebugPins.h - drivers/InternalFlash.h - Components/Battery/BatteryController.h - Components/Ble/BleController.h - Components/Ble/NotificationManager.h - Components/DateTime/DateTimeController.h - Components/Brightness/BrightnessController.h - Components/Ble/NimbleController.h - Components/Ble/DeviceInformationService.h - Components/Ble/CurrentTimeClient.h - Components/Ble/AlertNotificationClient.h - Components/Ble/DfuService.h - Components/FirmwareValidator/FirmwareValidator.h - Components/Ble/BatteryInformationService.h - Components/Ble/ImmediateAlertService.h - drivers/Cst816s.h - FreeRTOS/portmacro.h - FreeRTOS/portmacro_cmsis.h - libs/date/includes/date/tz.h - libs/date/includes/date/chrono_io.h - libs/date/includes/date/date.h - libs/date/includes/date/islamic.h - libs/date/includes/date/iso_week.h - libs/date/includes/date/julian.h - libs/date/includes/date/ptz.h - libs/date/includes/date/tz_private.h - DisplayApp/LittleVgl.h - SystemTask/SystemTask.h - SystemTask/SystemMonitor.h - DisplayApp/Screens/Symbols.h - drivers/TwiMaster.h -) + Logging/Logger.h + Logging/NrfLogger.h + DisplayApp/DisplayApp.h + DisplayApp/TouchEvents.h + DisplayApp/Screens/Screen.h + DisplayApp/Screens/Clock.h + DisplayApp/Screens/Tile.h + DisplayApp/Screens/Meter.h + DisplayApp/Screens/Gauge.h + DisplayApp/Screens/InfiniPaint.h + DisplayApp/Screens/DropDownDemo.h + DisplayApp/Screens/Modal.h + DisplayApp/Screens/BatteryIcon.h + DisplayApp/Screens/BleIcon.cpp + DisplayApp/Screens/Brightness.h + DisplayApp/Screens/SystemInfo.h + DisplayApp/Screens/ScreenList.h + DisplayApp/Screens/Label.h + DisplayApp/Screens/FirmwareUpdate.h + DisplayApp/Screens/FirmwareValidation.h + DisplayApp/Screens/ApplicationList.h + DisplayApp/Apps.h + drivers/St7789.h + drivers/SpiNorFlash.h + drivers/SpiMaster.h + drivers/Spi.h + drivers/Watchdog.h + drivers/DebugPins.h + drivers/InternalFlash.h + Components/Battery/BatteryController.h + Components/Ble/BleController.h + Components/Ble/NotificationManager.h + Components/DateTime/DateTimeController.h + Components/Brightness/BrightnessController.h + Components/Ble/NimbleController.h + Components/Ble/DeviceInformationService.h + Components/Ble/CurrentTimeClient.h + Components/Ble/AlertNotificationClient.h + Components/Ble/DfuService.h + Components/FirmwareValidator/FirmwareValidator.h + Components/Ble/BatteryInformationService.h + Components/Ble/ImmediateAlertService.h + drivers/Cst816s.h + FreeRTOS/portmacro.h + FreeRTOS/portmacro_cmsis.h + libs/date/includes/date/tz.h + libs/date/includes/date/chrono_io.h + libs/date/includes/date/date.h + libs/date/includes/date/islamic.h + libs/date/includes/date/iso_week.h + libs/date/includes/date/julian.h + libs/date/includes/date/ptz.h + libs/date/includes/date/tz_private.h + DisplayApp/LittleVgl.h + SystemTask/SystemTask.h + SystemTask/SystemMonitor.h + DisplayApp/Screens/Symbols.h + drivers/TwiMaster.h + ) include_directories( - . - ../ - libs/ - FreeRTOS/ - libs/date/includes - libs/mynewt-nimble/porting/npl/freertos/include - libs/mynewt-nimble/nimble/include - libs/mynewt-nimble/porting/nimble/include - libs/mynewt-nimble/nimble/host/include - libs/mynewt-nimble/nimble/controller/include - libs/mynewt-nimble/nimble/transport/ram/include - libs/mynewt-nimble/nimble/drivers/nrf52/include - libs/mynewt-nimble/ext/tinycrypt/include - libs/mynewt-nimble/nimble/host/services/gap/include - libs/mynewt-nimble/nimble/host/services/gatt/include - libs/mynewt-nimble/nimble/host/util/include - libs/mynewt-nimble/nimble/host/store/ram/include + . + ../ + libs/ + FreeRTOS/ + libs/date/includes + libs/mynewt-nimble/porting/npl/freertos/include + libs/mynewt-nimble/nimble/include + libs/mynewt-nimble/porting/nimble/include + libs/mynewt-nimble/nimble/host/include + libs/mynewt-nimble/nimble/controller/include + libs/mynewt-nimble/nimble/transport/ram/include + libs/mynewt-nimble/nimble/drivers/nrf52/include + libs/mynewt-nimble/ext/tinycrypt/include + libs/mynewt-nimble/nimble/host/services/gap/include + libs/mynewt-nimble/nimble/host/services/gatt/include + libs/mynewt-nimble/nimble/host/util/include + libs/mynewt-nimble/nimble/host/store/ram/include - "${NRF5_SDK_PATH}/components/drivers_nrf/nrf_soc_nosd" + "${NRF5_SDK_PATH}/components/drivers_nrf/nrf_soc_nosd" "${NRF5_SDK_PATH}/components" "${NRF5_SDK_PATH}/components/boards" "${NRF5_SDK_PATH}/components/softdevice/common" @@ -548,7 +548,7 @@ include_directories( ) link_directories( - ../ + ../ ) @@ -563,52 +563,52 @@ add_definitions(-DDEBUG_NRF_USER) add_definitions(-D__STACK_SIZE=8192) add_definitions(-D__HEAP_SIZE=8192) -if(NOT CMAKE_BUILD_TYPE) - set(CMAKE_BUILD_TYPE "Release") -endif() +if (NOT CMAKE_BUILD_TYPE) + set(CMAKE_BUILD_TYPE "Release") +endif () # NRF SDK add_library(nrf-sdk STATIC ${SDK_SOURCE_FILES}) target_include_directories(nrf-sdk SYSTEM PUBLIC . ../) target_include_directories(nrf-sdk SYSTEM PUBLIC ${INCLUDES_FROM_LIBS}) target_compile_options(nrf-sdk PRIVATE - $<$,$>: ${COMMON_FLAGS} -O0 -g3> - $<$,$>: ${COMMON_FLAGS} -O3> - $<$,$>: ${COMMON_FLAGS} -O0> - $<$,$>: ${COMMON_FLAGS} -O3> - $<$: -MP -MD -std=c99 -x assembler-with-cpp> - ) + $<$,$>: ${COMMON_FLAGS} -O0 -g3> + $<$,$>: ${COMMON_FLAGS} -O3> + $<$,$>: ${COMMON_FLAGS} -O0> + $<$,$>: ${COMMON_FLAGS} -O3> + $<$: -MP -MD -std=c99 -x assembler-with-cpp> + ) # NimBLE add_library(nimble STATIC ${NIMBLE_SRC} ${TINYCRYPT_SRC}) target_include_directories(nimble SYSTEM PUBLIC . ../) target_include_directories(nimble SYSTEM PUBLIC ${INCLUDES_FROM_LIBS}) target_compile_options(nimble PRIVATE - $<$,$>: ${COMMON_FLAGS} -O0 -g3 -Wno-unused-but-set-variable -Wno-maybe-uninitialized> - $<$,$>: ${COMMON_FLAGS} -O3 -Wno-unused-but-set-variable -Wno-maybe-uninitialized> - $<$,$>: ${COMMON_FLAGS} -O0 -g3 -Wno-unused-but-set-variable -Wno-maybe-uninitialized> - $<$,$>: ${COMMON_FLAGS} -O3 -Wno-unused-but-set-variable -Wno-maybe-uninitialized> - $<$: -MP -MD -std=c99 -x assembler-with-cpp> - ) + $<$,$>: ${COMMON_FLAGS} -O0 -g3 -Wno-unused-but-set-variable -Wno-maybe-uninitialized> + $<$,$>: ${COMMON_FLAGS} -O3 -Wno-unused-but-set-variable -Wno-maybe-uninitialized> + $<$,$>: ${COMMON_FLAGS} -O0 -g3 -Wno-unused-but-set-variable -Wno-maybe-uninitialized> + $<$,$>: ${COMMON_FLAGS} -O3 -Wno-unused-but-set-variable -Wno-maybe-uninitialized> + $<$: -MP -MD -std=c99 -x assembler-with-cpp> + ) # lvgl add_library(lvgl STATIC ${LVGL_SRC}) target_include_directories(lvgl SYSTEM PUBLIC . ../) target_include_directories(lvgl SYSTEM PUBLIC ${INCLUDES_FROM_LIBS}) target_compile_options(lvgl PRIVATE - $<$,$>: ${COMMON_FLAGS} -O0 -g3> - $<$,$>: ${COMMON_FLAGS} -O3> - $<$,$>: ${COMMON_FLAGS} -O0 -g3> - $<$,$>: ${COMMON_FLAGS} -O3> - $<$: -MP -MD -std=c99 -x assembler-with-cpp> - ) + $<$,$>: ${COMMON_FLAGS} -O0 -g3> + $<$,$>: ${COMMON_FLAGS} -O3> + $<$,$>: ${COMMON_FLAGS} -O0 -g3> + $<$,$>: ${COMMON_FLAGS} -O3> + $<$: -MP -MD -std=c99 -x assembler-with-cpp> + ) # Build autonomous binary (without support for bootloader) set(EXECUTABLE_NAME "pinetime-app") set(EXECUTABLE_FILE_NAME ${EXECUTABLE_NAME}-${pinetime_VERSION_MAJOR}.${pinetime_VERSION_MINOR}.${pinetime_VERSION_PATCH}) set(NRF5_LINKER_SCRIPT "${CMAKE_SOURCE_DIR}/gcc_nrf52.ld") add_executable(${EXECUTABLE_NAME} ${SOURCE_FILES}) -set_target_properties(${EXECUTABLE_NAME} PROPERTIES OUTPUT_NAME ${EXECUTABLE_FILE_NAME}) +set_target_properties(${EXECUTABLE_NAME} PROPERTIES OUTPUT_NAME ${EXECUTABLE_FILE_NAME}) target_link_libraries(${EXECUTABLE_NAME} nimble nrf-sdk lvgl) target_compile_options(${EXECUTABLE_NAME} PUBLIC $<$,$>: ${COMMON_FLAGS} -O0 -g3> @@ -616,7 +616,7 @@ target_compile_options(${EXECUTABLE_NAME} PUBLIC $<$,$>: ${COMMON_FLAGS} -O0 -g3> $<$,$>: ${COMMON_FLAGS} -O3> $<$: -MP -MD -std=c99 -x assembler-with-cpp> -) + ) set_target_properties(${EXECUTABLE_NAME} PROPERTIES SUFFIX ".out" @@ -641,7 +641,7 @@ set(DFU_FILE_NAME dfu-${pinetime_VERSION_MAJOR}.${pinetime_VERSION_MINOR}.${pine set(NRF5_LINKER_SCRIPT_MCUBOOT "${CMAKE_SOURCE_DIR}/gcc_nrf52-mcuboot.ld") add_executable(${EXECUTABLE_MCUBOOT_NAME} ${SOURCE_FILES}) target_link_libraries(${EXECUTABLE_MCUBOOT_NAME} nimble nrf-sdk lvgl) -set_target_properties(${EXECUTABLE_MCUBOOT_NAME} PROPERTIES OUTPUT_NAME ${EXECUTABLE_MCUBOOT_FILE_NAME}) +set_target_properties(${EXECUTABLE_MCUBOOT_NAME} PROPERTIES OUTPUT_NAME ${EXECUTABLE_MCUBOOT_FILE_NAME}) target_compile_options(${EXECUTABLE_MCUBOOT_NAME} PUBLIC $<$,$>: ${COMMON_FLAGS} -O0 -g3> $<$,$>: ${COMMON_FLAGS} -O3> @@ -663,39 +663,39 @@ add_custom_command(TARGET ${EXECUTABLE_MCUBOOT_NAME} COMMAND ${CMAKE_OBJCOPY} -O binary ${EXECUTABLE_MCUBOOT_FILE_NAME}.out "${EXECUTABLE_MCUBOOT_FILE_NAME}.bin" COMMAND ${CMAKE_OBJCOPY} -O ihex ${EXECUTABLE_MCUBOOT_FILE_NAME}.out "${EXECUTABLE_MCUBOOT_FILE_NAME}.hex" COMMENT "post build steps for ${EXECUTABLE_MCUBOOT_FILE_NAME}" -) + ) # Build binary that writes the graphic assets for the bootloader set(EXECUTABLE_GRAPHICS_NAME "pinetime-graphics") set(EXECUTABLE_GRAPHICS_FILE_NAME ${EXECUTABLE_GRAPHICS_NAME}-${pinetime_VERSION_MAJOR}.${pinetime_VERSION_MINOR}.${pinetime_VERSION_PATCH}) add_executable(${EXECUTABLE_GRAPHICS_NAME} ${GRAPHICS_SOURCE_FILES}) target_link_libraries(${EXECUTABLE_GRAPHICS_NAME} nrf-sdk) -set_target_properties(${EXECUTABLE_GRAPHICS_NAME} PROPERTIES OUTPUT_NAME ${EXECUTABLE_GRAPHICS_FILE_NAME}) +set_target_properties(${EXECUTABLE_GRAPHICS_NAME} PROPERTIES OUTPUT_NAME ${EXECUTABLE_GRAPHICS_FILE_NAME}) target_compile_options(${EXECUTABLE_GRAPHICS_NAME} PUBLIC - $<$,$>: ${COMMON_FLAGS} -O0 -g3> - $<$,$>: ${COMMON_FLAGS} -O3> - $<$,$>: ${COMMON_FLAGS} -O0 -g3> - $<$,$>: ${COMMON_FLAGS} -O3> - $<$: -MP -MD -std=c99 -x assembler-with-cpp> - ) + $<$,$>: ${COMMON_FLAGS} -O0 -g3> + $<$,$>: ${COMMON_FLAGS} -O3> + $<$,$>: ${COMMON_FLAGS} -O0 -g3> + $<$,$>: ${COMMON_FLAGS} -O3> + $<$: -MP -MD -std=c99 -x assembler-with-cpp> + ) set_target_properties(${EXECUTABLE_GRAPHICS_NAME} PROPERTIES - SUFFIX ".out" - LINK_FLAGS "-mthumb -mabi=aapcs -std=gnu++98 -std=c99 -L ${NRF5_SDK_PATH}/modules/nrfx/mdk -T${NRF5_LINKER_SCRIPT} -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -Wl,--gc-sections --specs=nano.specs -lc -lnosys -lm -Wl,-Map=${EXECUTABLE_GRAPHICS_FILE_NAME}.map" - CXX_STANDARD 11 - C_STANDARD 99 - ) + SUFFIX ".out" + LINK_FLAGS "-mthumb -mabi=aapcs -std=gnu++98 -std=c99 -L ${NRF5_SDK_PATH}/modules/nrfx/mdk -T${NRF5_LINKER_SCRIPT} -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -Wl,--gc-sections --specs=nano.specs -lc -lnosys -lm -Wl,-Map=${EXECUTABLE_GRAPHICS_FILE_NAME}.map" + CXX_STANDARD 11 + C_STANDARD 99 + ) add_custom_command(TARGET ${EXECUTABLE_GRAPHICS_NAME} - POST_BUILD - COMMAND ${CMAKE_SIZE_UTIL} ${EXECUTABLE_GRAPHICS_FILE_NAME}.out - COMMAND ${CMAKE_OBJCOPY} -O binary ${EXECUTABLE_GRAPHICS_FILE_NAME}.out "${EXECUTABLE_GRAPHICS_FILE_NAME}.bin" - COMMAND ${CMAKE_OBJCOPY} -O ihex ${EXECUTABLE_GRAPHICS_FILE_NAME}.out "${EXECUTABLE_GRAPHICS_FILE_NAME}.hex" - COMMENT "post build steps for ${EXECUTABLE_GRAPHICS_FILE_NAME}" - ) + POST_BUILD + COMMAND ${CMAKE_SIZE_UTIL} ${EXECUTABLE_GRAPHICS_FILE_NAME}.out + COMMAND ${CMAKE_OBJCOPY} -O binary ${EXECUTABLE_GRAPHICS_FILE_NAME}.out "${EXECUTABLE_GRAPHICS_FILE_NAME}.bin" + COMMAND ${CMAKE_OBJCOPY} -O ihex ${EXECUTABLE_GRAPHICS_FILE_NAME}.out "${EXECUTABLE_GRAPHICS_FILE_NAME}.hex" + COMMENT "post build steps for ${EXECUTABLE_GRAPHICS_FILE_NAME}" + ) # FLASH -if(USE_JLINK) +if (USE_JLINK) add_custom_target(FLASH_ERASE COMMAND ${NRFJPROG} --eraseall -f ${NRF_TARGET} COMMENT "erasing flashing" @@ -708,26 +708,54 @@ if(USE_JLINK) COMMENT "flashing ${EXECUTABLE_NAME}.hex" ) -elseif(USE_GDB_CLIENT) +elseif (USE_GDB_CLIENT) add_custom_target(FLASH_ERASE COMMAND ${GDB_CLIENT_BIN_PATH} -nx --batch -ex 'target extended-remote ${GDB_CLIENT_TARGET_REMOTE}' -ex 'monitor swdp_scan' -ex 'attach 1' -ex 'mon erase_mass' COMMENT "erasing flashing" ) add_custom_target("FLASH_${EXECUTABLE_NAME}" DEPENDS ${EXECUTABLE_NAME} - COMMAND ${GDB_CLIENT_BIN_PATH} -nx --batch -ex 'target extended-remote ${GDB_CLIENT_TARGET_REMOTE}' -ex 'monitor swdp_scan' -ex 'attach 1' -ex 'load' -ex 'kill' ${EXECUTABLE_NAME}.hex + COMMAND ${GDB_CLIENT_BIN_PATH} -nx --batch -ex 'target extended-remote ${GDB_CLIENT_TARGET_REMOTE}' -ex 'monitor swdp_scan' -ex 'attach 1' -ex 'load' -ex 'kill' ${EXECUTABLE_NAME}.hex COMMENT "flashing ${EXECUTABLE_NAME}.hex" ) -elseif(USE_OPENOCD) - add_custom_target(FLASH_ERASE - COMMAND ${OPENOCD_BIN_PATH} -f interface/stlink.cfg -c 'transport select hla_swd' -f target/nrf52.cfg -c init -c halt -c 'nrf5 mass_erase' -c reset -c shutdown - COMMENT "erasing flashing" - ) - add_custom_target("FLASH_${EXECUTABLE_NAME}" - DEPENDS ${EXECUTABLE_NAME} - COMMAND ${OPENOCD_BIN_PATH} -c "tcl_port disabled" -c "gdb_port 3333" -c "telnet_port 4444" -f interface/stlink.cfg -c 'transport select hla_swd' -f target/nrf52.cfg -c "program \"${EXECUTABLE_NAME}.hex\"" -c reset -c shutdown - COMMENT "flashing ${EXECUTABLE_NAME}.hex" - ) - -endif() - +elseif (USE_OPENOCD) + if (USE_CMSIS_DAP) + add_custom_target(FLASH_ERASE + COMMAND ${OPENOCD_BIN_PATH} -c 'source [find interface/cmsis-dap.cfg]' -c 'transport select swd' + -c 'source [find target/nrf52.cfg]' + -c 'init' + -c 'halt' + -c 'nrf5 mass_erase' + -c 'halt' + -c 'reset' + -c 'exit' + COMMENT "erasing flashing" + ) + add_custom_target("FLASH_${EXECUTABLE_NAME}" + DEPENDS ${EXECUTABLE_NAME} + COMMAND ${OPENOCD_BIN_PATH} + -c 'tcl_port disabled' + -c 'gdb_port 3333' + -c 'telnet_port 4444' + -c 'source [find interface/cmsis-dap.cfg]' + -c 'transport select swd' + -c 'source [find target/nrf52.cfg]' + -c 'halt' + -c "program \"${EXECUTABLE_NAME}.hex\"" + -c 'reset' + -c 'shutdown' + COMMENT "flashing ${EXECUTABLE_NAME}.hex" + ) + else () + message() + add_custom_target(FLASH_ERASE + COMMAND ${OPENOCD_BIN_PATH} -f interface/stlink.cfg -c 'transport select hla_swd' -f target/nrf52.cfg -c init -c halt -c 'nrf5 mass_erase' -c reset -c shutdown + COMMENT "erasing flashing" + ) + add_custom_target("FLASH_${EXECUTABLE_NAME}" + DEPENDS ${EXECUTABLE_NAME} + COMMAND ${OPENOCD_BIN_PATH} -c "tcl_port disabled" -c "gdb_port 3333" -c "telnet_port 4444" -f interface/stlink.cfg -c 'transport select hla_swd' -f target/nrf52.cfg -c "program \"${EXECUTABLE_NAME}.hex\"" -c reset -c shutdown + COMMENT "flashing ${EXECUTABLE_NAME}.hex" + ) + endif () +endif () From 40a643d203d2d21834dd2b35d83419a56a3939b6 Mon Sep 17 00:00:00 2001 From: Avamander Date: Fri, 2 Oct 2020 21:44:27 +0300 Subject: [PATCH 3/8] Renamed Components/ to components/ --- src/CMakeLists.txt | 62 +++++++++---------- .../Battery/BatteryController.cpp | 0 .../Battery/BatteryController.h | 0 .../Ble/AlertNotificationClient.cpp | 0 .../Ble/AlertNotificationClient.h | 0 .../Ble/AlertNotificationService.cpp | 0 .../Ble/AlertNotificationService.h | 0 .../Ble/BatteryInformationService.cpp | 0 .../Ble/BatteryInformationService.h | 0 .../Ble/BleController.cpp | 0 .../Ble/BleController.h | 0 .../Ble/CurrentTimeClient.cpp | 0 .../Ble/CurrentTimeClient.h | 0 .../Ble/CurrentTimeService.cpp | 0 .../Ble/CurrentTimeService.h | 0 .../Ble/DeviceInformationService.cpp | 0 .../Ble/DeviceInformationService.h | 0 .../Ble/DfuService.cpp | 0 .../Ble/DfuService.h | 0 .../Ble/ImmediateAlertService.cpp | 0 .../Ble/ImmediateAlertService.h | 0 .../Ble/MusicService.cpp | 0 .../Ble/MusicService.h | 0 .../Ble/NimbleController.cpp | 0 .../Ble/NimbleController.h | 0 .../Ble/NotificationManager.cpp | 0 .../Ble/NotificationManager.h | 0 .../Brightness/BrightnessController.cpp | 0 .../Brightness/BrightnessController.h | 0 .../DateTime/DateTimeController.cpp | 0 .../DateTime/DateTimeController.h | 0 .../FirmwareValidator/FirmwareValidator.cpp | 0 .../FirmwareValidator/FirmwareValidator.h | 0 src/{Components => components}/Gfx/Gfx.cpp | 0 src/{Components => components}/Gfx/Gfx.h | 0 35 files changed, 31 insertions(+), 31 deletions(-) rename src/{Components => components}/Battery/BatteryController.cpp (100%) rename src/{Components => components}/Battery/BatteryController.h (100%) rename src/{Components => components}/Ble/AlertNotificationClient.cpp (100%) rename src/{Components => components}/Ble/AlertNotificationClient.h (100%) rename src/{Components => components}/Ble/AlertNotificationService.cpp (100%) rename src/{Components => components}/Ble/AlertNotificationService.h (100%) rename src/{Components => components}/Ble/BatteryInformationService.cpp (100%) rename src/{Components => components}/Ble/BatteryInformationService.h (100%) rename src/{Components => components}/Ble/BleController.cpp (100%) rename src/{Components => components}/Ble/BleController.h (100%) rename src/{Components => components}/Ble/CurrentTimeClient.cpp (100%) rename src/{Components => components}/Ble/CurrentTimeClient.h (100%) rename src/{Components => components}/Ble/CurrentTimeService.cpp (100%) rename src/{Components => components}/Ble/CurrentTimeService.h (100%) rename src/{Components => components}/Ble/DeviceInformationService.cpp (100%) rename src/{Components => components}/Ble/DeviceInformationService.h (100%) rename src/{Components => components}/Ble/DfuService.cpp (100%) rename src/{Components => components}/Ble/DfuService.h (100%) rename src/{Components => components}/Ble/ImmediateAlertService.cpp (100%) rename src/{Components => components}/Ble/ImmediateAlertService.h (100%) rename src/{Components => components}/Ble/MusicService.cpp (100%) rename src/{Components => components}/Ble/MusicService.h (100%) rename src/{Components => components}/Ble/NimbleController.cpp (100%) rename src/{Components => components}/Ble/NimbleController.h (100%) rename src/{Components => components}/Ble/NotificationManager.cpp (100%) rename src/{Components => components}/Ble/NotificationManager.h (100%) rename src/{Components => components}/Brightness/BrightnessController.cpp (100%) rename src/{Components => components}/Brightness/BrightnessController.h (100%) rename src/{Components => components}/DateTime/DateTimeController.cpp (100%) rename src/{Components => components}/DateTime/DateTimeController.h (100%) rename src/{Components => components}/FirmwareValidator/FirmwareValidator.cpp (100%) rename src/{Components => components}/FirmwareValidator/FirmwareValidator.h (100%) rename src/{Components => components}/Gfx/Gfx.cpp (100%) rename src/{Components => components}/Gfx/Gfx.h (100%) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1b5cdcbe..f5366314 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -349,22 +349,22 @@ list(APPEND SOURCE_FILES drivers/Watchdog.cpp drivers/DebugPins.cpp drivers/InternalFlash.cpp - Components/Battery/BatteryController.cpp - Components/Ble/BleController.cpp - Components/Ble/NotificationManager.cpp - Components/DateTime/DateTimeController.cpp - Components/Brightness/BrightnessController.cpp - Components/Ble/NimbleController.cpp - Components/Ble/DeviceInformationService.cpp - Components/Ble/CurrentTimeClient.cpp - Components/Ble/AlertNotificationClient.cpp - Components/Ble/DfuService.cpp - Components/Ble/CurrentTimeService.cpp - Components/Ble/AlertNotificationService.cpp - Components/Ble/MusicService.cpp - Components/Ble/BatteryInformationService.cpp - Components/Ble/ImmediateAlertService.cpp - Components/FirmwareValidator/FirmwareValidator.cpp + components/Battery/BatteryController.cpp + components/Ble/BleController.cpp + components/Ble/NotificationManager.cpp + components/DateTime/DateTimeController.cpp + components/Brightness/BrightnessController.cpp + components/Ble/NimbleController.cpp + components/Ble/DeviceInformationService.cpp + components/Ble/CurrentTimeClient.cpp + components/Ble/AlertNotificationClient.cpp + components/Ble/DfuService.cpp + components/Ble/CurrentTimeService.cpp + components/Ble/AlertNotificationService.cpp + components/Ble/MusicService.cpp + components/Ble/BatteryInformationService.cpp + components/Ble/ImmediateAlertService.cpp + components/FirmwareValidator/FirmwareValidator.cpp drivers/Cst816s.cpp FreeRTOS/port.c FreeRTOS/port_cmsis_systick.c @@ -389,9 +389,9 @@ list(APPEND GRAPHICS_SOURCE_FILES drivers/Spi.cpp Logging/NrfLogger.cpp - Components/Gfx/Gfx.cpp + components/Gfx/Gfx.cpp drivers/St7789.cpp - Components/Brightness/BrightnessController.cpp + components/Brightness/BrightnessController.cpp graphics.cpp ) @@ -426,19 +426,19 @@ set(INCLUDE_FILES drivers/Watchdog.h drivers/DebugPins.h drivers/InternalFlash.h - Components/Battery/BatteryController.h - Components/Ble/BleController.h - Components/Ble/NotificationManager.h - Components/DateTime/DateTimeController.h - Components/Brightness/BrightnessController.h - Components/Ble/NimbleController.h - Components/Ble/DeviceInformationService.h - Components/Ble/CurrentTimeClient.h - Components/Ble/AlertNotificationClient.h - Components/Ble/DfuService.h - Components/FirmwareValidator/FirmwareValidator.h - Components/Ble/BatteryInformationService.h - Components/Ble/ImmediateAlertService.h + components/Battery/BatteryController.h + components/Ble/BleController.h + components/Ble/NotificationManager.h + components/DateTime/DateTimeController.h + components/Brightness/BrightnessController.h + components/Ble/NimbleController.h + components/Ble/DeviceInformationService.h + components/Ble/CurrentTimeClient.h + components/Ble/AlertNotificationClient.h + components/Ble/DfuService.h + components/FirmwareValidator/FirmwareValidator.h + components/Ble/BatteryInformationService.h + components/Ble/ImmediateAlertService.h drivers/Cst816s.h FreeRTOS/portmacro.h FreeRTOS/portmacro_cmsis.h diff --git a/src/Components/Battery/BatteryController.cpp b/src/components/Battery/BatteryController.cpp similarity index 100% rename from src/Components/Battery/BatteryController.cpp rename to src/components/Battery/BatteryController.cpp diff --git a/src/Components/Battery/BatteryController.h b/src/components/Battery/BatteryController.h similarity index 100% rename from src/Components/Battery/BatteryController.h rename to src/components/Battery/BatteryController.h diff --git a/src/Components/Ble/AlertNotificationClient.cpp b/src/components/Ble/AlertNotificationClient.cpp similarity index 100% rename from src/Components/Ble/AlertNotificationClient.cpp rename to src/components/Ble/AlertNotificationClient.cpp diff --git a/src/Components/Ble/AlertNotificationClient.h b/src/components/Ble/AlertNotificationClient.h similarity index 100% rename from src/Components/Ble/AlertNotificationClient.h rename to src/components/Ble/AlertNotificationClient.h diff --git a/src/Components/Ble/AlertNotificationService.cpp b/src/components/Ble/AlertNotificationService.cpp similarity index 100% rename from src/Components/Ble/AlertNotificationService.cpp rename to src/components/Ble/AlertNotificationService.cpp diff --git a/src/Components/Ble/AlertNotificationService.h b/src/components/Ble/AlertNotificationService.h similarity index 100% rename from src/Components/Ble/AlertNotificationService.h rename to src/components/Ble/AlertNotificationService.h diff --git a/src/Components/Ble/BatteryInformationService.cpp b/src/components/Ble/BatteryInformationService.cpp similarity index 100% rename from src/Components/Ble/BatteryInformationService.cpp rename to src/components/Ble/BatteryInformationService.cpp diff --git a/src/Components/Ble/BatteryInformationService.h b/src/components/Ble/BatteryInformationService.h similarity index 100% rename from src/Components/Ble/BatteryInformationService.h rename to src/components/Ble/BatteryInformationService.h diff --git a/src/Components/Ble/BleController.cpp b/src/components/Ble/BleController.cpp similarity index 100% rename from src/Components/Ble/BleController.cpp rename to src/components/Ble/BleController.cpp diff --git a/src/Components/Ble/BleController.h b/src/components/Ble/BleController.h similarity index 100% rename from src/Components/Ble/BleController.h rename to src/components/Ble/BleController.h diff --git a/src/Components/Ble/CurrentTimeClient.cpp b/src/components/Ble/CurrentTimeClient.cpp similarity index 100% rename from src/Components/Ble/CurrentTimeClient.cpp rename to src/components/Ble/CurrentTimeClient.cpp diff --git a/src/Components/Ble/CurrentTimeClient.h b/src/components/Ble/CurrentTimeClient.h similarity index 100% rename from src/Components/Ble/CurrentTimeClient.h rename to src/components/Ble/CurrentTimeClient.h diff --git a/src/Components/Ble/CurrentTimeService.cpp b/src/components/Ble/CurrentTimeService.cpp similarity index 100% rename from src/Components/Ble/CurrentTimeService.cpp rename to src/components/Ble/CurrentTimeService.cpp diff --git a/src/Components/Ble/CurrentTimeService.h b/src/components/Ble/CurrentTimeService.h similarity index 100% rename from src/Components/Ble/CurrentTimeService.h rename to src/components/Ble/CurrentTimeService.h diff --git a/src/Components/Ble/DeviceInformationService.cpp b/src/components/Ble/DeviceInformationService.cpp similarity index 100% rename from src/Components/Ble/DeviceInformationService.cpp rename to src/components/Ble/DeviceInformationService.cpp diff --git a/src/Components/Ble/DeviceInformationService.h b/src/components/Ble/DeviceInformationService.h similarity index 100% rename from src/Components/Ble/DeviceInformationService.h rename to src/components/Ble/DeviceInformationService.h diff --git a/src/Components/Ble/DfuService.cpp b/src/components/Ble/DfuService.cpp similarity index 100% rename from src/Components/Ble/DfuService.cpp rename to src/components/Ble/DfuService.cpp diff --git a/src/Components/Ble/DfuService.h b/src/components/Ble/DfuService.h similarity index 100% rename from src/Components/Ble/DfuService.h rename to src/components/Ble/DfuService.h diff --git a/src/Components/Ble/ImmediateAlertService.cpp b/src/components/Ble/ImmediateAlertService.cpp similarity index 100% rename from src/Components/Ble/ImmediateAlertService.cpp rename to src/components/Ble/ImmediateAlertService.cpp diff --git a/src/Components/Ble/ImmediateAlertService.h b/src/components/Ble/ImmediateAlertService.h similarity index 100% rename from src/Components/Ble/ImmediateAlertService.h rename to src/components/Ble/ImmediateAlertService.h diff --git a/src/Components/Ble/MusicService.cpp b/src/components/Ble/MusicService.cpp similarity index 100% rename from src/Components/Ble/MusicService.cpp rename to src/components/Ble/MusicService.cpp diff --git a/src/Components/Ble/MusicService.h b/src/components/Ble/MusicService.h similarity index 100% rename from src/Components/Ble/MusicService.h rename to src/components/Ble/MusicService.h diff --git a/src/Components/Ble/NimbleController.cpp b/src/components/Ble/NimbleController.cpp similarity index 100% rename from src/Components/Ble/NimbleController.cpp rename to src/components/Ble/NimbleController.cpp diff --git a/src/Components/Ble/NimbleController.h b/src/components/Ble/NimbleController.h similarity index 100% rename from src/Components/Ble/NimbleController.h rename to src/components/Ble/NimbleController.h diff --git a/src/Components/Ble/NotificationManager.cpp b/src/components/Ble/NotificationManager.cpp similarity index 100% rename from src/Components/Ble/NotificationManager.cpp rename to src/components/Ble/NotificationManager.cpp diff --git a/src/Components/Ble/NotificationManager.h b/src/components/Ble/NotificationManager.h similarity index 100% rename from src/Components/Ble/NotificationManager.h rename to src/components/Ble/NotificationManager.h diff --git a/src/Components/Brightness/BrightnessController.cpp b/src/components/Brightness/BrightnessController.cpp similarity index 100% rename from src/Components/Brightness/BrightnessController.cpp rename to src/components/Brightness/BrightnessController.cpp diff --git a/src/Components/Brightness/BrightnessController.h b/src/components/Brightness/BrightnessController.h similarity index 100% rename from src/Components/Brightness/BrightnessController.h rename to src/components/Brightness/BrightnessController.h diff --git a/src/Components/DateTime/DateTimeController.cpp b/src/components/DateTime/DateTimeController.cpp similarity index 100% rename from src/Components/DateTime/DateTimeController.cpp rename to src/components/DateTime/DateTimeController.cpp diff --git a/src/Components/DateTime/DateTimeController.h b/src/components/DateTime/DateTimeController.h similarity index 100% rename from src/Components/DateTime/DateTimeController.h rename to src/components/DateTime/DateTimeController.h diff --git a/src/Components/FirmwareValidator/FirmwareValidator.cpp b/src/components/FirmwareValidator/FirmwareValidator.cpp similarity index 100% rename from src/Components/FirmwareValidator/FirmwareValidator.cpp rename to src/components/FirmwareValidator/FirmwareValidator.cpp diff --git a/src/Components/FirmwareValidator/FirmwareValidator.h b/src/components/FirmwareValidator/FirmwareValidator.h similarity index 100% rename from src/Components/FirmwareValidator/FirmwareValidator.h rename to src/components/FirmwareValidator/FirmwareValidator.h diff --git a/src/Components/Gfx/Gfx.cpp b/src/components/Gfx/Gfx.cpp similarity index 100% rename from src/Components/Gfx/Gfx.cpp rename to src/components/Gfx/Gfx.cpp diff --git a/src/Components/Gfx/Gfx.h b/src/components/Gfx/Gfx.h similarity index 100% rename from src/Components/Gfx/Gfx.h rename to src/components/Gfx/Gfx.h From e25c4edbcf64a62b6a0555722b289a94aea506d1 Mon Sep 17 00:00:00 2001 From: Avamander Date: Fri, 2 Oct 2020 21:45:21 +0300 Subject: [PATCH 4/8] Renamed SystemTask/ to systemtask/ --- src/CMakeLists.txt | 6 +++--- src/{SystemTask => systemtask}/SystemMonitor.h | 0 src/{SystemTask => systemtask}/SystemTask.cpp | 10 +++++----- src/{SystemTask => systemtask}/SystemTask.h | 0 4 files changed, 8 insertions(+), 8 deletions(-) rename src/{SystemTask => systemtask}/SystemMonitor.h (100%) rename src/{SystemTask => systemtask}/SystemTask.cpp (97%) rename src/{SystemTask => systemtask}/SystemTask.h (100%) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f5366314..2026471c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -374,7 +374,7 @@ list(APPEND SOURCE_FILES DisplayApp/Fonts/jetbrains_mono_extrabold_compressed.c DisplayApp/Fonts/jetbrains_mono_bold_20.c - SystemTask/SystemTask.cpp + systemtask/SystemTask.cpp drivers/TwiMaster.cpp ) @@ -451,8 +451,8 @@ set(INCLUDE_FILES libs/date/includes/date/ptz.h libs/date/includes/date/tz_private.h DisplayApp/LittleVgl.h - SystemTask/SystemTask.h - SystemTask/SystemMonitor.h + systemtask/SystemTask.h + systemtask/SystemMonitor.h DisplayApp/Screens/Symbols.h drivers/TwiMaster.h ) diff --git a/src/SystemTask/SystemMonitor.h b/src/systemtask/SystemMonitor.h similarity index 100% rename from src/SystemTask/SystemMonitor.h rename to src/systemtask/SystemMonitor.h diff --git a/src/SystemTask/SystemTask.cpp b/src/systemtask/SystemTask.cpp similarity index 97% rename from src/SystemTask/SystemTask.cpp rename to src/systemtask/SystemTask.cpp index 2070282b..24f688e2 100644 --- a/src/SystemTask/SystemTask.cpp +++ b/src/systemtask/SystemTask.cpp @@ -46,7 +46,7 @@ void SystemTask::Start() { void SystemTask::Process(void *instance) { auto *app = static_cast(instance); - NRF_LOG_INFO("SystemTask task started!"); + NRF_LOG_INFO("systemtask task started!"); app->Work(); } @@ -123,7 +123,7 @@ void SystemTask::Work() { break; case Messages::GoToSleep: isGoingToSleep = true; - NRF_LOG_INFO("[SystemTask] Going to sleep"); + NRF_LOG_INFO("[systemtask] Going to sleep"); xTimerStop(idleTimer, 0); displayApp->PushMessage(Pinetime::Applications::DisplayApp::Messages::GoToSleep); break; @@ -196,13 +196,13 @@ void SystemTask::Work() { void SystemTask::OnButtonPushed() { if(isGoingToSleep) return; if(!isSleeping) { - NRF_LOG_INFO("[SystemTask] Button pushed"); + NRF_LOG_INFO("[systemtask] Button pushed"); PushMessage(Messages::OnButtonEvent); displayApp->PushMessage(Pinetime::Applications::DisplayApp::Messages::ButtonPushed); } else { if(!isWakingUp) { - NRF_LOG_INFO("[SystemTask] Button pushed, waking up"); + NRF_LOG_INFO("[systemtask] Button pushed, waking up"); GoToRunning(); } } @@ -215,7 +215,7 @@ void SystemTask::GoToRunning() { void SystemTask::OnTouchEvent() { if(isGoingToSleep) return ; - NRF_LOG_INFO("[SystemTask] Touch event"); + NRF_LOG_INFO("[systemtask] Touch event"); if(!isSleeping) { PushMessage(Messages::OnTouchEvent); displayApp->PushMessage(Pinetime::Applications::DisplayApp::Messages::TouchEvent); diff --git a/src/SystemTask/SystemTask.h b/src/systemtask/SystemTask.h similarity index 100% rename from src/SystemTask/SystemTask.h rename to src/systemtask/SystemTask.h From 30c261028e27dab0e30aec19b9c21c37cc74e92b Mon Sep 17 00:00:00 2001 From: Avamander Date: Fri, 2 Oct 2020 21:45:51 +0300 Subject: [PATCH 5/8] Renamed Logging/ to logging/ --- src/CMakeLists.txt | 8 ++++---- src/{Logging => logging}/DummyLogger.h | 0 src/{Logging => logging}/Logger.h | 0 src/{Logging => logging}/NrfLogger.cpp | 0 src/{Logging => logging}/NrfLogger.h | 0 5 files changed, 4 insertions(+), 4 deletions(-) rename src/{Logging => logging}/DummyLogger.h (100%) rename src/{Logging => logging}/Logger.h (100%) rename src/{Logging => logging}/NrfLogger.cpp (100%) rename src/{Logging => logging}/NrfLogger.h (100%) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 2026471c..f7ff6178 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -322,7 +322,7 @@ list(APPEND IMAGE_FILES ) list(APPEND SOURCE_FILES - Logging/NrfLogger.cpp + logging/NrfLogger.cpp DisplayApp/DisplayApp.cpp DisplayApp/Screens/Screen.cpp DisplayApp/Screens/Clock.cpp @@ -387,7 +387,7 @@ list(APPEND GRAPHICS_SOURCE_FILES drivers/SpiNorFlash.cpp drivers/SpiMaster.cpp drivers/Spi.cpp - Logging/NrfLogger.cpp + logging/NrfLogger.cpp components/Gfx/Gfx.cpp drivers/St7789.cpp @@ -397,8 +397,8 @@ list(APPEND GRAPHICS_SOURCE_FILES ) set(INCLUDE_FILES - Logging/Logger.h - Logging/NrfLogger.h + logging/Logger.h + logging/NrfLogger.h DisplayApp/DisplayApp.h DisplayApp/TouchEvents.h DisplayApp/Screens/Screen.h diff --git a/src/Logging/DummyLogger.h b/src/logging/DummyLogger.h similarity index 100% rename from src/Logging/DummyLogger.h rename to src/logging/DummyLogger.h diff --git a/src/Logging/Logger.h b/src/logging/Logger.h similarity index 100% rename from src/Logging/Logger.h rename to src/logging/Logger.h diff --git a/src/Logging/NrfLogger.cpp b/src/logging/NrfLogger.cpp similarity index 100% rename from src/Logging/NrfLogger.cpp rename to src/logging/NrfLogger.cpp diff --git a/src/Logging/NrfLogger.h b/src/logging/NrfLogger.h similarity index 100% rename from src/Logging/NrfLogger.h rename to src/logging/NrfLogger.h From e3fb2f0b8974f3e9a124d27f4b568e754ccfb782 Mon Sep 17 00:00:00 2001 From: Avamander Date: Fri, 2 Oct 2020 21:46:41 +0300 Subject: [PATCH 6/8] Renamed DisplayApp/ to displayapp/ --- src/CMakeLists.txt | 136 +++++++++--------- src/{DisplayApp => displayapp}/Apps.h | 0 src/{DisplayApp => displayapp}/DisplayApp.cpp | 4 +- src/{DisplayApp => displayapp}/DisplayApp.h | 0 .../Fonts/Readme.md | 0 .../Fonts/jetbrains_mono_bold_20.c | 0 .../jetbrains_mono_extrabold_compressed.c | 0 .../Icons/battery/os_battery_005.c | 0 .../Icons/battery/os_battery_005.png | Bin .../Icons/battery/os_battery_010.c | 0 .../Icons/battery/os_battery_010.png | Bin .../Icons/battery/os_battery_020.c | 0 .../Icons/battery/os_battery_020.png | Bin .../Icons/battery/os_battery_030.c | 0 .../Icons/battery/os_battery_030.png | Bin .../Icons/battery/os_battery_040.c | 0 .../Icons/battery/os_battery_040.png | Bin .../Icons/battery/os_battery_050.c | 0 .../Icons/battery/os_battery_050.png | Bin .../Icons/battery/os_battery_060.c | 0 .../Icons/battery/os_battery_060.png | Bin .../Icons/battery/os_battery_070.c | 0 .../Icons/battery/os_battery_070.png | Bin .../Icons/battery/os_battery_080.c | 0 .../Icons/battery/os_battery_080.png | Bin .../Icons/battery/os_battery_090.c | 0 .../Icons/battery/os_battery_090.png | Bin .../Icons/battery/os_battery_100.c | 0 .../Icons/battery/os_battery_100.png | Bin .../Icons/battery/os_battery_error.c | 0 .../Icons/battery/os_battery_error.png | Bin .../Icons/battery/os_batterycharging_005.c | 0 .../Icons/battery/os_batterycharging_005.png | Bin .../Icons/battery/os_batterycharging_010.c | 0 .../Icons/battery/os_batterycharging_010.png | Bin .../Icons/battery/os_batterycharging_020.c | 0 .../Icons/battery/os_batterycharging_020.png | Bin .../Icons/battery/os_batterycharging_030.c | 0 .../Icons/battery/os_batterycharging_030.png | Bin .../Icons/battery/os_batterycharging_040.c | 0 .../Icons/battery/os_batterycharging_040.png | Bin .../Icons/battery/os_batterycharging_050.c | 0 .../Icons/battery/os_batterycharging_050.png | Bin .../Icons/battery/os_batterycharging_060.c | 0 .../Icons/battery/os_batterycharging_060.png | Bin .../Icons/battery/os_batterycharging_070.c | 0 .../Icons/battery/os_batterycharging_070.png | Bin .../Icons/battery/os_batterycharging_080.c | 0 .../Icons/battery/os_batterycharging_080.png | Bin .../Icons/battery/os_batterycharging_090.c | 0 .../Icons/battery/os_batterycharging_090.png | Bin .../Icons/battery/os_batterycharging_100.c | 0 .../Icons/battery/os_batterycharging_100.png | Bin .../Icons/bluetooth/ck_os_bt_connected.png | Bin .../Icons/bluetooth/ck_os_bt_disconnected.png | Bin .../Icons/bluetooth/os_bt_connected.c | 0 .../Icons/bluetooth/os_bt_connected.png | Bin .../Icons/bluetooth/os_bt_disconnected.c | 0 .../Icons/bluetooth/os_bt_disconnected.png | Bin src/{DisplayApp => displayapp}/LittleVgl.cpp | 0 src/{DisplayApp => displayapp}/LittleVgl.h | 0 .../Screens/ApplicationList.cpp | 0 .../Screens/ApplicationList.h | 0 .../Screens/BatteryIcon.cpp | 0 .../Screens/BatteryIcon.h | 0 .../Screens/BleIcon.cpp | 0 .../Screens/BleIcon.h | 0 .../Screens/Brightness.cpp | 0 .../Screens/Brightness.h | 0 .../Screens/Clock.cpp | 0 .../Screens/Clock.h | 0 .../Screens/DropDownDemo.cpp | 0 .../Screens/DropDownDemo.h | 0 .../Screens/FirmwareUpdate.cpp | 0 .../Screens/FirmwareUpdate.h | 0 .../Screens/FirmwareValidation.cpp | 0 .../Screens/FirmwareValidation.h | 0 .../Screens/Gauge.cpp | 0 .../Screens/Gauge.h | 0 .../Screens/InfiniPaint.cpp | 0 .../Screens/InfiniPaint.h | 0 .../Screens/Label.cpp | 0 .../Screens/Label.h | 0 .../Screens/Meter.cpp | 0 .../Screens/Meter.h | 0 .../Screens/Modal.cpp | 0 .../Screens/Modal.h | 0 .../Screens/Music.cpp | 0 .../Screens/Music.h | 0 .../Screens/Screen.cpp | 0 .../Screens/Screen.h | 0 .../Screens/ScreenList.h | 0 .../Screens/Symbols.h | 0 .../Screens/SystemInfo.cpp | 0 .../Screens/SystemInfo.h | 0 .../Screens/Tab.cpp | 0 src/{DisplayApp => displayapp}/Screens/Tab.h | 0 .../Screens/Tile.cpp | 0 src/{DisplayApp => displayapp}/Screens/Tile.h | 0 src/{DisplayApp => displayapp}/TouchEvents.h | 0 100 files changed, 70 insertions(+), 70 deletions(-) rename src/{DisplayApp => displayapp}/Apps.h (100%) rename src/{DisplayApp => displayapp}/DisplayApp.cpp (98%) rename src/{DisplayApp => displayapp}/DisplayApp.h (100%) rename src/{DisplayApp => displayapp}/Fonts/Readme.md (100%) rename src/{DisplayApp => displayapp}/Fonts/jetbrains_mono_bold_20.c (100%) rename src/{DisplayApp => displayapp}/Fonts/jetbrains_mono_extrabold_compressed.c (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_battery_005.c (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_battery_005.png (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_battery_010.c (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_battery_010.png (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_battery_020.c (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_battery_020.png (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_battery_030.c (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_battery_030.png (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_battery_040.c (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_battery_040.png (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_battery_050.c (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_battery_050.png (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_battery_060.c (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_battery_060.png (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_battery_070.c (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_battery_070.png (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_battery_080.c (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_battery_080.png (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_battery_090.c (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_battery_090.png (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_battery_100.c (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_battery_100.png (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_battery_error.c (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_battery_error.png (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_batterycharging_005.c (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_batterycharging_005.png (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_batterycharging_010.c (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_batterycharging_010.png (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_batterycharging_020.c (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_batterycharging_020.png (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_batterycharging_030.c (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_batterycharging_030.png (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_batterycharging_040.c (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_batterycharging_040.png (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_batterycharging_050.c (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_batterycharging_050.png (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_batterycharging_060.c (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_batterycharging_060.png (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_batterycharging_070.c (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_batterycharging_070.png (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_batterycharging_080.c (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_batterycharging_080.png (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_batterycharging_090.c (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_batterycharging_090.png (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_batterycharging_100.c (100%) rename src/{DisplayApp => displayapp}/Icons/battery/os_batterycharging_100.png (100%) rename src/{DisplayApp => displayapp}/Icons/bluetooth/ck_os_bt_connected.png (100%) rename src/{DisplayApp => displayapp}/Icons/bluetooth/ck_os_bt_disconnected.png (100%) rename src/{DisplayApp => displayapp}/Icons/bluetooth/os_bt_connected.c (100%) rename src/{DisplayApp => displayapp}/Icons/bluetooth/os_bt_connected.png (100%) rename src/{DisplayApp => displayapp}/Icons/bluetooth/os_bt_disconnected.c (100%) rename src/{DisplayApp => displayapp}/Icons/bluetooth/os_bt_disconnected.png (100%) rename src/{DisplayApp => displayapp}/LittleVgl.cpp (100%) rename src/{DisplayApp => displayapp}/LittleVgl.h (100%) rename src/{DisplayApp => displayapp}/Screens/ApplicationList.cpp (100%) rename src/{DisplayApp => displayapp}/Screens/ApplicationList.h (100%) rename src/{DisplayApp => displayapp}/Screens/BatteryIcon.cpp (100%) rename src/{DisplayApp => displayapp}/Screens/BatteryIcon.h (100%) rename src/{DisplayApp => displayapp}/Screens/BleIcon.cpp (100%) rename src/{DisplayApp => displayapp}/Screens/BleIcon.h (100%) rename src/{DisplayApp => displayapp}/Screens/Brightness.cpp (100%) rename src/{DisplayApp => displayapp}/Screens/Brightness.h (100%) rename src/{DisplayApp => displayapp}/Screens/Clock.cpp (100%) rename src/{DisplayApp => displayapp}/Screens/Clock.h (100%) rename src/{DisplayApp => displayapp}/Screens/DropDownDemo.cpp (100%) rename src/{DisplayApp => displayapp}/Screens/DropDownDemo.h (100%) rename src/{DisplayApp => displayapp}/Screens/FirmwareUpdate.cpp (100%) rename src/{DisplayApp => displayapp}/Screens/FirmwareUpdate.h (100%) rename src/{DisplayApp => displayapp}/Screens/FirmwareValidation.cpp (100%) rename src/{DisplayApp => displayapp}/Screens/FirmwareValidation.h (100%) rename src/{DisplayApp => displayapp}/Screens/Gauge.cpp (100%) rename src/{DisplayApp => displayapp}/Screens/Gauge.h (100%) rename src/{DisplayApp => displayapp}/Screens/InfiniPaint.cpp (100%) rename src/{DisplayApp => displayapp}/Screens/InfiniPaint.h (100%) rename src/{DisplayApp => displayapp}/Screens/Label.cpp (100%) rename src/{DisplayApp => displayapp}/Screens/Label.h (100%) rename src/{DisplayApp => displayapp}/Screens/Meter.cpp (100%) rename src/{DisplayApp => displayapp}/Screens/Meter.h (100%) rename src/{DisplayApp => displayapp}/Screens/Modal.cpp (100%) rename src/{DisplayApp => displayapp}/Screens/Modal.h (100%) rename src/{DisplayApp => displayapp}/Screens/Music.cpp (100%) rename src/{DisplayApp => displayapp}/Screens/Music.h (100%) rename src/{DisplayApp => displayapp}/Screens/Screen.cpp (100%) rename src/{DisplayApp => displayapp}/Screens/Screen.h (100%) rename src/{DisplayApp => displayapp}/Screens/ScreenList.h (100%) rename src/{DisplayApp => displayapp}/Screens/Symbols.h (100%) rename src/{DisplayApp => displayapp}/Screens/SystemInfo.cpp (100%) rename src/{DisplayApp => displayapp}/Screens/SystemInfo.h (100%) rename src/{DisplayApp => displayapp}/Screens/Tab.cpp (100%) rename src/{DisplayApp => displayapp}/Screens/Tab.h (100%) rename src/{DisplayApp => displayapp}/Screens/Tile.cpp (100%) rename src/{DisplayApp => displayapp}/Screens/Tile.h (100%) rename src/{DisplayApp => displayapp}/TouchEvents.h (100%) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f7ff6178..546ce813 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -292,55 +292,55 @@ set(LVGL_SRC ) list(APPEND IMAGE_FILES - DisplayApp/Icons/battery/os_battery_error.c - DisplayApp/Icons/battery/os_battery_100.c - DisplayApp/Icons/battery/os_battery_090.c - DisplayApp/Icons/battery/os_battery_080.c - DisplayApp/Icons/battery/os_battery_070.c - DisplayApp/Icons/battery/os_battery_060.c - DisplayApp/Icons/battery/os_battery_050.c - DisplayApp/Icons/battery/os_battery_040.c - DisplayApp/Icons/battery/os_battery_030.c - DisplayApp/Icons/battery/os_battery_020.c - DisplayApp/Icons/battery/os_battery_010.c - DisplayApp/Icons/battery/os_battery_005.c + displayapp/Icons/battery/os_battery_error.c + displayapp/Icons/battery/os_battery_100.c + displayapp/Icons/battery/os_battery_090.c + displayapp/Icons/battery/os_battery_080.c + displayapp/Icons/battery/os_battery_070.c + displayapp/Icons/battery/os_battery_060.c + displayapp/Icons/battery/os_battery_050.c + displayapp/Icons/battery/os_battery_040.c + displayapp/Icons/battery/os_battery_030.c + displayapp/Icons/battery/os_battery_020.c + displayapp/Icons/battery/os_battery_010.c + displayapp/Icons/battery/os_battery_005.c - DisplayApp/Icons/battery/os_batterycharging_100.c - DisplayApp/Icons/battery/os_batterycharging_090.c - DisplayApp/Icons/battery/os_batterycharging_080.c - DisplayApp/Icons/battery/os_batterycharging_070.c - DisplayApp/Icons/battery/os_batterycharging_060.c - DisplayApp/Icons/battery/os_batterycharging_050.c - DisplayApp/Icons/battery/os_batterycharging_040.c - DisplayApp/Icons/battery/os_batterycharging_030.c - DisplayApp/Icons/battery/os_batterycharging_020.c - DisplayApp/Icons/battery/os_batterycharging_010.c - DisplayApp/Icons/battery/os_batterycharging_005.c + displayapp/Icons/battery/os_batterycharging_100.c + displayapp/Icons/battery/os_batterycharging_090.c + displayapp/Icons/battery/os_batterycharging_080.c + displayapp/Icons/battery/os_batterycharging_070.c + displayapp/Icons/battery/os_batterycharging_060.c + displayapp/Icons/battery/os_batterycharging_050.c + displayapp/Icons/battery/os_batterycharging_040.c + displayapp/Icons/battery/os_batterycharging_030.c + displayapp/Icons/battery/os_batterycharging_020.c + displayapp/Icons/battery/os_batterycharging_010.c + displayapp/Icons/battery/os_batterycharging_005.c - DisplayApp/Icons/bluetooth/os_bt_connected.c - DisplayApp/Icons/bluetooth/os_bt_disconnected.c + displayapp/Icons/bluetooth/os_bt_connected.c + displayapp/Icons/bluetooth/os_bt_disconnected.c ) list(APPEND SOURCE_FILES logging/NrfLogger.cpp - DisplayApp/DisplayApp.cpp - DisplayApp/Screens/Screen.cpp - DisplayApp/Screens/Clock.cpp - DisplayApp/Screens/Tile.cpp - DisplayApp/Screens/Meter.cpp - DisplayApp/Screens/Gauge.cpp - DisplayApp/Screens/InfiniPaint.cpp - DisplayApp/Screens/DropDownDemo.cpp - DisplayApp/Screens/Modal.cpp - DisplayApp/Screens/BatteryIcon.cpp - DisplayApp/Screens/BleIcon.cpp - DisplayApp/Screens/Brightness.cpp - DisplayApp/Screens/SystemInfo.cpp - DisplayApp/Screens/Label.cpp - DisplayApp/Screens/FirmwareUpdate.cpp - DisplayApp/Screens/Music.cpp - DisplayApp/Screens/FirmwareValidation.cpp - DisplayApp/Screens/ApplicationList.cpp + displayapp/DisplayApp.cpp + displayapp/Screens/Screen.cpp + displayapp/Screens/Clock.cpp + displayapp/Screens/Tile.cpp + displayapp/Screens/Meter.cpp + displayapp/Screens/Gauge.cpp + displayapp/Screens/InfiniPaint.cpp + displayapp/Screens/DropDownDemo.cpp + displayapp/Screens/Modal.cpp + displayapp/Screens/BatteryIcon.cpp + displayapp/Screens/BleIcon.cpp + displayapp/Screens/Brightness.cpp + displayapp/Screens/SystemInfo.cpp + displayapp/Screens/Label.cpp + displayapp/Screens/FirmwareUpdate.cpp + displayapp/Screens/Music.cpp + displayapp/Screens/FirmwareValidation.cpp + displayapp/Screens/ApplicationList.cpp main.cpp drivers/St7789.cpp drivers/SpiNorFlash.cpp @@ -370,9 +370,9 @@ list(APPEND SOURCE_FILES FreeRTOS/port_cmsis_systick.c FreeRTOS/port_cmsis.c - DisplayApp/LittleVgl.cpp - DisplayApp/Fonts/jetbrains_mono_extrabold_compressed.c - DisplayApp/Fonts/jetbrains_mono_bold_20.c + displayapp/LittleVgl.cpp + displayapp/Fonts/jetbrains_mono_extrabold_compressed.c + displayapp/Fonts/jetbrains_mono_bold_20.c systemtask/SystemTask.cpp drivers/TwiMaster.cpp @@ -399,26 +399,26 @@ list(APPEND GRAPHICS_SOURCE_FILES set(INCLUDE_FILES logging/Logger.h logging/NrfLogger.h - DisplayApp/DisplayApp.h - DisplayApp/TouchEvents.h - DisplayApp/Screens/Screen.h - DisplayApp/Screens/Clock.h - DisplayApp/Screens/Tile.h - DisplayApp/Screens/Meter.h - DisplayApp/Screens/Gauge.h - DisplayApp/Screens/InfiniPaint.h - DisplayApp/Screens/DropDownDemo.h - DisplayApp/Screens/Modal.h - DisplayApp/Screens/BatteryIcon.h - DisplayApp/Screens/BleIcon.cpp - DisplayApp/Screens/Brightness.h - DisplayApp/Screens/SystemInfo.h - DisplayApp/Screens/ScreenList.h - DisplayApp/Screens/Label.h - DisplayApp/Screens/FirmwareUpdate.h - DisplayApp/Screens/FirmwareValidation.h - DisplayApp/Screens/ApplicationList.h - DisplayApp/Apps.h + displayapp/DisplayApp.h + displayapp/TouchEvents.h + displayapp/Screens/Screen.h + displayapp/Screens/Clock.h + displayapp/Screens/Tile.h + displayapp/Screens/Meter.h + displayapp/Screens/Gauge.h + displayapp/Screens/InfiniPaint.h + displayapp/Screens/DropDownDemo.h + displayapp/Screens/Modal.h + displayapp/Screens/BatteryIcon.h + displayapp/Screens/BleIcon.cpp + displayapp/Screens/Brightness.h + displayapp/Screens/SystemInfo.h + displayapp/Screens/ScreenList.h + displayapp/Screens/Label.h + displayapp/Screens/FirmwareUpdate.h + displayapp/Screens/FirmwareValidation.h + displayapp/Screens/ApplicationList.h + displayapp/Apps.h drivers/St7789.h drivers/SpiNorFlash.h drivers/SpiMaster.h @@ -450,10 +450,10 @@ set(INCLUDE_FILES libs/date/includes/date/julian.h libs/date/includes/date/ptz.h libs/date/includes/date/tz_private.h - DisplayApp/LittleVgl.h + displayapp/LittleVgl.h systemtask/SystemTask.h systemtask/SystemMonitor.h - DisplayApp/Screens/Symbols.h + displayapp/Screens/Symbols.h drivers/TwiMaster.h ) diff --git a/src/DisplayApp/Apps.h b/src/displayapp/Apps.h similarity index 100% rename from src/DisplayApp/Apps.h rename to src/displayapp/Apps.h diff --git a/src/DisplayApp/DisplayApp.cpp b/src/displayapp/DisplayApp.cpp similarity index 98% rename from src/DisplayApp/DisplayApp.cpp rename to src/displayapp/DisplayApp.cpp index f6138ec7..46e81f1d 100644 --- a/src/DisplayApp/DisplayApp.cpp +++ b/src/displayapp/DisplayApp.cpp @@ -43,13 +43,13 @@ DisplayApp::DisplayApp(Drivers::St7789 &lcd, Components::LittleVgl &lvgl, Driver } void DisplayApp::Start() { - if (pdPASS != xTaskCreate(DisplayApp::Process, "DisplayApp", 512, this, 0, &taskHandle)) + if (pdPASS != xTaskCreate(DisplayApp::Process, "displayapp", 512, this, 0, &taskHandle)) APP_ERROR_HANDLER(NRF_ERROR_NO_MEM); } void DisplayApp::Process(void *instance) { auto *app = static_cast(instance); - NRF_LOG_INFO("DisplayApp task started!"); + NRF_LOG_INFO("displayapp task started!"); app->InitHw(); // Send a dummy notification to unlock the lvgl display driver for the first iteration diff --git a/src/DisplayApp/DisplayApp.h b/src/displayapp/DisplayApp.h similarity index 100% rename from src/DisplayApp/DisplayApp.h rename to src/displayapp/DisplayApp.h diff --git a/src/DisplayApp/Fonts/Readme.md b/src/displayapp/Fonts/Readme.md similarity index 100% rename from src/DisplayApp/Fonts/Readme.md rename to src/displayapp/Fonts/Readme.md diff --git a/src/DisplayApp/Fonts/jetbrains_mono_bold_20.c b/src/displayapp/Fonts/jetbrains_mono_bold_20.c similarity index 100% rename from src/DisplayApp/Fonts/jetbrains_mono_bold_20.c rename to src/displayapp/Fonts/jetbrains_mono_bold_20.c diff --git a/src/DisplayApp/Fonts/jetbrains_mono_extrabold_compressed.c b/src/displayapp/Fonts/jetbrains_mono_extrabold_compressed.c similarity index 100% rename from src/DisplayApp/Fonts/jetbrains_mono_extrabold_compressed.c rename to src/displayapp/Fonts/jetbrains_mono_extrabold_compressed.c diff --git a/src/DisplayApp/Icons/battery/os_battery_005.c b/src/displayapp/Icons/battery/os_battery_005.c similarity index 100% rename from src/DisplayApp/Icons/battery/os_battery_005.c rename to src/displayapp/Icons/battery/os_battery_005.c diff --git a/src/DisplayApp/Icons/battery/os_battery_005.png b/src/displayapp/Icons/battery/os_battery_005.png similarity index 100% rename from src/DisplayApp/Icons/battery/os_battery_005.png rename to src/displayapp/Icons/battery/os_battery_005.png diff --git a/src/DisplayApp/Icons/battery/os_battery_010.c b/src/displayapp/Icons/battery/os_battery_010.c similarity index 100% rename from src/DisplayApp/Icons/battery/os_battery_010.c rename to src/displayapp/Icons/battery/os_battery_010.c diff --git a/src/DisplayApp/Icons/battery/os_battery_010.png b/src/displayapp/Icons/battery/os_battery_010.png similarity index 100% rename from src/DisplayApp/Icons/battery/os_battery_010.png rename to src/displayapp/Icons/battery/os_battery_010.png diff --git a/src/DisplayApp/Icons/battery/os_battery_020.c b/src/displayapp/Icons/battery/os_battery_020.c similarity index 100% rename from src/DisplayApp/Icons/battery/os_battery_020.c rename to src/displayapp/Icons/battery/os_battery_020.c diff --git a/src/DisplayApp/Icons/battery/os_battery_020.png b/src/displayapp/Icons/battery/os_battery_020.png similarity index 100% rename from src/DisplayApp/Icons/battery/os_battery_020.png rename to src/displayapp/Icons/battery/os_battery_020.png diff --git a/src/DisplayApp/Icons/battery/os_battery_030.c b/src/displayapp/Icons/battery/os_battery_030.c similarity index 100% rename from src/DisplayApp/Icons/battery/os_battery_030.c rename to src/displayapp/Icons/battery/os_battery_030.c diff --git a/src/DisplayApp/Icons/battery/os_battery_030.png b/src/displayapp/Icons/battery/os_battery_030.png similarity index 100% rename from src/DisplayApp/Icons/battery/os_battery_030.png rename to src/displayapp/Icons/battery/os_battery_030.png diff --git a/src/DisplayApp/Icons/battery/os_battery_040.c b/src/displayapp/Icons/battery/os_battery_040.c similarity index 100% rename from src/DisplayApp/Icons/battery/os_battery_040.c rename to src/displayapp/Icons/battery/os_battery_040.c diff --git a/src/DisplayApp/Icons/battery/os_battery_040.png b/src/displayapp/Icons/battery/os_battery_040.png similarity index 100% rename from src/DisplayApp/Icons/battery/os_battery_040.png rename to src/displayapp/Icons/battery/os_battery_040.png diff --git a/src/DisplayApp/Icons/battery/os_battery_050.c b/src/displayapp/Icons/battery/os_battery_050.c similarity index 100% rename from src/DisplayApp/Icons/battery/os_battery_050.c rename to src/displayapp/Icons/battery/os_battery_050.c diff --git a/src/DisplayApp/Icons/battery/os_battery_050.png b/src/displayapp/Icons/battery/os_battery_050.png similarity index 100% rename from src/DisplayApp/Icons/battery/os_battery_050.png rename to src/displayapp/Icons/battery/os_battery_050.png diff --git a/src/DisplayApp/Icons/battery/os_battery_060.c b/src/displayapp/Icons/battery/os_battery_060.c similarity index 100% rename from src/DisplayApp/Icons/battery/os_battery_060.c rename to src/displayapp/Icons/battery/os_battery_060.c diff --git a/src/DisplayApp/Icons/battery/os_battery_060.png b/src/displayapp/Icons/battery/os_battery_060.png similarity index 100% rename from src/DisplayApp/Icons/battery/os_battery_060.png rename to src/displayapp/Icons/battery/os_battery_060.png diff --git a/src/DisplayApp/Icons/battery/os_battery_070.c b/src/displayapp/Icons/battery/os_battery_070.c similarity index 100% rename from src/DisplayApp/Icons/battery/os_battery_070.c rename to src/displayapp/Icons/battery/os_battery_070.c diff --git a/src/DisplayApp/Icons/battery/os_battery_070.png b/src/displayapp/Icons/battery/os_battery_070.png similarity index 100% rename from src/DisplayApp/Icons/battery/os_battery_070.png rename to src/displayapp/Icons/battery/os_battery_070.png diff --git a/src/DisplayApp/Icons/battery/os_battery_080.c b/src/displayapp/Icons/battery/os_battery_080.c similarity index 100% rename from src/DisplayApp/Icons/battery/os_battery_080.c rename to src/displayapp/Icons/battery/os_battery_080.c diff --git a/src/DisplayApp/Icons/battery/os_battery_080.png b/src/displayapp/Icons/battery/os_battery_080.png similarity index 100% rename from src/DisplayApp/Icons/battery/os_battery_080.png rename to src/displayapp/Icons/battery/os_battery_080.png diff --git a/src/DisplayApp/Icons/battery/os_battery_090.c b/src/displayapp/Icons/battery/os_battery_090.c similarity index 100% rename from src/DisplayApp/Icons/battery/os_battery_090.c rename to src/displayapp/Icons/battery/os_battery_090.c diff --git a/src/DisplayApp/Icons/battery/os_battery_090.png b/src/displayapp/Icons/battery/os_battery_090.png similarity index 100% rename from src/DisplayApp/Icons/battery/os_battery_090.png rename to src/displayapp/Icons/battery/os_battery_090.png diff --git a/src/DisplayApp/Icons/battery/os_battery_100.c b/src/displayapp/Icons/battery/os_battery_100.c similarity index 100% rename from src/DisplayApp/Icons/battery/os_battery_100.c rename to src/displayapp/Icons/battery/os_battery_100.c diff --git a/src/DisplayApp/Icons/battery/os_battery_100.png b/src/displayapp/Icons/battery/os_battery_100.png similarity index 100% rename from src/DisplayApp/Icons/battery/os_battery_100.png rename to src/displayapp/Icons/battery/os_battery_100.png diff --git a/src/DisplayApp/Icons/battery/os_battery_error.c b/src/displayapp/Icons/battery/os_battery_error.c similarity index 100% rename from src/DisplayApp/Icons/battery/os_battery_error.c rename to src/displayapp/Icons/battery/os_battery_error.c diff --git a/src/DisplayApp/Icons/battery/os_battery_error.png b/src/displayapp/Icons/battery/os_battery_error.png similarity index 100% rename from src/DisplayApp/Icons/battery/os_battery_error.png rename to src/displayapp/Icons/battery/os_battery_error.png diff --git a/src/DisplayApp/Icons/battery/os_batterycharging_005.c b/src/displayapp/Icons/battery/os_batterycharging_005.c similarity index 100% rename from src/DisplayApp/Icons/battery/os_batterycharging_005.c rename to src/displayapp/Icons/battery/os_batterycharging_005.c diff --git a/src/DisplayApp/Icons/battery/os_batterycharging_005.png b/src/displayapp/Icons/battery/os_batterycharging_005.png similarity index 100% rename from src/DisplayApp/Icons/battery/os_batterycharging_005.png rename to src/displayapp/Icons/battery/os_batterycharging_005.png diff --git a/src/DisplayApp/Icons/battery/os_batterycharging_010.c b/src/displayapp/Icons/battery/os_batterycharging_010.c similarity index 100% rename from src/DisplayApp/Icons/battery/os_batterycharging_010.c rename to src/displayapp/Icons/battery/os_batterycharging_010.c diff --git a/src/DisplayApp/Icons/battery/os_batterycharging_010.png b/src/displayapp/Icons/battery/os_batterycharging_010.png similarity index 100% rename from src/DisplayApp/Icons/battery/os_batterycharging_010.png rename to src/displayapp/Icons/battery/os_batterycharging_010.png diff --git a/src/DisplayApp/Icons/battery/os_batterycharging_020.c b/src/displayapp/Icons/battery/os_batterycharging_020.c similarity index 100% rename from src/DisplayApp/Icons/battery/os_batterycharging_020.c rename to src/displayapp/Icons/battery/os_batterycharging_020.c diff --git a/src/DisplayApp/Icons/battery/os_batterycharging_020.png b/src/displayapp/Icons/battery/os_batterycharging_020.png similarity index 100% rename from src/DisplayApp/Icons/battery/os_batterycharging_020.png rename to src/displayapp/Icons/battery/os_batterycharging_020.png diff --git a/src/DisplayApp/Icons/battery/os_batterycharging_030.c b/src/displayapp/Icons/battery/os_batterycharging_030.c similarity index 100% rename from src/DisplayApp/Icons/battery/os_batterycharging_030.c rename to src/displayapp/Icons/battery/os_batterycharging_030.c diff --git a/src/DisplayApp/Icons/battery/os_batterycharging_030.png b/src/displayapp/Icons/battery/os_batterycharging_030.png similarity index 100% rename from src/DisplayApp/Icons/battery/os_batterycharging_030.png rename to src/displayapp/Icons/battery/os_batterycharging_030.png diff --git a/src/DisplayApp/Icons/battery/os_batterycharging_040.c b/src/displayapp/Icons/battery/os_batterycharging_040.c similarity index 100% rename from src/DisplayApp/Icons/battery/os_batterycharging_040.c rename to src/displayapp/Icons/battery/os_batterycharging_040.c diff --git a/src/DisplayApp/Icons/battery/os_batterycharging_040.png b/src/displayapp/Icons/battery/os_batterycharging_040.png similarity index 100% rename from src/DisplayApp/Icons/battery/os_batterycharging_040.png rename to src/displayapp/Icons/battery/os_batterycharging_040.png diff --git a/src/DisplayApp/Icons/battery/os_batterycharging_050.c b/src/displayapp/Icons/battery/os_batterycharging_050.c similarity index 100% rename from src/DisplayApp/Icons/battery/os_batterycharging_050.c rename to src/displayapp/Icons/battery/os_batterycharging_050.c diff --git a/src/DisplayApp/Icons/battery/os_batterycharging_050.png b/src/displayapp/Icons/battery/os_batterycharging_050.png similarity index 100% rename from src/DisplayApp/Icons/battery/os_batterycharging_050.png rename to src/displayapp/Icons/battery/os_batterycharging_050.png diff --git a/src/DisplayApp/Icons/battery/os_batterycharging_060.c b/src/displayapp/Icons/battery/os_batterycharging_060.c similarity index 100% rename from src/DisplayApp/Icons/battery/os_batterycharging_060.c rename to src/displayapp/Icons/battery/os_batterycharging_060.c diff --git a/src/DisplayApp/Icons/battery/os_batterycharging_060.png b/src/displayapp/Icons/battery/os_batterycharging_060.png similarity index 100% rename from src/DisplayApp/Icons/battery/os_batterycharging_060.png rename to src/displayapp/Icons/battery/os_batterycharging_060.png diff --git a/src/DisplayApp/Icons/battery/os_batterycharging_070.c b/src/displayapp/Icons/battery/os_batterycharging_070.c similarity index 100% rename from src/DisplayApp/Icons/battery/os_batterycharging_070.c rename to src/displayapp/Icons/battery/os_batterycharging_070.c diff --git a/src/DisplayApp/Icons/battery/os_batterycharging_070.png b/src/displayapp/Icons/battery/os_batterycharging_070.png similarity index 100% rename from src/DisplayApp/Icons/battery/os_batterycharging_070.png rename to src/displayapp/Icons/battery/os_batterycharging_070.png diff --git a/src/DisplayApp/Icons/battery/os_batterycharging_080.c b/src/displayapp/Icons/battery/os_batterycharging_080.c similarity index 100% rename from src/DisplayApp/Icons/battery/os_batterycharging_080.c rename to src/displayapp/Icons/battery/os_batterycharging_080.c diff --git a/src/DisplayApp/Icons/battery/os_batterycharging_080.png b/src/displayapp/Icons/battery/os_batterycharging_080.png similarity index 100% rename from src/DisplayApp/Icons/battery/os_batterycharging_080.png rename to src/displayapp/Icons/battery/os_batterycharging_080.png diff --git a/src/DisplayApp/Icons/battery/os_batterycharging_090.c b/src/displayapp/Icons/battery/os_batterycharging_090.c similarity index 100% rename from src/DisplayApp/Icons/battery/os_batterycharging_090.c rename to src/displayapp/Icons/battery/os_batterycharging_090.c diff --git a/src/DisplayApp/Icons/battery/os_batterycharging_090.png b/src/displayapp/Icons/battery/os_batterycharging_090.png similarity index 100% rename from src/DisplayApp/Icons/battery/os_batterycharging_090.png rename to src/displayapp/Icons/battery/os_batterycharging_090.png diff --git a/src/DisplayApp/Icons/battery/os_batterycharging_100.c b/src/displayapp/Icons/battery/os_batterycharging_100.c similarity index 100% rename from src/DisplayApp/Icons/battery/os_batterycharging_100.c rename to src/displayapp/Icons/battery/os_batterycharging_100.c diff --git a/src/DisplayApp/Icons/battery/os_batterycharging_100.png b/src/displayapp/Icons/battery/os_batterycharging_100.png similarity index 100% rename from src/DisplayApp/Icons/battery/os_batterycharging_100.png rename to src/displayapp/Icons/battery/os_batterycharging_100.png diff --git a/src/DisplayApp/Icons/bluetooth/ck_os_bt_connected.png b/src/displayapp/Icons/bluetooth/ck_os_bt_connected.png similarity index 100% rename from src/DisplayApp/Icons/bluetooth/ck_os_bt_connected.png rename to src/displayapp/Icons/bluetooth/ck_os_bt_connected.png diff --git a/src/DisplayApp/Icons/bluetooth/ck_os_bt_disconnected.png b/src/displayapp/Icons/bluetooth/ck_os_bt_disconnected.png similarity index 100% rename from src/DisplayApp/Icons/bluetooth/ck_os_bt_disconnected.png rename to src/displayapp/Icons/bluetooth/ck_os_bt_disconnected.png diff --git a/src/DisplayApp/Icons/bluetooth/os_bt_connected.c b/src/displayapp/Icons/bluetooth/os_bt_connected.c similarity index 100% rename from src/DisplayApp/Icons/bluetooth/os_bt_connected.c rename to src/displayapp/Icons/bluetooth/os_bt_connected.c diff --git a/src/DisplayApp/Icons/bluetooth/os_bt_connected.png b/src/displayapp/Icons/bluetooth/os_bt_connected.png similarity index 100% rename from src/DisplayApp/Icons/bluetooth/os_bt_connected.png rename to src/displayapp/Icons/bluetooth/os_bt_connected.png diff --git a/src/DisplayApp/Icons/bluetooth/os_bt_disconnected.c b/src/displayapp/Icons/bluetooth/os_bt_disconnected.c similarity index 100% rename from src/DisplayApp/Icons/bluetooth/os_bt_disconnected.c rename to src/displayapp/Icons/bluetooth/os_bt_disconnected.c diff --git a/src/DisplayApp/Icons/bluetooth/os_bt_disconnected.png b/src/displayapp/Icons/bluetooth/os_bt_disconnected.png similarity index 100% rename from src/DisplayApp/Icons/bluetooth/os_bt_disconnected.png rename to src/displayapp/Icons/bluetooth/os_bt_disconnected.png diff --git a/src/DisplayApp/LittleVgl.cpp b/src/displayapp/LittleVgl.cpp similarity index 100% rename from src/DisplayApp/LittleVgl.cpp rename to src/displayapp/LittleVgl.cpp diff --git a/src/DisplayApp/LittleVgl.h b/src/displayapp/LittleVgl.h similarity index 100% rename from src/DisplayApp/LittleVgl.h rename to src/displayapp/LittleVgl.h diff --git a/src/DisplayApp/Screens/ApplicationList.cpp b/src/displayapp/Screens/ApplicationList.cpp similarity index 100% rename from src/DisplayApp/Screens/ApplicationList.cpp rename to src/displayapp/Screens/ApplicationList.cpp diff --git a/src/DisplayApp/Screens/ApplicationList.h b/src/displayapp/Screens/ApplicationList.h similarity index 100% rename from src/DisplayApp/Screens/ApplicationList.h rename to src/displayapp/Screens/ApplicationList.h diff --git a/src/DisplayApp/Screens/BatteryIcon.cpp b/src/displayapp/Screens/BatteryIcon.cpp similarity index 100% rename from src/DisplayApp/Screens/BatteryIcon.cpp rename to src/displayapp/Screens/BatteryIcon.cpp diff --git a/src/DisplayApp/Screens/BatteryIcon.h b/src/displayapp/Screens/BatteryIcon.h similarity index 100% rename from src/DisplayApp/Screens/BatteryIcon.h rename to src/displayapp/Screens/BatteryIcon.h diff --git a/src/DisplayApp/Screens/BleIcon.cpp b/src/displayapp/Screens/BleIcon.cpp similarity index 100% rename from src/DisplayApp/Screens/BleIcon.cpp rename to src/displayapp/Screens/BleIcon.cpp diff --git a/src/DisplayApp/Screens/BleIcon.h b/src/displayapp/Screens/BleIcon.h similarity index 100% rename from src/DisplayApp/Screens/BleIcon.h rename to src/displayapp/Screens/BleIcon.h diff --git a/src/DisplayApp/Screens/Brightness.cpp b/src/displayapp/Screens/Brightness.cpp similarity index 100% rename from src/DisplayApp/Screens/Brightness.cpp rename to src/displayapp/Screens/Brightness.cpp diff --git a/src/DisplayApp/Screens/Brightness.h b/src/displayapp/Screens/Brightness.h similarity index 100% rename from src/DisplayApp/Screens/Brightness.h rename to src/displayapp/Screens/Brightness.h diff --git a/src/DisplayApp/Screens/Clock.cpp b/src/displayapp/Screens/Clock.cpp similarity index 100% rename from src/DisplayApp/Screens/Clock.cpp rename to src/displayapp/Screens/Clock.cpp diff --git a/src/DisplayApp/Screens/Clock.h b/src/displayapp/Screens/Clock.h similarity index 100% rename from src/DisplayApp/Screens/Clock.h rename to src/displayapp/Screens/Clock.h diff --git a/src/DisplayApp/Screens/DropDownDemo.cpp b/src/displayapp/Screens/DropDownDemo.cpp similarity index 100% rename from src/DisplayApp/Screens/DropDownDemo.cpp rename to src/displayapp/Screens/DropDownDemo.cpp diff --git a/src/DisplayApp/Screens/DropDownDemo.h b/src/displayapp/Screens/DropDownDemo.h similarity index 100% rename from src/DisplayApp/Screens/DropDownDemo.h rename to src/displayapp/Screens/DropDownDemo.h diff --git a/src/DisplayApp/Screens/FirmwareUpdate.cpp b/src/displayapp/Screens/FirmwareUpdate.cpp similarity index 100% rename from src/DisplayApp/Screens/FirmwareUpdate.cpp rename to src/displayapp/Screens/FirmwareUpdate.cpp diff --git a/src/DisplayApp/Screens/FirmwareUpdate.h b/src/displayapp/Screens/FirmwareUpdate.h similarity index 100% rename from src/DisplayApp/Screens/FirmwareUpdate.h rename to src/displayapp/Screens/FirmwareUpdate.h diff --git a/src/DisplayApp/Screens/FirmwareValidation.cpp b/src/displayapp/Screens/FirmwareValidation.cpp similarity index 100% rename from src/DisplayApp/Screens/FirmwareValidation.cpp rename to src/displayapp/Screens/FirmwareValidation.cpp diff --git a/src/DisplayApp/Screens/FirmwareValidation.h b/src/displayapp/Screens/FirmwareValidation.h similarity index 100% rename from src/DisplayApp/Screens/FirmwareValidation.h rename to src/displayapp/Screens/FirmwareValidation.h diff --git a/src/DisplayApp/Screens/Gauge.cpp b/src/displayapp/Screens/Gauge.cpp similarity index 100% rename from src/DisplayApp/Screens/Gauge.cpp rename to src/displayapp/Screens/Gauge.cpp diff --git a/src/DisplayApp/Screens/Gauge.h b/src/displayapp/Screens/Gauge.h similarity index 100% rename from src/DisplayApp/Screens/Gauge.h rename to src/displayapp/Screens/Gauge.h diff --git a/src/DisplayApp/Screens/InfiniPaint.cpp b/src/displayapp/Screens/InfiniPaint.cpp similarity index 100% rename from src/DisplayApp/Screens/InfiniPaint.cpp rename to src/displayapp/Screens/InfiniPaint.cpp diff --git a/src/DisplayApp/Screens/InfiniPaint.h b/src/displayapp/Screens/InfiniPaint.h similarity index 100% rename from src/DisplayApp/Screens/InfiniPaint.h rename to src/displayapp/Screens/InfiniPaint.h diff --git a/src/DisplayApp/Screens/Label.cpp b/src/displayapp/Screens/Label.cpp similarity index 100% rename from src/DisplayApp/Screens/Label.cpp rename to src/displayapp/Screens/Label.cpp diff --git a/src/DisplayApp/Screens/Label.h b/src/displayapp/Screens/Label.h similarity index 100% rename from src/DisplayApp/Screens/Label.h rename to src/displayapp/Screens/Label.h diff --git a/src/DisplayApp/Screens/Meter.cpp b/src/displayapp/Screens/Meter.cpp similarity index 100% rename from src/DisplayApp/Screens/Meter.cpp rename to src/displayapp/Screens/Meter.cpp diff --git a/src/DisplayApp/Screens/Meter.h b/src/displayapp/Screens/Meter.h similarity index 100% rename from src/DisplayApp/Screens/Meter.h rename to src/displayapp/Screens/Meter.h diff --git a/src/DisplayApp/Screens/Modal.cpp b/src/displayapp/Screens/Modal.cpp similarity index 100% rename from src/DisplayApp/Screens/Modal.cpp rename to src/displayapp/Screens/Modal.cpp diff --git a/src/DisplayApp/Screens/Modal.h b/src/displayapp/Screens/Modal.h similarity index 100% rename from src/DisplayApp/Screens/Modal.h rename to src/displayapp/Screens/Modal.h diff --git a/src/DisplayApp/Screens/Music.cpp b/src/displayapp/Screens/Music.cpp similarity index 100% rename from src/DisplayApp/Screens/Music.cpp rename to src/displayapp/Screens/Music.cpp diff --git a/src/DisplayApp/Screens/Music.h b/src/displayapp/Screens/Music.h similarity index 100% rename from src/DisplayApp/Screens/Music.h rename to src/displayapp/Screens/Music.h diff --git a/src/DisplayApp/Screens/Screen.cpp b/src/displayapp/Screens/Screen.cpp similarity index 100% rename from src/DisplayApp/Screens/Screen.cpp rename to src/displayapp/Screens/Screen.cpp diff --git a/src/DisplayApp/Screens/Screen.h b/src/displayapp/Screens/Screen.h similarity index 100% rename from src/DisplayApp/Screens/Screen.h rename to src/displayapp/Screens/Screen.h diff --git a/src/DisplayApp/Screens/ScreenList.h b/src/displayapp/Screens/ScreenList.h similarity index 100% rename from src/DisplayApp/Screens/ScreenList.h rename to src/displayapp/Screens/ScreenList.h diff --git a/src/DisplayApp/Screens/Symbols.h b/src/displayapp/Screens/Symbols.h similarity index 100% rename from src/DisplayApp/Screens/Symbols.h rename to src/displayapp/Screens/Symbols.h diff --git a/src/DisplayApp/Screens/SystemInfo.cpp b/src/displayapp/Screens/SystemInfo.cpp similarity index 100% rename from src/DisplayApp/Screens/SystemInfo.cpp rename to src/displayapp/Screens/SystemInfo.cpp diff --git a/src/DisplayApp/Screens/SystemInfo.h b/src/displayapp/Screens/SystemInfo.h similarity index 100% rename from src/DisplayApp/Screens/SystemInfo.h rename to src/displayapp/Screens/SystemInfo.h diff --git a/src/DisplayApp/Screens/Tab.cpp b/src/displayapp/Screens/Tab.cpp similarity index 100% rename from src/DisplayApp/Screens/Tab.cpp rename to src/displayapp/Screens/Tab.cpp diff --git a/src/DisplayApp/Screens/Tab.h b/src/displayapp/Screens/Tab.h similarity index 100% rename from src/DisplayApp/Screens/Tab.h rename to src/displayapp/Screens/Tab.h diff --git a/src/DisplayApp/Screens/Tile.cpp b/src/displayapp/Screens/Tile.cpp similarity index 100% rename from src/DisplayApp/Screens/Tile.cpp rename to src/displayapp/Screens/Tile.cpp diff --git a/src/DisplayApp/Screens/Tile.h b/src/displayapp/Screens/Tile.h similarity index 100% rename from src/DisplayApp/Screens/Tile.h rename to src/displayapp/Screens/Tile.h diff --git a/src/DisplayApp/TouchEvents.h b/src/displayapp/TouchEvents.h similarity index 100% rename from src/DisplayApp/TouchEvents.h rename to src/displayapp/TouchEvents.h From 4daab2692692d47af24a9384eb0f402821527882 Mon Sep 17 00:00:00 2001 From: Avamander Date: Fri, 2 Oct 2020 21:49:55 +0300 Subject: [PATCH 7/8] Renamed displayapp/Screens to displayapp/screens --- src/CMakeLists.txt | 70 +++++++++---------- .../{Screens => screens}/ApplicationList.cpp | 0 .../{Screens => screens}/ApplicationList.h | 0 .../{Screens => screens}/BatteryIcon.cpp | 0 .../{Screens => screens}/BatteryIcon.h | 0 .../{Screens => screens}/BleIcon.cpp | 0 src/displayapp/{Screens => screens}/BleIcon.h | 0 .../{Screens => screens}/Brightness.cpp | 0 .../{Screens => screens}/Brightness.h | 0 src/displayapp/{Screens => screens}/Clock.cpp | 0 src/displayapp/{Screens => screens}/Clock.h | 0 .../{Screens => screens}/DropDownDemo.cpp | 0 .../{Screens => screens}/DropDownDemo.h | 0 .../{Screens => screens}/FirmwareUpdate.cpp | 0 .../{Screens => screens}/FirmwareUpdate.h | 0 .../FirmwareValidation.cpp | 0 .../{Screens => screens}/FirmwareValidation.h | 0 src/displayapp/{Screens => screens}/Gauge.cpp | 0 src/displayapp/{Screens => screens}/Gauge.h | 0 .../{Screens => screens}/InfiniPaint.cpp | 0 .../{Screens => screens}/InfiniPaint.h | 0 src/displayapp/{Screens => screens}/Label.cpp | 0 src/displayapp/{Screens => screens}/Label.h | 0 src/displayapp/{Screens => screens}/Meter.cpp | 0 src/displayapp/{Screens => screens}/Meter.h | 0 src/displayapp/{Screens => screens}/Modal.cpp | 0 src/displayapp/{Screens => screens}/Modal.h | 0 src/displayapp/{Screens => screens}/Music.cpp | 0 src/displayapp/{Screens => screens}/Music.h | 0 .../{Screens => screens}/Screen.cpp | 0 src/displayapp/{Screens => screens}/Screen.h | 0 .../{Screens => screens}/ScreenList.h | 0 src/displayapp/{Screens => screens}/Symbols.h | 0 .../{Screens => screens}/SystemInfo.cpp | 0 .../{Screens => screens}/SystemInfo.h | 0 src/displayapp/{Screens => screens}/Tab.cpp | 0 src/displayapp/{Screens => screens}/Tab.h | 0 src/displayapp/{Screens => screens}/Tile.cpp | 0 src/displayapp/{Screens => screens}/Tile.h | 0 src/libs/lvgl/src/lv_core/lv_obj.c | 2 +- 40 files changed, 36 insertions(+), 36 deletions(-) rename src/displayapp/{Screens => screens}/ApplicationList.cpp (100%) rename src/displayapp/{Screens => screens}/ApplicationList.h (100%) rename src/displayapp/{Screens => screens}/BatteryIcon.cpp (100%) rename src/displayapp/{Screens => screens}/BatteryIcon.h (100%) rename src/displayapp/{Screens => screens}/BleIcon.cpp (100%) rename src/displayapp/{Screens => screens}/BleIcon.h (100%) rename src/displayapp/{Screens => screens}/Brightness.cpp (100%) rename src/displayapp/{Screens => screens}/Brightness.h (100%) rename src/displayapp/{Screens => screens}/Clock.cpp (100%) rename src/displayapp/{Screens => screens}/Clock.h (100%) rename src/displayapp/{Screens => screens}/DropDownDemo.cpp (100%) rename src/displayapp/{Screens => screens}/DropDownDemo.h (100%) rename src/displayapp/{Screens => screens}/FirmwareUpdate.cpp (100%) rename src/displayapp/{Screens => screens}/FirmwareUpdate.h (100%) rename src/displayapp/{Screens => screens}/FirmwareValidation.cpp (100%) rename src/displayapp/{Screens => screens}/FirmwareValidation.h (100%) rename src/displayapp/{Screens => screens}/Gauge.cpp (100%) rename src/displayapp/{Screens => screens}/Gauge.h (100%) rename src/displayapp/{Screens => screens}/InfiniPaint.cpp (100%) rename src/displayapp/{Screens => screens}/InfiniPaint.h (100%) rename src/displayapp/{Screens => screens}/Label.cpp (100%) rename src/displayapp/{Screens => screens}/Label.h (100%) rename src/displayapp/{Screens => screens}/Meter.cpp (100%) rename src/displayapp/{Screens => screens}/Meter.h (100%) rename src/displayapp/{Screens => screens}/Modal.cpp (100%) rename src/displayapp/{Screens => screens}/Modal.h (100%) rename src/displayapp/{Screens => screens}/Music.cpp (100%) rename src/displayapp/{Screens => screens}/Music.h (100%) rename src/displayapp/{Screens => screens}/Screen.cpp (100%) rename src/displayapp/{Screens => screens}/Screen.h (100%) rename src/displayapp/{Screens => screens}/ScreenList.h (100%) rename src/displayapp/{Screens => screens}/Symbols.h (100%) rename src/displayapp/{Screens => screens}/SystemInfo.cpp (100%) rename src/displayapp/{Screens => screens}/SystemInfo.h (100%) rename src/displayapp/{Screens => screens}/Tab.cpp (100%) rename src/displayapp/{Screens => screens}/Tab.h (100%) rename src/displayapp/{Screens => screens}/Tile.cpp (100%) rename src/displayapp/{Screens => screens}/Tile.h (100%) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 546ce813..9d03e904 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -324,23 +324,23 @@ list(APPEND IMAGE_FILES list(APPEND SOURCE_FILES logging/NrfLogger.cpp displayapp/DisplayApp.cpp - displayapp/Screens/Screen.cpp - displayapp/Screens/Clock.cpp - displayapp/Screens/Tile.cpp - displayapp/Screens/Meter.cpp - displayapp/Screens/Gauge.cpp - displayapp/Screens/InfiniPaint.cpp - displayapp/Screens/DropDownDemo.cpp - displayapp/Screens/Modal.cpp - displayapp/Screens/BatteryIcon.cpp - displayapp/Screens/BleIcon.cpp - displayapp/Screens/Brightness.cpp - displayapp/Screens/SystemInfo.cpp - displayapp/Screens/Label.cpp - displayapp/Screens/FirmwareUpdate.cpp - displayapp/Screens/Music.cpp - displayapp/Screens/FirmwareValidation.cpp - displayapp/Screens/ApplicationList.cpp + displayapp/screens/Screen.cpp + displayapp/screens/Clock.cpp + displayapp/screens/Tile.cpp + displayapp/screens/Meter.cpp + displayapp/screens/Gauge.cpp + displayapp/screens/InfiniPaint.cpp + displayapp/screens/DropDownDemo.cpp + displayapp/screens/Modal.cpp + displayapp/screens/BatteryIcon.cpp + displayapp/screens/BleIcon.cpp + displayapp/screens/Brightness.cpp + displayapp/screens/SystemInfo.cpp + displayapp/screens/Label.cpp + displayapp/screens/FirmwareUpdate.cpp + displayapp/screens/Music.cpp + displayapp/screens/FirmwareValidation.cpp + displayapp/screens/ApplicationList.cpp main.cpp drivers/St7789.cpp drivers/SpiNorFlash.cpp @@ -401,23 +401,23 @@ set(INCLUDE_FILES logging/NrfLogger.h displayapp/DisplayApp.h displayapp/TouchEvents.h - displayapp/Screens/Screen.h - displayapp/Screens/Clock.h - displayapp/Screens/Tile.h - displayapp/Screens/Meter.h - displayapp/Screens/Gauge.h - displayapp/Screens/InfiniPaint.h - displayapp/Screens/DropDownDemo.h - displayapp/Screens/Modal.h - displayapp/Screens/BatteryIcon.h - displayapp/Screens/BleIcon.cpp - displayapp/Screens/Brightness.h - displayapp/Screens/SystemInfo.h - displayapp/Screens/ScreenList.h - displayapp/Screens/Label.h - displayapp/Screens/FirmwareUpdate.h - displayapp/Screens/FirmwareValidation.h - displayapp/Screens/ApplicationList.h + displayapp/screens/Screen.h + displayapp/screens/Clock.h + displayapp/screens/Tile.h + displayapp/screens/Meter.h + displayapp/screens/Gauge.h + displayapp/screens/InfiniPaint.h + displayapp/screens/DropDownDemo.h + displayapp/screens/Modal.h + displayapp/screens/BatteryIcon.h + displayapp/screens/BleIcon.cpp + displayapp/screens/Brightness.h + displayapp/screens/SystemInfo.h + displayapp/screens/ScreenList.h + displayapp/screens/Label.h + displayapp/screens/FirmwareUpdate.h + displayapp/screens/FirmwareValidation.h + displayapp/screens/ApplicationList.h displayapp/Apps.h drivers/St7789.h drivers/SpiNorFlash.h @@ -453,7 +453,7 @@ set(INCLUDE_FILES displayapp/LittleVgl.h systemtask/SystemTask.h systemtask/SystemMonitor.h - displayapp/Screens/Symbols.h + displayapp/screens/Symbols.h drivers/TwiMaster.h ) diff --git a/src/displayapp/Screens/ApplicationList.cpp b/src/displayapp/screens/ApplicationList.cpp similarity index 100% rename from src/displayapp/Screens/ApplicationList.cpp rename to src/displayapp/screens/ApplicationList.cpp diff --git a/src/displayapp/Screens/ApplicationList.h b/src/displayapp/screens/ApplicationList.h similarity index 100% rename from src/displayapp/Screens/ApplicationList.h rename to src/displayapp/screens/ApplicationList.h diff --git a/src/displayapp/Screens/BatteryIcon.cpp b/src/displayapp/screens/BatteryIcon.cpp similarity index 100% rename from src/displayapp/Screens/BatteryIcon.cpp rename to src/displayapp/screens/BatteryIcon.cpp diff --git a/src/displayapp/Screens/BatteryIcon.h b/src/displayapp/screens/BatteryIcon.h similarity index 100% rename from src/displayapp/Screens/BatteryIcon.h rename to src/displayapp/screens/BatteryIcon.h diff --git a/src/displayapp/Screens/BleIcon.cpp b/src/displayapp/screens/BleIcon.cpp similarity index 100% rename from src/displayapp/Screens/BleIcon.cpp rename to src/displayapp/screens/BleIcon.cpp diff --git a/src/displayapp/Screens/BleIcon.h b/src/displayapp/screens/BleIcon.h similarity index 100% rename from src/displayapp/Screens/BleIcon.h rename to src/displayapp/screens/BleIcon.h diff --git a/src/displayapp/Screens/Brightness.cpp b/src/displayapp/screens/Brightness.cpp similarity index 100% rename from src/displayapp/Screens/Brightness.cpp rename to src/displayapp/screens/Brightness.cpp diff --git a/src/displayapp/Screens/Brightness.h b/src/displayapp/screens/Brightness.h similarity index 100% rename from src/displayapp/Screens/Brightness.h rename to src/displayapp/screens/Brightness.h diff --git a/src/displayapp/Screens/Clock.cpp b/src/displayapp/screens/Clock.cpp similarity index 100% rename from src/displayapp/Screens/Clock.cpp rename to src/displayapp/screens/Clock.cpp diff --git a/src/displayapp/Screens/Clock.h b/src/displayapp/screens/Clock.h similarity index 100% rename from src/displayapp/Screens/Clock.h rename to src/displayapp/screens/Clock.h diff --git a/src/displayapp/Screens/DropDownDemo.cpp b/src/displayapp/screens/DropDownDemo.cpp similarity index 100% rename from src/displayapp/Screens/DropDownDemo.cpp rename to src/displayapp/screens/DropDownDemo.cpp diff --git a/src/displayapp/Screens/DropDownDemo.h b/src/displayapp/screens/DropDownDemo.h similarity index 100% rename from src/displayapp/Screens/DropDownDemo.h rename to src/displayapp/screens/DropDownDemo.h diff --git a/src/displayapp/Screens/FirmwareUpdate.cpp b/src/displayapp/screens/FirmwareUpdate.cpp similarity index 100% rename from src/displayapp/Screens/FirmwareUpdate.cpp rename to src/displayapp/screens/FirmwareUpdate.cpp diff --git a/src/displayapp/Screens/FirmwareUpdate.h b/src/displayapp/screens/FirmwareUpdate.h similarity index 100% rename from src/displayapp/Screens/FirmwareUpdate.h rename to src/displayapp/screens/FirmwareUpdate.h diff --git a/src/displayapp/Screens/FirmwareValidation.cpp b/src/displayapp/screens/FirmwareValidation.cpp similarity index 100% rename from src/displayapp/Screens/FirmwareValidation.cpp rename to src/displayapp/screens/FirmwareValidation.cpp diff --git a/src/displayapp/Screens/FirmwareValidation.h b/src/displayapp/screens/FirmwareValidation.h similarity index 100% rename from src/displayapp/Screens/FirmwareValidation.h rename to src/displayapp/screens/FirmwareValidation.h diff --git a/src/displayapp/Screens/Gauge.cpp b/src/displayapp/screens/Gauge.cpp similarity index 100% rename from src/displayapp/Screens/Gauge.cpp rename to src/displayapp/screens/Gauge.cpp diff --git a/src/displayapp/Screens/Gauge.h b/src/displayapp/screens/Gauge.h similarity index 100% rename from src/displayapp/Screens/Gauge.h rename to src/displayapp/screens/Gauge.h diff --git a/src/displayapp/Screens/InfiniPaint.cpp b/src/displayapp/screens/InfiniPaint.cpp similarity index 100% rename from src/displayapp/Screens/InfiniPaint.cpp rename to src/displayapp/screens/InfiniPaint.cpp diff --git a/src/displayapp/Screens/InfiniPaint.h b/src/displayapp/screens/InfiniPaint.h similarity index 100% rename from src/displayapp/Screens/InfiniPaint.h rename to src/displayapp/screens/InfiniPaint.h diff --git a/src/displayapp/Screens/Label.cpp b/src/displayapp/screens/Label.cpp similarity index 100% rename from src/displayapp/Screens/Label.cpp rename to src/displayapp/screens/Label.cpp diff --git a/src/displayapp/Screens/Label.h b/src/displayapp/screens/Label.h similarity index 100% rename from src/displayapp/Screens/Label.h rename to src/displayapp/screens/Label.h diff --git a/src/displayapp/Screens/Meter.cpp b/src/displayapp/screens/Meter.cpp similarity index 100% rename from src/displayapp/Screens/Meter.cpp rename to src/displayapp/screens/Meter.cpp diff --git a/src/displayapp/Screens/Meter.h b/src/displayapp/screens/Meter.h similarity index 100% rename from src/displayapp/Screens/Meter.h rename to src/displayapp/screens/Meter.h diff --git a/src/displayapp/Screens/Modal.cpp b/src/displayapp/screens/Modal.cpp similarity index 100% rename from src/displayapp/Screens/Modal.cpp rename to src/displayapp/screens/Modal.cpp diff --git a/src/displayapp/Screens/Modal.h b/src/displayapp/screens/Modal.h similarity index 100% rename from src/displayapp/Screens/Modal.h rename to src/displayapp/screens/Modal.h diff --git a/src/displayapp/Screens/Music.cpp b/src/displayapp/screens/Music.cpp similarity index 100% rename from src/displayapp/Screens/Music.cpp rename to src/displayapp/screens/Music.cpp diff --git a/src/displayapp/Screens/Music.h b/src/displayapp/screens/Music.h similarity index 100% rename from src/displayapp/Screens/Music.h rename to src/displayapp/screens/Music.h diff --git a/src/displayapp/Screens/Screen.cpp b/src/displayapp/screens/Screen.cpp similarity index 100% rename from src/displayapp/Screens/Screen.cpp rename to src/displayapp/screens/Screen.cpp diff --git a/src/displayapp/Screens/Screen.h b/src/displayapp/screens/Screen.h similarity index 100% rename from src/displayapp/Screens/Screen.h rename to src/displayapp/screens/Screen.h diff --git a/src/displayapp/Screens/ScreenList.h b/src/displayapp/screens/ScreenList.h similarity index 100% rename from src/displayapp/Screens/ScreenList.h rename to src/displayapp/screens/ScreenList.h diff --git a/src/displayapp/Screens/Symbols.h b/src/displayapp/screens/Symbols.h similarity index 100% rename from src/displayapp/Screens/Symbols.h rename to src/displayapp/screens/Symbols.h diff --git a/src/displayapp/Screens/SystemInfo.cpp b/src/displayapp/screens/SystemInfo.cpp similarity index 100% rename from src/displayapp/Screens/SystemInfo.cpp rename to src/displayapp/screens/SystemInfo.cpp diff --git a/src/displayapp/Screens/SystemInfo.h b/src/displayapp/screens/SystemInfo.h similarity index 100% rename from src/displayapp/Screens/SystemInfo.h rename to src/displayapp/screens/SystemInfo.h diff --git a/src/displayapp/Screens/Tab.cpp b/src/displayapp/screens/Tab.cpp similarity index 100% rename from src/displayapp/Screens/Tab.cpp rename to src/displayapp/screens/Tab.cpp diff --git a/src/displayapp/Screens/Tab.h b/src/displayapp/screens/Tab.h similarity index 100% rename from src/displayapp/Screens/Tab.h rename to src/displayapp/screens/Tab.h diff --git a/src/displayapp/Screens/Tile.cpp b/src/displayapp/screens/Tile.cpp similarity index 100% rename from src/displayapp/Screens/Tile.cpp rename to src/displayapp/screens/Tile.cpp diff --git a/src/displayapp/Screens/Tile.h b/src/displayapp/screens/Tile.h similarity index 100% rename from src/displayapp/Screens/Tile.h rename to src/displayapp/screens/Tile.h diff --git a/src/libs/lvgl/src/lv_core/lv_obj.c b/src/libs/lvgl/src/lv_core/lv_obj.c index 510a8706..511e72db 100644 --- a/src/libs/lvgl/src/lv_core/lv_obj.c +++ b/src/libs/lvgl/src/lv_core/lv_obj.c @@ -163,7 +163,7 @@ lv_obj_t * lv_obj_create(lv_obj_t * parent, const lv_obj_t * copy) LV_ASSERT_MEM(new_obj); if(new_obj == NULL) return NULL; - new_obj->par = NULL; /*Screens has no a parent*/ + new_obj->par = NULL; /*screens has no a parent*/ lv_ll_init(&(new_obj->child_ll), sizeof(lv_obj_t)); /*Set the callbacks*/ From 6c86d1d9d706706fcb6f214aba8259e61ed68755 Mon Sep 17 00:00:00 2001 From: Avamander Date: Fri, 2 Oct 2020 22:16:48 +0300 Subject: [PATCH 8/8] Fixed all the includes that were broken due to the renames --- README.md | 2 +- src/CMakeLists.txt | 116 +++++++++--------- .../BatteryController.cpp | 0 .../{Battery => battery}/BatteryController.h | 0 .../{Ble => ble}/AlertNotificationClient.cpp | 2 +- .../{Ble => ble}/AlertNotificationClient.h | 0 .../{Ble => ble}/AlertNotificationService.cpp | 2 +- .../{Ble => ble}/AlertNotificationService.h | 0 .../BatteryInformationService.cpp | 2 +- .../{Ble => ble}/BatteryInformationService.h | 0 src/components/{Ble => ble}/BleController.cpp | 0 src/components/{Ble => ble}/BleController.h | 0 .../{Ble => ble}/CurrentTimeClient.cpp | 0 .../{Ble => ble}/CurrentTimeClient.h | 3 +- .../{Ble => ble}/CurrentTimeService.cpp | 0 .../{Ble => ble}/CurrentTimeService.h | 3 +- .../{Ble => ble}/DeviceInformationService.cpp | 0 .../{Ble => ble}/DeviceInformationService.h | 0 src/components/{Ble => ble}/DfuService.cpp | 5 +- src/components/{Ble => ble}/DfuService.h | 0 .../{Ble => ble}/ImmediateAlertService.cpp | 2 +- .../{Ble => ble}/ImmediateAlertService.h | 0 src/components/{Ble => ble}/MusicService.cpp | 2 +- src/components/{Ble => ble}/MusicService.h | 0 .../{Ble => ble}/NimbleController.cpp | 6 +- .../{Ble => ble}/NimbleController.h | 1 + .../{Ble => ble}/NotificationManager.cpp | 0 .../{Ble => ble}/NotificationManager.h | 0 .../BrightnessController.cpp | 0 .../BrightnessController.h | 0 .../DateTimeController.cpp | 0 .../DateTimeController.h | 0 .../FirmwareValidator.cpp | 0 .../FirmwareValidator.h | 0 src/components/{Gfx => gfx}/Gfx.cpp | 0 src/components/{Gfx => gfx}/Gfx.h | 0 src/displayapp/DisplayApp.cpp | 31 ++--- src/displayapp/DisplayApp.h | 20 +-- src/displayapp/{Fonts => fonts}/Readme.md | 0 .../{Fonts => fonts}/jetbrains_mono_bold_20.c | 0 .../jetbrains_mono_extrabold_compressed.c | 0 .../{Icons => icons}/battery/os_battery_005.c | 0 .../battery/os_battery_005.png | Bin .../{Icons => icons}/battery/os_battery_010.c | 0 .../battery/os_battery_010.png | Bin .../{Icons => icons}/battery/os_battery_020.c | 0 .../battery/os_battery_020.png | Bin .../{Icons => icons}/battery/os_battery_030.c | 0 .../battery/os_battery_030.png | Bin .../{Icons => icons}/battery/os_battery_040.c | 0 .../battery/os_battery_040.png | Bin .../{Icons => icons}/battery/os_battery_050.c | 0 .../battery/os_battery_050.png | Bin .../{Icons => icons}/battery/os_battery_060.c | 0 .../battery/os_battery_060.png | Bin .../{Icons => icons}/battery/os_battery_070.c | 0 .../battery/os_battery_070.png | Bin .../{Icons => icons}/battery/os_battery_080.c | 0 .../battery/os_battery_080.png | Bin .../{Icons => icons}/battery/os_battery_090.c | 0 .../battery/os_battery_090.png | Bin .../{Icons => icons}/battery/os_battery_100.c | 0 .../battery/os_battery_100.png | Bin .../battery/os_battery_error.c | 0 .../battery/os_battery_error.png | Bin .../battery/os_batterycharging_005.c | 0 .../battery/os_batterycharging_005.png | Bin .../battery/os_batterycharging_010.c | 0 .../battery/os_batterycharging_010.png | Bin .../battery/os_batterycharging_020.c | 0 .../battery/os_batterycharging_020.png | Bin .../battery/os_batterycharging_030.c | 0 .../battery/os_batterycharging_030.png | Bin .../battery/os_batterycharging_040.c | 0 .../battery/os_batterycharging_040.png | Bin .../battery/os_batterycharging_050.c | 0 .../battery/os_batterycharging_050.png | Bin .../battery/os_batterycharging_060.c | 0 .../battery/os_batterycharging_060.png | Bin .../battery/os_batterycharging_070.c | 0 .../battery/os_batterycharging_070.png | Bin .../battery/os_batterycharging_080.c | 0 .../battery/os_batterycharging_080.png | Bin .../battery/os_batterycharging_090.c | 0 .../battery/os_batterycharging_090.png | Bin .../battery/os_batterycharging_100.c | 0 .../battery/os_batterycharging_100.png | Bin .../bluetooth/ck_os_bt_connected.png | Bin .../bluetooth/ck_os_bt_disconnected.png | Bin .../bluetooth/os_bt_connected.c | 0 .../bluetooth/os_bt_connected.png | Bin .../bluetooth/os_bt_disconnected.c | 0 .../bluetooth/os_bt_disconnected.png | Bin src/displayapp/screens/ApplicationList.cpp | 2 +- src/displayapp/screens/ApplicationList.h | 5 +- src/displayapp/screens/Brightness.h | 2 +- src/displayapp/screens/Clock.cpp | 3 +- src/displayapp/screens/Clock.h | 5 +- src/displayapp/screens/FirmwareUpdate.h | 3 +- src/displayapp/screens/FirmwareValidation.cpp | 2 +- src/displayapp/screens/InfiniPaint.h | 2 +- src/displayapp/screens/Music.h | 11 +- src/displayapp/screens/ScreenList.h | 2 +- src/displayapp/screens/SystemInfo.cpp | 2 +- src/displayapp/screens/SystemInfo.h | 5 +- src/displayapp/screens/Tile.cpp | 3 +- src/displayapp/screens/Tile.h | 2 +- src/main.cpp | 24 ++-- src/systemtask/SystemTask.cpp | 6 +- src/systemtask/SystemTask.h | 9 +- 110 files changed, 149 insertions(+), 136 deletions(-) rename src/components/{Battery => battery}/BatteryController.cpp (100%) rename src/components/{Battery => battery}/BatteryController.h (100%) rename src/components/{Ble => ble}/AlertNotificationClient.cpp (99%) rename src/components/{Ble => ble}/AlertNotificationClient.h (100%) rename src/components/{Ble => ble}/AlertNotificationService.cpp (98%) rename src/components/{Ble => ble}/AlertNotificationService.h (100%) rename src/components/{Ble => ble}/BatteryInformationService.cpp (97%) rename src/components/{Ble => ble}/BatteryInformationService.h (100%) rename src/components/{Ble => ble}/BleController.cpp (100%) rename src/components/{Ble => ble}/BleController.h (100%) rename src/components/{Ble => ble}/CurrentTimeClient.cpp (100%) rename src/components/{Ble => ble}/CurrentTimeClient.h (97%) rename src/components/{Ble => ble}/CurrentTimeService.cpp (100%) rename src/components/{Ble => ble}/CurrentTimeService.h (95%) rename src/components/{Ble => ble}/DeviceInformationService.cpp (100%) rename src/components/{Ble => ble}/DeviceInformationService.h (100%) rename src/components/{Ble => ble}/DfuService.cpp (99%) rename src/components/{Ble => ble}/DfuService.h (100%) rename src/components/{Ble => ble}/ImmediateAlertService.cpp (98%) rename src/components/{Ble => ble}/ImmediateAlertService.h (100%) rename src/components/{Ble => ble}/MusicService.cpp (99%) rename src/components/{Ble => ble}/MusicService.h (100%) rename src/components/{Ble => ble}/NimbleController.cpp (99%) rename src/components/{Ble => ble}/NimbleController.h (99%) rename src/components/{Ble => ble}/NotificationManager.cpp (100%) rename src/components/{Ble => ble}/NotificationManager.h (100%) rename src/components/{Brightness => brightness}/BrightnessController.cpp (100%) rename src/components/{Brightness => brightness}/BrightnessController.h (100%) rename src/components/{DateTime => datetime}/DateTimeController.cpp (100%) rename src/components/{DateTime => datetime}/DateTimeController.h (100%) rename src/components/{FirmwareValidator => firmwarevalidator}/FirmwareValidator.cpp (100%) rename src/components/{FirmwareValidator => firmwarevalidator}/FirmwareValidator.h (100%) rename src/components/{Gfx => gfx}/Gfx.cpp (100%) rename src/components/{Gfx => gfx}/Gfx.h (100%) rename src/displayapp/{Fonts => fonts}/Readme.md (100%) rename src/displayapp/{Fonts => fonts}/jetbrains_mono_bold_20.c (100%) rename src/displayapp/{Fonts => fonts}/jetbrains_mono_extrabold_compressed.c (100%) rename src/displayapp/{Icons => icons}/battery/os_battery_005.c (100%) rename src/displayapp/{Icons => icons}/battery/os_battery_005.png (100%) rename src/displayapp/{Icons => icons}/battery/os_battery_010.c (100%) rename src/displayapp/{Icons => icons}/battery/os_battery_010.png (100%) rename src/displayapp/{Icons => icons}/battery/os_battery_020.c (100%) rename src/displayapp/{Icons => icons}/battery/os_battery_020.png (100%) rename src/displayapp/{Icons => icons}/battery/os_battery_030.c (100%) rename src/displayapp/{Icons => icons}/battery/os_battery_030.png (100%) rename src/displayapp/{Icons => icons}/battery/os_battery_040.c (100%) rename src/displayapp/{Icons => icons}/battery/os_battery_040.png (100%) rename src/displayapp/{Icons => icons}/battery/os_battery_050.c (100%) rename src/displayapp/{Icons => icons}/battery/os_battery_050.png (100%) rename src/displayapp/{Icons => icons}/battery/os_battery_060.c (100%) rename src/displayapp/{Icons => icons}/battery/os_battery_060.png (100%) rename src/displayapp/{Icons => icons}/battery/os_battery_070.c (100%) rename src/displayapp/{Icons => icons}/battery/os_battery_070.png (100%) rename src/displayapp/{Icons => icons}/battery/os_battery_080.c (100%) rename src/displayapp/{Icons => icons}/battery/os_battery_080.png (100%) rename src/displayapp/{Icons => icons}/battery/os_battery_090.c (100%) rename src/displayapp/{Icons => icons}/battery/os_battery_090.png (100%) rename src/displayapp/{Icons => icons}/battery/os_battery_100.c (100%) rename src/displayapp/{Icons => icons}/battery/os_battery_100.png (100%) rename src/displayapp/{Icons => icons}/battery/os_battery_error.c (100%) rename src/displayapp/{Icons => icons}/battery/os_battery_error.png (100%) rename src/displayapp/{Icons => icons}/battery/os_batterycharging_005.c (100%) rename src/displayapp/{Icons => icons}/battery/os_batterycharging_005.png (100%) rename src/displayapp/{Icons => icons}/battery/os_batterycharging_010.c (100%) rename src/displayapp/{Icons => icons}/battery/os_batterycharging_010.png (100%) rename src/displayapp/{Icons => icons}/battery/os_batterycharging_020.c (100%) rename src/displayapp/{Icons => icons}/battery/os_batterycharging_020.png (100%) rename src/displayapp/{Icons => icons}/battery/os_batterycharging_030.c (100%) rename src/displayapp/{Icons => icons}/battery/os_batterycharging_030.png (100%) rename src/displayapp/{Icons => icons}/battery/os_batterycharging_040.c (100%) rename src/displayapp/{Icons => icons}/battery/os_batterycharging_040.png (100%) rename src/displayapp/{Icons => icons}/battery/os_batterycharging_050.c (100%) rename src/displayapp/{Icons => icons}/battery/os_batterycharging_050.png (100%) rename src/displayapp/{Icons => icons}/battery/os_batterycharging_060.c (100%) rename src/displayapp/{Icons => icons}/battery/os_batterycharging_060.png (100%) rename src/displayapp/{Icons => icons}/battery/os_batterycharging_070.c (100%) rename src/displayapp/{Icons => icons}/battery/os_batterycharging_070.png (100%) rename src/displayapp/{Icons => icons}/battery/os_batterycharging_080.c (100%) rename src/displayapp/{Icons => icons}/battery/os_batterycharging_080.png (100%) rename src/displayapp/{Icons => icons}/battery/os_batterycharging_090.c (100%) rename src/displayapp/{Icons => icons}/battery/os_batterycharging_090.png (100%) rename src/displayapp/{Icons => icons}/battery/os_batterycharging_100.c (100%) rename src/displayapp/{Icons => icons}/battery/os_batterycharging_100.png (100%) rename src/displayapp/{Icons => icons}/bluetooth/ck_os_bt_connected.png (100%) rename src/displayapp/{Icons => icons}/bluetooth/ck_os_bt_disconnected.png (100%) rename src/displayapp/{Icons => icons}/bluetooth/os_bt_connected.c (100%) rename src/displayapp/{Icons => icons}/bluetooth/os_bt_connected.png (100%) rename src/displayapp/{Icons => icons}/bluetooth/os_bt_disconnected.c (100%) rename src/displayapp/{Icons => icons}/bluetooth/os_bt_disconnected.png (100%) diff --git a/README.md b/README.md index 3a1b7b56..a3a589f7 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ As of now, here is the list of achievements of this project: ## Documentation ### Develop - - [Generate the fonts and symbols](src/DisplayApp/Fonts/Readme.md) + - [Generate the fonts and symbols](src/displayapp/fonts/Readme.md) ### Build, flash and debug - [Project branches](doc/branches.md) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 9d03e904..2f38ec58 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -292,33 +292,33 @@ set(LVGL_SRC ) list(APPEND IMAGE_FILES - displayapp/Icons/battery/os_battery_error.c - displayapp/Icons/battery/os_battery_100.c - displayapp/Icons/battery/os_battery_090.c - displayapp/Icons/battery/os_battery_080.c - displayapp/Icons/battery/os_battery_070.c - displayapp/Icons/battery/os_battery_060.c - displayapp/Icons/battery/os_battery_050.c - displayapp/Icons/battery/os_battery_040.c - displayapp/Icons/battery/os_battery_030.c - displayapp/Icons/battery/os_battery_020.c - displayapp/Icons/battery/os_battery_010.c - displayapp/Icons/battery/os_battery_005.c + displayapp/icons/battery/os_battery_error.c + displayapp/icons/battery/os_battery_100.c + displayapp/icons/battery/os_battery_090.c + displayapp/icons/battery/os_battery_080.c + displayapp/icons/battery/os_battery_070.c + displayapp/icons/battery/os_battery_060.c + displayapp/icons/battery/os_battery_050.c + displayapp/icons/battery/os_battery_040.c + displayapp/icons/battery/os_battery_030.c + displayapp/icons/battery/os_battery_020.c + displayapp/icons/battery/os_battery_010.c + displayapp/icons/battery/os_battery_005.c - displayapp/Icons/battery/os_batterycharging_100.c - displayapp/Icons/battery/os_batterycharging_090.c - displayapp/Icons/battery/os_batterycharging_080.c - displayapp/Icons/battery/os_batterycharging_070.c - displayapp/Icons/battery/os_batterycharging_060.c - displayapp/Icons/battery/os_batterycharging_050.c - displayapp/Icons/battery/os_batterycharging_040.c - displayapp/Icons/battery/os_batterycharging_030.c - displayapp/Icons/battery/os_batterycharging_020.c - displayapp/Icons/battery/os_batterycharging_010.c - displayapp/Icons/battery/os_batterycharging_005.c + displayapp/icons/battery/os_batterycharging_100.c + displayapp/icons/battery/os_batterycharging_090.c + displayapp/icons/battery/os_batterycharging_080.c + displayapp/icons/battery/os_batterycharging_070.c + displayapp/icons/battery/os_batterycharging_060.c + displayapp/icons/battery/os_batterycharging_050.c + displayapp/icons/battery/os_batterycharging_040.c + displayapp/icons/battery/os_batterycharging_030.c + displayapp/icons/battery/os_batterycharging_020.c + displayapp/icons/battery/os_batterycharging_010.c + displayapp/icons/battery/os_batterycharging_005.c - displayapp/Icons/bluetooth/os_bt_connected.c - displayapp/Icons/bluetooth/os_bt_disconnected.c + displayapp/icons/bluetooth/os_bt_connected.c + displayapp/icons/bluetooth/os_bt_disconnected.c ) list(APPEND SOURCE_FILES @@ -349,30 +349,30 @@ list(APPEND SOURCE_FILES drivers/Watchdog.cpp drivers/DebugPins.cpp drivers/InternalFlash.cpp - components/Battery/BatteryController.cpp - components/Ble/BleController.cpp - components/Ble/NotificationManager.cpp - components/DateTime/DateTimeController.cpp - components/Brightness/BrightnessController.cpp - components/Ble/NimbleController.cpp - components/Ble/DeviceInformationService.cpp - components/Ble/CurrentTimeClient.cpp - components/Ble/AlertNotificationClient.cpp - components/Ble/DfuService.cpp - components/Ble/CurrentTimeService.cpp - components/Ble/AlertNotificationService.cpp - components/Ble/MusicService.cpp - components/Ble/BatteryInformationService.cpp - components/Ble/ImmediateAlertService.cpp - components/FirmwareValidator/FirmwareValidator.cpp + components/battery/BatteryController.cpp + components/ble/BleController.cpp + components/ble/NotificationManager.cpp + components/datetime/DateTimeController.cpp + components/brightness/BrightnessController.cpp + components/ble/NimbleController.cpp + components/ble/DeviceInformationService.cpp + components/ble/CurrentTimeClient.cpp + components/ble/AlertNotificationClient.cpp + components/ble/DfuService.cpp + components/ble/CurrentTimeService.cpp + components/ble/AlertNotificationService.cpp + components/ble/MusicService.cpp + components/ble/BatteryInformationService.cpp + components/ble/ImmediateAlertService.cpp + components/firmwarevalidator/FirmwareValidator.cpp drivers/Cst816s.cpp FreeRTOS/port.c FreeRTOS/port_cmsis_systick.c FreeRTOS/port_cmsis.c displayapp/LittleVgl.cpp - displayapp/Fonts/jetbrains_mono_extrabold_compressed.c - displayapp/Fonts/jetbrains_mono_bold_20.c + displayapp/fonts/jetbrains_mono_extrabold_compressed.c + displayapp/fonts/jetbrains_mono_bold_20.c systemtask/SystemTask.cpp drivers/TwiMaster.cpp @@ -389,9 +389,9 @@ list(APPEND GRAPHICS_SOURCE_FILES drivers/Spi.cpp logging/NrfLogger.cpp - components/Gfx/Gfx.cpp + components/gfx/Gfx.cpp drivers/St7789.cpp - components/Brightness/BrightnessController.cpp + components/brightness/BrightnessController.cpp graphics.cpp ) @@ -426,19 +426,19 @@ set(INCLUDE_FILES drivers/Watchdog.h drivers/DebugPins.h drivers/InternalFlash.h - components/Battery/BatteryController.h - components/Ble/BleController.h - components/Ble/NotificationManager.h - components/DateTime/DateTimeController.h - components/Brightness/BrightnessController.h - components/Ble/NimbleController.h - components/Ble/DeviceInformationService.h - components/Ble/CurrentTimeClient.h - components/Ble/AlertNotificationClient.h - components/Ble/DfuService.h - components/FirmwareValidator/FirmwareValidator.h - components/Ble/BatteryInformationService.h - components/Ble/ImmediateAlertService.h + components/battery/BatteryController.h + components/ble/BleController.h + components/ble/NotificationManager.h + components/datetime/DateTimeController.h + components/brightness/BrightnessController.h + components/ble/NimbleController.h + components/ble/DeviceInformationService.h + components/ble/CurrentTimeClient.h + components/ble/AlertNotificationClient.h + components/ble/DfuService.h + components/firmwarevalidator/FirmwareValidator.h + components/ble/BatteryInformationService.h + components/ble/ImmediateAlertService.h drivers/Cst816s.h FreeRTOS/portmacro.h FreeRTOS/portmacro_cmsis.h diff --git a/src/components/Battery/BatteryController.cpp b/src/components/battery/BatteryController.cpp similarity index 100% rename from src/components/Battery/BatteryController.cpp rename to src/components/battery/BatteryController.cpp diff --git a/src/components/Battery/BatteryController.h b/src/components/battery/BatteryController.h similarity index 100% rename from src/components/Battery/BatteryController.h rename to src/components/battery/BatteryController.h diff --git a/src/components/Ble/AlertNotificationClient.cpp b/src/components/ble/AlertNotificationClient.cpp similarity index 99% rename from src/components/Ble/AlertNotificationClient.cpp rename to src/components/ble/AlertNotificationClient.cpp index 3e4b495f..ddc72967 100644 --- a/src/components/Ble/AlertNotificationClient.cpp +++ b/src/components/ble/AlertNotificationClient.cpp @@ -1,4 +1,4 @@ -#include +#include #include "NotificationManager.h" #include "AlertNotificationClient.h" diff --git a/src/components/Ble/AlertNotificationClient.h b/src/components/ble/AlertNotificationClient.h similarity index 100% rename from src/components/Ble/AlertNotificationClient.h rename to src/components/ble/AlertNotificationClient.h diff --git a/src/components/Ble/AlertNotificationService.cpp b/src/components/ble/AlertNotificationService.cpp similarity index 98% rename from src/components/Ble/AlertNotificationService.cpp rename to src/components/ble/AlertNotificationService.cpp index ce2f7dd7..9a9b535d 100644 --- a/src/components/Ble/AlertNotificationService.cpp +++ b/src/components/ble/AlertNotificationService.cpp @@ -1,7 +1,7 @@ #include #include "NotificationManager.h" -#include +#include #include "AlertNotificationService.h" #include diff --git a/src/components/Ble/AlertNotificationService.h b/src/components/ble/AlertNotificationService.h similarity index 100% rename from src/components/Ble/AlertNotificationService.h rename to src/components/ble/AlertNotificationService.h diff --git a/src/components/Ble/BatteryInformationService.cpp b/src/components/ble/BatteryInformationService.cpp similarity index 97% rename from src/components/Ble/BatteryInformationService.cpp rename to src/components/ble/BatteryInformationService.cpp index c86830b8..f7d895c2 100644 --- a/src/components/Ble/BatteryInformationService.cpp +++ b/src/components/ble/BatteryInformationService.cpp @@ -1,5 +1,5 @@ #include "BatteryInformationService.h" -#include "../Battery/BatteryController.h" +#include "components/battery/BatteryController.h" using namespace Pinetime::Controllers; diff --git a/src/components/Ble/BatteryInformationService.h b/src/components/ble/BatteryInformationService.h similarity index 100% rename from src/components/Ble/BatteryInformationService.h rename to src/components/ble/BatteryInformationService.h diff --git a/src/components/Ble/BleController.cpp b/src/components/ble/BleController.cpp similarity index 100% rename from src/components/Ble/BleController.cpp rename to src/components/ble/BleController.cpp diff --git a/src/components/Ble/BleController.h b/src/components/ble/BleController.h similarity index 100% rename from src/components/Ble/BleController.h rename to src/components/ble/BleController.h diff --git a/src/components/Ble/CurrentTimeClient.cpp b/src/components/ble/CurrentTimeClient.cpp similarity index 100% rename from src/components/Ble/CurrentTimeClient.cpp rename to src/components/ble/CurrentTimeClient.cpp diff --git a/src/components/Ble/CurrentTimeClient.h b/src/components/ble/CurrentTimeClient.h similarity index 97% rename from src/components/Ble/CurrentTimeClient.h rename to src/components/ble/CurrentTimeClient.h index fabcdaca..639ec831 100644 --- a/src/components/Ble/CurrentTimeClient.h +++ b/src/components/ble/CurrentTimeClient.h @@ -1,7 +1,8 @@ #pragma once #include #include -#include + +#include "components/datetime/DateTimeController.h" #include namespace Pinetime { diff --git a/src/components/Ble/CurrentTimeService.cpp b/src/components/ble/CurrentTimeService.cpp similarity index 100% rename from src/components/Ble/CurrentTimeService.cpp rename to src/components/ble/CurrentTimeService.cpp diff --git a/src/components/Ble/CurrentTimeService.h b/src/components/ble/CurrentTimeService.h similarity index 95% rename from src/components/Ble/CurrentTimeService.h rename to src/components/ble/CurrentTimeService.h index 58bc5ba6..a6be9647 100644 --- a/src/components/Ble/CurrentTimeService.h +++ b/src/components/ble/CurrentTimeService.h @@ -1,7 +1,8 @@ #pragma once #include #include -#include + +#include "components/datetime/DateTimeController.h" #include namespace Pinetime { diff --git a/src/components/Ble/DeviceInformationService.cpp b/src/components/ble/DeviceInformationService.cpp similarity index 100% rename from src/components/Ble/DeviceInformationService.cpp rename to src/components/ble/DeviceInformationService.cpp diff --git a/src/components/Ble/DeviceInformationService.h b/src/components/ble/DeviceInformationService.h similarity index 100% rename from src/components/Ble/DeviceInformationService.h rename to src/components/ble/DeviceInformationService.h diff --git a/src/components/Ble/DfuService.cpp b/src/components/ble/DfuService.cpp similarity index 99% rename from src/components/Ble/DfuService.cpp rename to src/components/ble/DfuService.cpp index fcbefdd0..4dec5141 100644 --- a/src/components/Ble/DfuService.cpp +++ b/src/components/ble/DfuService.cpp @@ -1,6 +1,7 @@ -#include -#include #include + +#include "components/ble/BleController.h" +#include "systemtask/SystemTask.h" #include "DfuService.h" using namespace Pinetime::Controllers; diff --git a/src/components/Ble/DfuService.h b/src/components/ble/DfuService.h similarity index 100% rename from src/components/Ble/DfuService.h rename to src/components/ble/DfuService.h diff --git a/src/components/Ble/ImmediateAlertService.cpp b/src/components/ble/ImmediateAlertService.cpp similarity index 98% rename from src/components/Ble/ImmediateAlertService.cpp rename to src/components/ble/ImmediateAlertService.cpp index d2c4cffb..3b7f47bf 100644 --- a/src/components/Ble/ImmediateAlertService.cpp +++ b/src/components/ble/ImmediateAlertService.cpp @@ -1,5 +1,5 @@ +#include #include "ImmediateAlertService.h" -#include #include "AlertNotificationService.h" using namespace Pinetime::Controllers; diff --git a/src/components/Ble/ImmediateAlertService.h b/src/components/ble/ImmediateAlertService.h similarity index 100% rename from src/components/Ble/ImmediateAlertService.h rename to src/components/ble/ImmediateAlertService.h diff --git a/src/components/Ble/MusicService.cpp b/src/components/ble/MusicService.cpp similarity index 99% rename from src/components/Ble/MusicService.cpp rename to src/components/ble/MusicService.cpp index b5fa5356..9105a8e6 100644 --- a/src/components/Ble/MusicService.cpp +++ b/src/components/ble/MusicService.cpp @@ -1,4 +1,4 @@ -#include +#include #include "MusicService.h" int MSCallback(uint16_t conn_handle, uint16_t attr_handle, struct ble_gatt_access_ctxt *ctxt, void *arg) { diff --git a/src/components/Ble/MusicService.h b/src/components/ble/MusicService.h similarity index 100% rename from src/components/Ble/MusicService.h rename to src/components/ble/MusicService.h diff --git a/src/components/Ble/NimbleController.cpp b/src/components/ble/NimbleController.cpp similarity index 99% rename from src/components/Ble/NimbleController.cpp rename to src/components/ble/NimbleController.cpp index b13f9ce3..022cc510 100644 --- a/src/components/Ble/NimbleController.cpp +++ b/src/components/ble/NimbleController.cpp @@ -1,8 +1,8 @@ -#include +#include "components/datetime/DateTimeController.h" -#include -#include +#include +#include "components/ble/NotificationManager.h" #include #include "NimbleController.h" diff --git a/src/components/Ble/NimbleController.h b/src/components/ble/NimbleController.h similarity index 99% rename from src/components/Ble/NimbleController.h rename to src/components/ble/NimbleController.h index 89fa4250..9d20caff 100644 --- a/src/components/Ble/NimbleController.h +++ b/src/components/ble/NimbleController.h @@ -1,6 +1,7 @@ #pragma once #include + #include "AlertNotificationService.h" #include "AlertNotificationClient.h" #include "DeviceInformationService.h" diff --git a/src/components/Ble/NotificationManager.cpp b/src/components/ble/NotificationManager.cpp similarity index 100% rename from src/components/Ble/NotificationManager.cpp rename to src/components/ble/NotificationManager.cpp diff --git a/src/components/Ble/NotificationManager.h b/src/components/ble/NotificationManager.h similarity index 100% rename from src/components/Ble/NotificationManager.h rename to src/components/ble/NotificationManager.h diff --git a/src/components/Brightness/BrightnessController.cpp b/src/components/brightness/BrightnessController.cpp similarity index 100% rename from src/components/Brightness/BrightnessController.cpp rename to src/components/brightness/BrightnessController.cpp diff --git a/src/components/Brightness/BrightnessController.h b/src/components/brightness/BrightnessController.h similarity index 100% rename from src/components/Brightness/BrightnessController.h rename to src/components/brightness/BrightnessController.h diff --git a/src/components/DateTime/DateTimeController.cpp b/src/components/datetime/DateTimeController.cpp similarity index 100% rename from src/components/DateTime/DateTimeController.cpp rename to src/components/datetime/DateTimeController.cpp diff --git a/src/components/DateTime/DateTimeController.h b/src/components/datetime/DateTimeController.h similarity index 100% rename from src/components/DateTime/DateTimeController.h rename to src/components/datetime/DateTimeController.h diff --git a/src/components/FirmwareValidator/FirmwareValidator.cpp b/src/components/firmwarevalidator/FirmwareValidator.cpp similarity index 100% rename from src/components/FirmwareValidator/FirmwareValidator.cpp rename to src/components/firmwarevalidator/FirmwareValidator.cpp diff --git a/src/components/FirmwareValidator/FirmwareValidator.h b/src/components/firmwarevalidator/FirmwareValidator.h similarity index 100% rename from src/components/FirmwareValidator/FirmwareValidator.h rename to src/components/firmwarevalidator/FirmwareValidator.h diff --git a/src/components/Gfx/Gfx.cpp b/src/components/gfx/Gfx.cpp similarity index 100% rename from src/components/Gfx/Gfx.cpp rename to src/components/gfx/Gfx.cpp diff --git a/src/components/Gfx/Gfx.h b/src/components/gfx/Gfx.h similarity index 100% rename from src/components/Gfx/Gfx.h rename to src/components/gfx/Gfx.h diff --git a/src/displayapp/DisplayApp.cpp b/src/displayapp/DisplayApp.cpp index 46e81f1d..d65e4f92 100644 --- a/src/displayapp/DisplayApp.cpp +++ b/src/displayapp/DisplayApp.cpp @@ -1,24 +1,25 @@ +#include + #include "DisplayApp.h" #include #include #include #include #include -#include +#include "components/datetime/DateTimeController.h" #include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include "../SystemTask/SystemTask.h" +#include "displayapp/screens/Tile.h" +#include "displayapp/screens/Meter.h" +#include "displayapp/screens/Gauge.h" +#include "displayapp/screens/Brightness.h" +#include "displayapp/screens/SystemInfo.h" +#include "displayapp/screens/Music.h" +#include "components/ble/NotificationManager.h" +#include "displayapp/screens/FirmwareUpdate.h" +#include "displayapp/screens/ApplicationList.h" +#include "displayapp/screens/FirmwareValidation.h" +#include "displayapp/screens/InfiniPaint.h" +#include "systemtask/SystemTask.h" using namespace Pinetime::Applications; @@ -148,7 +149,7 @@ void DisplayApp::Refresh() { } } -// lvgl.SetFullRefresh(Components::LittleVgl::FullRefreshDirections::Down); +// lvgl.SetFullRefresh(components::LittleVgl::FullRefreshDirections::Down); // currentScreen.reset(nullptr); // if(toggle) { // currentScreen.reset(new Screens::Tile(this)); diff --git a/src/displayapp/DisplayApp.h b/src/displayapp/DisplayApp.h index 345e06d4..2a0efde3 100644 --- a/src/displayapp/DisplayApp.h +++ b/src/displayapp/DisplayApp.h @@ -3,21 +3,21 @@ #include #include #include -#include #include #include -#include -#include -#include -#include -#include "../drivers/Cst816s.h" +#include "components/gfx/Gfx.h" +#include "components/battery/BatteryController.h" +#include "components/brightness/BrightnessController.h" +#include "components/ble/BleController.h" +#include "components/datetime/DateTimeController.h" +#include "components/ble/NotificationManager.h" +#include "components/firmwarevalidator/FirmwareValidator.h" +#include "drivers/Cst816s.h" #include "LittleVgl.h" #include -#include +#include "displayapp/screens/Clock.h" +#include "displayapp/screens/Modal.h" #include -#include -#include -#include #include "TouchEvents.h" #include "Apps.h" diff --git a/src/displayapp/Fonts/Readme.md b/src/displayapp/fonts/Readme.md similarity index 100% rename from src/displayapp/Fonts/Readme.md rename to src/displayapp/fonts/Readme.md diff --git a/src/displayapp/Fonts/jetbrains_mono_bold_20.c b/src/displayapp/fonts/jetbrains_mono_bold_20.c similarity index 100% rename from src/displayapp/Fonts/jetbrains_mono_bold_20.c rename to src/displayapp/fonts/jetbrains_mono_bold_20.c diff --git a/src/displayapp/Fonts/jetbrains_mono_extrabold_compressed.c b/src/displayapp/fonts/jetbrains_mono_extrabold_compressed.c similarity index 100% rename from src/displayapp/Fonts/jetbrains_mono_extrabold_compressed.c rename to src/displayapp/fonts/jetbrains_mono_extrabold_compressed.c diff --git a/src/displayapp/Icons/battery/os_battery_005.c b/src/displayapp/icons/battery/os_battery_005.c similarity index 100% rename from src/displayapp/Icons/battery/os_battery_005.c rename to src/displayapp/icons/battery/os_battery_005.c diff --git a/src/displayapp/Icons/battery/os_battery_005.png b/src/displayapp/icons/battery/os_battery_005.png similarity index 100% rename from src/displayapp/Icons/battery/os_battery_005.png rename to src/displayapp/icons/battery/os_battery_005.png diff --git a/src/displayapp/Icons/battery/os_battery_010.c b/src/displayapp/icons/battery/os_battery_010.c similarity index 100% rename from src/displayapp/Icons/battery/os_battery_010.c rename to src/displayapp/icons/battery/os_battery_010.c diff --git a/src/displayapp/Icons/battery/os_battery_010.png b/src/displayapp/icons/battery/os_battery_010.png similarity index 100% rename from src/displayapp/Icons/battery/os_battery_010.png rename to src/displayapp/icons/battery/os_battery_010.png diff --git a/src/displayapp/Icons/battery/os_battery_020.c b/src/displayapp/icons/battery/os_battery_020.c similarity index 100% rename from src/displayapp/Icons/battery/os_battery_020.c rename to src/displayapp/icons/battery/os_battery_020.c diff --git a/src/displayapp/Icons/battery/os_battery_020.png b/src/displayapp/icons/battery/os_battery_020.png similarity index 100% rename from src/displayapp/Icons/battery/os_battery_020.png rename to src/displayapp/icons/battery/os_battery_020.png diff --git a/src/displayapp/Icons/battery/os_battery_030.c b/src/displayapp/icons/battery/os_battery_030.c similarity index 100% rename from src/displayapp/Icons/battery/os_battery_030.c rename to src/displayapp/icons/battery/os_battery_030.c diff --git a/src/displayapp/Icons/battery/os_battery_030.png b/src/displayapp/icons/battery/os_battery_030.png similarity index 100% rename from src/displayapp/Icons/battery/os_battery_030.png rename to src/displayapp/icons/battery/os_battery_030.png diff --git a/src/displayapp/Icons/battery/os_battery_040.c b/src/displayapp/icons/battery/os_battery_040.c similarity index 100% rename from src/displayapp/Icons/battery/os_battery_040.c rename to src/displayapp/icons/battery/os_battery_040.c diff --git a/src/displayapp/Icons/battery/os_battery_040.png b/src/displayapp/icons/battery/os_battery_040.png similarity index 100% rename from src/displayapp/Icons/battery/os_battery_040.png rename to src/displayapp/icons/battery/os_battery_040.png diff --git a/src/displayapp/Icons/battery/os_battery_050.c b/src/displayapp/icons/battery/os_battery_050.c similarity index 100% rename from src/displayapp/Icons/battery/os_battery_050.c rename to src/displayapp/icons/battery/os_battery_050.c diff --git a/src/displayapp/Icons/battery/os_battery_050.png b/src/displayapp/icons/battery/os_battery_050.png similarity index 100% rename from src/displayapp/Icons/battery/os_battery_050.png rename to src/displayapp/icons/battery/os_battery_050.png diff --git a/src/displayapp/Icons/battery/os_battery_060.c b/src/displayapp/icons/battery/os_battery_060.c similarity index 100% rename from src/displayapp/Icons/battery/os_battery_060.c rename to src/displayapp/icons/battery/os_battery_060.c diff --git a/src/displayapp/Icons/battery/os_battery_060.png b/src/displayapp/icons/battery/os_battery_060.png similarity index 100% rename from src/displayapp/Icons/battery/os_battery_060.png rename to src/displayapp/icons/battery/os_battery_060.png diff --git a/src/displayapp/Icons/battery/os_battery_070.c b/src/displayapp/icons/battery/os_battery_070.c similarity index 100% rename from src/displayapp/Icons/battery/os_battery_070.c rename to src/displayapp/icons/battery/os_battery_070.c diff --git a/src/displayapp/Icons/battery/os_battery_070.png b/src/displayapp/icons/battery/os_battery_070.png similarity index 100% rename from src/displayapp/Icons/battery/os_battery_070.png rename to src/displayapp/icons/battery/os_battery_070.png diff --git a/src/displayapp/Icons/battery/os_battery_080.c b/src/displayapp/icons/battery/os_battery_080.c similarity index 100% rename from src/displayapp/Icons/battery/os_battery_080.c rename to src/displayapp/icons/battery/os_battery_080.c diff --git a/src/displayapp/Icons/battery/os_battery_080.png b/src/displayapp/icons/battery/os_battery_080.png similarity index 100% rename from src/displayapp/Icons/battery/os_battery_080.png rename to src/displayapp/icons/battery/os_battery_080.png diff --git a/src/displayapp/Icons/battery/os_battery_090.c b/src/displayapp/icons/battery/os_battery_090.c similarity index 100% rename from src/displayapp/Icons/battery/os_battery_090.c rename to src/displayapp/icons/battery/os_battery_090.c diff --git a/src/displayapp/Icons/battery/os_battery_090.png b/src/displayapp/icons/battery/os_battery_090.png similarity index 100% rename from src/displayapp/Icons/battery/os_battery_090.png rename to src/displayapp/icons/battery/os_battery_090.png diff --git a/src/displayapp/Icons/battery/os_battery_100.c b/src/displayapp/icons/battery/os_battery_100.c similarity index 100% rename from src/displayapp/Icons/battery/os_battery_100.c rename to src/displayapp/icons/battery/os_battery_100.c diff --git a/src/displayapp/Icons/battery/os_battery_100.png b/src/displayapp/icons/battery/os_battery_100.png similarity index 100% rename from src/displayapp/Icons/battery/os_battery_100.png rename to src/displayapp/icons/battery/os_battery_100.png diff --git a/src/displayapp/Icons/battery/os_battery_error.c b/src/displayapp/icons/battery/os_battery_error.c similarity index 100% rename from src/displayapp/Icons/battery/os_battery_error.c rename to src/displayapp/icons/battery/os_battery_error.c diff --git a/src/displayapp/Icons/battery/os_battery_error.png b/src/displayapp/icons/battery/os_battery_error.png similarity index 100% rename from src/displayapp/Icons/battery/os_battery_error.png rename to src/displayapp/icons/battery/os_battery_error.png diff --git a/src/displayapp/Icons/battery/os_batterycharging_005.c b/src/displayapp/icons/battery/os_batterycharging_005.c similarity index 100% rename from src/displayapp/Icons/battery/os_batterycharging_005.c rename to src/displayapp/icons/battery/os_batterycharging_005.c diff --git a/src/displayapp/Icons/battery/os_batterycharging_005.png b/src/displayapp/icons/battery/os_batterycharging_005.png similarity index 100% rename from src/displayapp/Icons/battery/os_batterycharging_005.png rename to src/displayapp/icons/battery/os_batterycharging_005.png diff --git a/src/displayapp/Icons/battery/os_batterycharging_010.c b/src/displayapp/icons/battery/os_batterycharging_010.c similarity index 100% rename from src/displayapp/Icons/battery/os_batterycharging_010.c rename to src/displayapp/icons/battery/os_batterycharging_010.c diff --git a/src/displayapp/Icons/battery/os_batterycharging_010.png b/src/displayapp/icons/battery/os_batterycharging_010.png similarity index 100% rename from src/displayapp/Icons/battery/os_batterycharging_010.png rename to src/displayapp/icons/battery/os_batterycharging_010.png diff --git a/src/displayapp/Icons/battery/os_batterycharging_020.c b/src/displayapp/icons/battery/os_batterycharging_020.c similarity index 100% rename from src/displayapp/Icons/battery/os_batterycharging_020.c rename to src/displayapp/icons/battery/os_batterycharging_020.c diff --git a/src/displayapp/Icons/battery/os_batterycharging_020.png b/src/displayapp/icons/battery/os_batterycharging_020.png similarity index 100% rename from src/displayapp/Icons/battery/os_batterycharging_020.png rename to src/displayapp/icons/battery/os_batterycharging_020.png diff --git a/src/displayapp/Icons/battery/os_batterycharging_030.c b/src/displayapp/icons/battery/os_batterycharging_030.c similarity index 100% rename from src/displayapp/Icons/battery/os_batterycharging_030.c rename to src/displayapp/icons/battery/os_batterycharging_030.c diff --git a/src/displayapp/Icons/battery/os_batterycharging_030.png b/src/displayapp/icons/battery/os_batterycharging_030.png similarity index 100% rename from src/displayapp/Icons/battery/os_batterycharging_030.png rename to src/displayapp/icons/battery/os_batterycharging_030.png diff --git a/src/displayapp/Icons/battery/os_batterycharging_040.c b/src/displayapp/icons/battery/os_batterycharging_040.c similarity index 100% rename from src/displayapp/Icons/battery/os_batterycharging_040.c rename to src/displayapp/icons/battery/os_batterycharging_040.c diff --git a/src/displayapp/Icons/battery/os_batterycharging_040.png b/src/displayapp/icons/battery/os_batterycharging_040.png similarity index 100% rename from src/displayapp/Icons/battery/os_batterycharging_040.png rename to src/displayapp/icons/battery/os_batterycharging_040.png diff --git a/src/displayapp/Icons/battery/os_batterycharging_050.c b/src/displayapp/icons/battery/os_batterycharging_050.c similarity index 100% rename from src/displayapp/Icons/battery/os_batterycharging_050.c rename to src/displayapp/icons/battery/os_batterycharging_050.c diff --git a/src/displayapp/Icons/battery/os_batterycharging_050.png b/src/displayapp/icons/battery/os_batterycharging_050.png similarity index 100% rename from src/displayapp/Icons/battery/os_batterycharging_050.png rename to src/displayapp/icons/battery/os_batterycharging_050.png diff --git a/src/displayapp/Icons/battery/os_batterycharging_060.c b/src/displayapp/icons/battery/os_batterycharging_060.c similarity index 100% rename from src/displayapp/Icons/battery/os_batterycharging_060.c rename to src/displayapp/icons/battery/os_batterycharging_060.c diff --git a/src/displayapp/Icons/battery/os_batterycharging_060.png b/src/displayapp/icons/battery/os_batterycharging_060.png similarity index 100% rename from src/displayapp/Icons/battery/os_batterycharging_060.png rename to src/displayapp/icons/battery/os_batterycharging_060.png diff --git a/src/displayapp/Icons/battery/os_batterycharging_070.c b/src/displayapp/icons/battery/os_batterycharging_070.c similarity index 100% rename from src/displayapp/Icons/battery/os_batterycharging_070.c rename to src/displayapp/icons/battery/os_batterycharging_070.c diff --git a/src/displayapp/Icons/battery/os_batterycharging_070.png b/src/displayapp/icons/battery/os_batterycharging_070.png similarity index 100% rename from src/displayapp/Icons/battery/os_batterycharging_070.png rename to src/displayapp/icons/battery/os_batterycharging_070.png diff --git a/src/displayapp/Icons/battery/os_batterycharging_080.c b/src/displayapp/icons/battery/os_batterycharging_080.c similarity index 100% rename from src/displayapp/Icons/battery/os_batterycharging_080.c rename to src/displayapp/icons/battery/os_batterycharging_080.c diff --git a/src/displayapp/Icons/battery/os_batterycharging_080.png b/src/displayapp/icons/battery/os_batterycharging_080.png similarity index 100% rename from src/displayapp/Icons/battery/os_batterycharging_080.png rename to src/displayapp/icons/battery/os_batterycharging_080.png diff --git a/src/displayapp/Icons/battery/os_batterycharging_090.c b/src/displayapp/icons/battery/os_batterycharging_090.c similarity index 100% rename from src/displayapp/Icons/battery/os_batterycharging_090.c rename to src/displayapp/icons/battery/os_batterycharging_090.c diff --git a/src/displayapp/Icons/battery/os_batterycharging_090.png b/src/displayapp/icons/battery/os_batterycharging_090.png similarity index 100% rename from src/displayapp/Icons/battery/os_batterycharging_090.png rename to src/displayapp/icons/battery/os_batterycharging_090.png diff --git a/src/displayapp/Icons/battery/os_batterycharging_100.c b/src/displayapp/icons/battery/os_batterycharging_100.c similarity index 100% rename from src/displayapp/Icons/battery/os_batterycharging_100.c rename to src/displayapp/icons/battery/os_batterycharging_100.c diff --git a/src/displayapp/Icons/battery/os_batterycharging_100.png b/src/displayapp/icons/battery/os_batterycharging_100.png similarity index 100% rename from src/displayapp/Icons/battery/os_batterycharging_100.png rename to src/displayapp/icons/battery/os_batterycharging_100.png diff --git a/src/displayapp/Icons/bluetooth/ck_os_bt_connected.png b/src/displayapp/icons/bluetooth/ck_os_bt_connected.png similarity index 100% rename from src/displayapp/Icons/bluetooth/ck_os_bt_connected.png rename to src/displayapp/icons/bluetooth/ck_os_bt_connected.png diff --git a/src/displayapp/Icons/bluetooth/ck_os_bt_disconnected.png b/src/displayapp/icons/bluetooth/ck_os_bt_disconnected.png similarity index 100% rename from src/displayapp/Icons/bluetooth/ck_os_bt_disconnected.png rename to src/displayapp/icons/bluetooth/ck_os_bt_disconnected.png diff --git a/src/displayapp/Icons/bluetooth/os_bt_connected.c b/src/displayapp/icons/bluetooth/os_bt_connected.c similarity index 100% rename from src/displayapp/Icons/bluetooth/os_bt_connected.c rename to src/displayapp/icons/bluetooth/os_bt_connected.c diff --git a/src/displayapp/Icons/bluetooth/os_bt_connected.png b/src/displayapp/icons/bluetooth/os_bt_connected.png similarity index 100% rename from src/displayapp/Icons/bluetooth/os_bt_connected.png rename to src/displayapp/icons/bluetooth/os_bt_connected.png diff --git a/src/displayapp/Icons/bluetooth/os_bt_disconnected.c b/src/displayapp/icons/bluetooth/os_bt_disconnected.c similarity index 100% rename from src/displayapp/Icons/bluetooth/os_bt_disconnected.c rename to src/displayapp/icons/bluetooth/os_bt_disconnected.c diff --git a/src/displayapp/Icons/bluetooth/os_bt_disconnected.png b/src/displayapp/icons/bluetooth/os_bt_disconnected.png similarity index 100% rename from src/displayapp/Icons/bluetooth/os_bt_disconnected.png rename to src/displayapp/icons/bluetooth/os_bt_disconnected.png diff --git a/src/displayapp/screens/ApplicationList.cpp b/src/displayapp/screens/ApplicationList.cpp index eb85be4f..71ba91c4 100644 --- a/src/displayapp/screens/ApplicationList.cpp +++ b/src/displayapp/screens/ApplicationList.cpp @@ -1,5 +1,5 @@ #include -#include +#include #include #include "ApplicationList.h" #include "Tile.h" diff --git a/src/displayapp/screens/ApplicationList.h b/src/displayapp/screens/ApplicationList.h index a1e6811b..9c95acb8 100644 --- a/src/displayapp/screens/ApplicationList.h +++ b/src/displayapp/screens/ApplicationList.h @@ -1,13 +1,14 @@ #pragma once +#include #include -#include + +#include "components/ble/NimbleController.h" #include "Screen.h" #include "Label.h" #include "ScreenList.h" #include "Gauge.h" #include "Meter.h" -#include namespace Pinetime { namespace Applications { diff --git a/src/displayapp/screens/Brightness.h b/src/displayapp/screens/Brightness.h index 37cbcd7e..7d599acf 100644 --- a/src/displayapp/screens/Brightness.h +++ b/src/displayapp/screens/Brightness.h @@ -1,7 +1,7 @@ #pragma once #include -#include +#include "components/brightness/BrightnessController.h" #include "Screen.h" namespace Pinetime { diff --git a/src/displayapp/screens/Clock.cpp b/src/displayapp/screens/Clock.cpp index 06fab9aa..243d4c04 100644 --- a/src/displayapp/screens/Clock.cpp +++ b/src/displayapp/screens/Clock.cpp @@ -1,6 +1,7 @@ #include + #include -#include +#include "components/datetime/DateTimeController.h" #include #include "Clock.h" #include "../DisplayApp.h" diff --git a/src/displayapp/screens/Clock.h b/src/displayapp/screens/Clock.h index 7363fdaf..5753f6a3 100644 --- a/src/displayapp/screens/Clock.h +++ b/src/displayapp/screens/Clock.h @@ -2,12 +2,13 @@ #include #include + #include "Screen.h" #include #include #include -#include -#include +#include "components/battery/BatteryController.h" +#include "components/ble/BleController.h" namespace Pinetime { namespace Applications { diff --git a/src/displayapp/screens/FirmwareUpdate.h b/src/displayapp/screens/FirmwareUpdate.h index faaf3953..893fe68c 100644 --- a/src/displayapp/screens/FirmwareUpdate.h +++ b/src/displayapp/screens/FirmwareUpdate.h @@ -2,11 +2,12 @@ #include #include + #include "Screen.h" #include #include #include -#include +#include "components/ble/BleController.h" namespace Pinetime { namespace Applications { diff --git a/src/displayapp/screens/FirmwareValidation.cpp b/src/displayapp/screens/FirmwareValidation.cpp index fb2dd956..2300b41d 100644 --- a/src/displayapp/screens/FirmwareValidation.cpp +++ b/src/displayapp/screens/FirmwareValidation.cpp @@ -2,7 +2,7 @@ #include "FirmwareValidation.h" #include "../DisplayApp.h" #include "../../Version.h" -#include "../../Components/FirmwareValidator/FirmwareValidator.h" +#include "components/firmwarevalidator/FirmwareValidator.h" using namespace Pinetime::Applications::Screens; extern lv_font_t jetbrains_mono_extrabold_compressed; diff --git a/src/displayapp/screens/InfiniPaint.h b/src/displayapp/screens/InfiniPaint.h index a1592f97..fb4f979b 100644 --- a/src/displayapp/screens/InfiniPaint.h +++ b/src/displayapp/screens/InfiniPaint.h @@ -6,7 +6,7 @@ #include #include #include -#include +#include "displayapp/LittleVgl.h" namespace Pinetime { namespace Applications { diff --git a/src/displayapp/screens/Music.h b/src/displayapp/screens/Music.h index 95cac0f0..d43d31cc 100644 --- a/src/displayapp/screens/Music.h +++ b/src/displayapp/screens/Music.h @@ -2,16 +2,17 @@ #include #include -#include +#include + +#include "components/gfx/Gfx.h" +#include "components/battery/BatteryController.h" +#include "components/ble/BleController.h" +#include "components/ble/MusicService.h" #include "Screen.h" #include #include #include -#include -#include #include "../../Version.h" -#include -#include namespace Pinetime { namespace Applications { diff --git a/src/displayapp/screens/ScreenList.h b/src/displayapp/screens/ScreenList.h index d873336d..b198634f 100644 --- a/src/displayapp/screens/ScreenList.h +++ b/src/displayapp/screens/ScreenList.h @@ -1,8 +1,8 @@ #pragma once #include -#include #include +#include "components/ble/NimbleController.h" #include "Screen.h" #include "Label.h" diff --git a/src/displayapp/screens/SystemInfo.cpp b/src/displayapp/screens/SystemInfo.cpp index fcafcf7d..8a3b8dbb 100644 --- a/src/displayapp/screens/SystemInfo.cpp +++ b/src/displayapp/screens/SystemInfo.cpp @@ -1,5 +1,5 @@ #include -#include +#include #include #include "SystemInfo.h" #include "../../Version.h" diff --git a/src/displayapp/screens/SystemInfo.h b/src/displayapp/screens/SystemInfo.h index ac8abae5..987a584b 100644 --- a/src/displayapp/screens/SystemInfo.h +++ b/src/displayapp/screens/SystemInfo.h @@ -1,13 +1,14 @@ #pragma once +#include #include -#include + +#include "components/ble/NimbleController.h" #include "Screen.h" #include "Label.h" #include "ScreenList.h" #include "Gauge.h" #include "Meter.h" -#include namespace Pinetime { namespace Applications { diff --git a/src/displayapp/screens/Tile.cpp b/src/displayapp/screens/Tile.cpp index 1447d789..deb88472 100644 --- a/src/displayapp/screens/Tile.cpp +++ b/src/displayapp/screens/Tile.cpp @@ -1,8 +1,9 @@ #include #include #include + #include "Tile.h" -#include +#include "displayapp/DisplayApp.h" #include "Symbols.h" #include "../../Version.h" diff --git a/src/displayapp/screens/Tile.h b/src/displayapp/screens/Tile.h index 3136d892..cf5fcf15 100644 --- a/src/displayapp/screens/Tile.h +++ b/src/displayapp/screens/Tile.h @@ -5,7 +5,7 @@ #include #include "Modal.h" #include -#include +#include namespace Pinetime { namespace Applications { diff --git a/src/main.cpp b/src/main.cpp index fe413585..e3243362 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,29 +1,29 @@ #include #include +#include #include +#include +#include +#include #include #include -#include +#include "displayapp/DisplayApp.h" #include -#include -#include -#include -#include "Components/Battery/BatteryController.h" -#include "Components/Ble/BleController.h" +#include "components/datetime/DateTimeController.h" +#include "components/battery/BatteryController.h" +#include "components/ble/BleController.h" +#include "components/ble/NotificationManager.h" #include #include #include -#include -#include -#include +#include "displayapp/LittleVgl.h" +#include #include #include #include #include #include -#include #include -#include #include #include @@ -32,7 +32,7 @@ #include "Logging/NrfLogger.h" Pinetime::Logging::NrfLogger logger; #else -#include "Logging/DummyLogger.h" +#include "logging/DummyLogger.h" Pinetime::Logging::DummyLogger logger; #endif diff --git a/src/systemtask/SystemTask.cpp b/src/systemtask/SystemTask.cpp index 24f688e2..68f8ab53 100644 --- a/src/systemtask/SystemTask.cpp +++ b/src/systemtask/SystemTask.cpp @@ -1,9 +1,9 @@ #include #include #include -#include +#include "displayapp/LittleVgl.h" #include -#include +#include "components/ble/NotificationManager.h" #include #include #include "SystemTask.h" @@ -12,7 +12,7 @@ #include #include #include "../main.h" -#include "Components/Ble/NimbleController.h" +#include "components/ble/NimbleController.h" using namespace Pinetime::System; diff --git a/src/systemtask/SystemTask.h b/src/systemtask/SystemTask.h index 40277cf3..1be28e3f 100644 --- a/src/systemtask/SystemTask.h +++ b/src/systemtask/SystemTask.h @@ -1,16 +1,17 @@ #pragma once +#include + #include #include -#include #include #include -#include -#include +#include "components/battery/BatteryController.h" +#include "displayapp/DisplayApp.h" #include #include #include "SystemMonitor.h" -#include "Components/Ble/NimbleController.h" +#include "components/ble/NimbleController.h" #include "timers.h" namespace Pinetime {