Merge pull request #68 from Avamander/patch-1
Rename folders to follow a consistent style
|
@ -4,7 +4,7 @@ project(pinetime VERSION 0.8.2 LANGUAGES C CXX ASM)
|
||||||
set(NRF_TARGET "nrf52")
|
set(NRF_TARGET "nrf52")
|
||||||
|
|
||||||
if (NOT ARM_NONE_EABI_TOOLCHAIN_PATH)
|
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=<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=<path>")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (NOT NRF5_SDK_PATH)
|
if (NOT NRF5_SDK_PATH)
|
||||||
|
|
|
@ -45,7 +45,7 @@ As of now, here is the list of achievements of this project:
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
### Develop
|
### 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
|
### Build, flash and debug
|
||||||
- [Project branches](doc/branches.md)
|
- [Project branches](doc/branches.md)
|
||||||
|
|
Before Width: | Height: | Size: 187 KiB After Width: | Height: | Size: 187 KiB |
Before Width: | Height: | Size: 208 KiB After Width: | Height: | Size: 208 KiB |
Before Width: | Height: | Size: 176 KiB After Width: | Height: | Size: 176 KiB |
|
@ -292,55 +292,55 @@ set(LVGL_SRC
|
||||||
)
|
)
|
||||||
|
|
||||||
list(APPEND IMAGE_FILES
|
list(APPEND IMAGE_FILES
|
||||||
DisplayApp/Icons/battery/os_battery_error.c
|
displayapp/icons/battery/os_battery_error.c
|
||||||
DisplayApp/Icons/battery/os_battery_100.c
|
displayapp/icons/battery/os_battery_100.c
|
||||||
DisplayApp/Icons/battery/os_battery_090.c
|
displayapp/icons/battery/os_battery_090.c
|
||||||
DisplayApp/Icons/battery/os_battery_080.c
|
displayapp/icons/battery/os_battery_080.c
|
||||||
DisplayApp/Icons/battery/os_battery_070.c
|
displayapp/icons/battery/os_battery_070.c
|
||||||
DisplayApp/Icons/battery/os_battery_060.c
|
displayapp/icons/battery/os_battery_060.c
|
||||||
DisplayApp/Icons/battery/os_battery_050.c
|
displayapp/icons/battery/os_battery_050.c
|
||||||
DisplayApp/Icons/battery/os_battery_040.c
|
displayapp/icons/battery/os_battery_040.c
|
||||||
DisplayApp/Icons/battery/os_battery_030.c
|
displayapp/icons/battery/os_battery_030.c
|
||||||
DisplayApp/Icons/battery/os_battery_020.c
|
displayapp/icons/battery/os_battery_020.c
|
||||||
DisplayApp/Icons/battery/os_battery_010.c
|
displayapp/icons/battery/os_battery_010.c
|
||||||
DisplayApp/Icons/battery/os_battery_005.c
|
displayapp/icons/battery/os_battery_005.c
|
||||||
|
|
||||||
DisplayApp/Icons/battery/os_batterycharging_100.c
|
displayapp/icons/battery/os_batterycharging_100.c
|
||||||
DisplayApp/Icons/battery/os_batterycharging_090.c
|
displayapp/icons/battery/os_batterycharging_090.c
|
||||||
DisplayApp/Icons/battery/os_batterycharging_080.c
|
displayapp/icons/battery/os_batterycharging_080.c
|
||||||
DisplayApp/Icons/battery/os_batterycharging_070.c
|
displayapp/icons/battery/os_batterycharging_070.c
|
||||||
DisplayApp/Icons/battery/os_batterycharging_060.c
|
displayapp/icons/battery/os_batterycharging_060.c
|
||||||
DisplayApp/Icons/battery/os_batterycharging_050.c
|
displayapp/icons/battery/os_batterycharging_050.c
|
||||||
DisplayApp/Icons/battery/os_batterycharging_040.c
|
displayapp/icons/battery/os_batterycharging_040.c
|
||||||
DisplayApp/Icons/battery/os_batterycharging_030.c
|
displayapp/icons/battery/os_batterycharging_030.c
|
||||||
DisplayApp/Icons/battery/os_batterycharging_020.c
|
displayapp/icons/battery/os_batterycharging_020.c
|
||||||
DisplayApp/Icons/battery/os_batterycharging_010.c
|
displayapp/icons/battery/os_batterycharging_010.c
|
||||||
DisplayApp/Icons/battery/os_batterycharging_005.c
|
displayapp/icons/battery/os_batterycharging_005.c
|
||||||
|
|
||||||
DisplayApp/Icons/bluetooth/os_bt_connected.c
|
displayapp/icons/bluetooth/os_bt_connected.c
|
||||||
DisplayApp/Icons/bluetooth/os_bt_disconnected.c
|
displayapp/icons/bluetooth/os_bt_disconnected.c
|
||||||
)
|
)
|
||||||
|
|
||||||
list(APPEND SOURCE_FILES
|
list(APPEND SOURCE_FILES
|
||||||
Logging/NrfLogger.cpp
|
logging/NrfLogger.cpp
|
||||||
DisplayApp/DisplayApp.cpp
|
displayapp/DisplayApp.cpp
|
||||||
DisplayApp/Screens/Screen.cpp
|
displayapp/screens/Screen.cpp
|
||||||
DisplayApp/Screens/Clock.cpp
|
displayapp/screens/Clock.cpp
|
||||||
DisplayApp/Screens/Tile.cpp
|
displayapp/screens/Tile.cpp
|
||||||
DisplayApp/Screens/Meter.cpp
|
displayapp/screens/Meter.cpp
|
||||||
DisplayApp/Screens/Gauge.cpp
|
displayapp/screens/Gauge.cpp
|
||||||
DisplayApp/Screens/InfiniPaint.cpp
|
displayapp/screens/InfiniPaint.cpp
|
||||||
DisplayApp/Screens/DropDownDemo.cpp
|
displayapp/screens/DropDownDemo.cpp
|
||||||
DisplayApp/Screens/Modal.cpp
|
displayapp/screens/Modal.cpp
|
||||||
DisplayApp/Screens/BatteryIcon.cpp
|
displayapp/screens/BatteryIcon.cpp
|
||||||
DisplayApp/Screens/BleIcon.cpp
|
displayapp/screens/BleIcon.cpp
|
||||||
DisplayApp/Screens/Brightness.cpp
|
displayapp/screens/Brightness.cpp
|
||||||
DisplayApp/Screens/SystemInfo.cpp
|
displayapp/screens/SystemInfo.cpp
|
||||||
DisplayApp/Screens/Label.cpp
|
displayapp/screens/Label.cpp
|
||||||
DisplayApp/Screens/FirmwareUpdate.cpp
|
displayapp/screens/FirmwareUpdate.cpp
|
||||||
DisplayApp/Screens/Music.cpp
|
displayapp/screens/Music.cpp
|
||||||
DisplayApp/Screens/FirmwareValidation.cpp
|
displayapp/screens/FirmwareValidation.cpp
|
||||||
DisplayApp/Screens/ApplicationList.cpp
|
displayapp/screens/ApplicationList.cpp
|
||||||
main.cpp
|
main.cpp
|
||||||
drivers/St7789.cpp
|
drivers/St7789.cpp
|
||||||
drivers/SpiNorFlash.cpp
|
drivers/SpiNorFlash.cpp
|
||||||
|
@ -349,32 +349,32 @@ list(APPEND SOURCE_FILES
|
||||||
drivers/Watchdog.cpp
|
drivers/Watchdog.cpp
|
||||||
drivers/DebugPins.cpp
|
drivers/DebugPins.cpp
|
||||||
drivers/InternalFlash.cpp
|
drivers/InternalFlash.cpp
|
||||||
Components/Battery/BatteryController.cpp
|
components/battery/BatteryController.cpp
|
||||||
Components/Ble/BleController.cpp
|
components/ble/BleController.cpp
|
||||||
Components/Ble/NotificationManager.cpp
|
components/ble/NotificationManager.cpp
|
||||||
Components/DateTime/DateTimeController.cpp
|
components/datetime/DateTimeController.cpp
|
||||||
Components/Brightness/BrightnessController.cpp
|
components/brightness/BrightnessController.cpp
|
||||||
Components/Ble/NimbleController.cpp
|
components/ble/NimbleController.cpp
|
||||||
Components/Ble/DeviceInformationService.cpp
|
components/ble/DeviceInformationService.cpp
|
||||||
Components/Ble/CurrentTimeClient.cpp
|
components/ble/CurrentTimeClient.cpp
|
||||||
Components/Ble/AlertNotificationClient.cpp
|
components/ble/AlertNotificationClient.cpp
|
||||||
Components/Ble/DfuService.cpp
|
components/ble/DfuService.cpp
|
||||||
Components/Ble/CurrentTimeService.cpp
|
components/ble/CurrentTimeService.cpp
|
||||||
Components/Ble/AlertNotificationService.cpp
|
components/ble/AlertNotificationService.cpp
|
||||||
Components/Ble/MusicService.cpp
|
components/ble/MusicService.cpp
|
||||||
Components/Ble/BatteryInformationService.cpp
|
components/ble/BatteryInformationService.cpp
|
||||||
Components/Ble/ImmediateAlertService.cpp
|
components/ble/ImmediateAlertService.cpp
|
||||||
Components/FirmwareValidator/FirmwareValidator.cpp
|
components/firmwarevalidator/FirmwareValidator.cpp
|
||||||
drivers/Cst816s.cpp
|
drivers/Cst816s.cpp
|
||||||
FreeRTOS/port.c
|
FreeRTOS/port.c
|
||||||
FreeRTOS/port_cmsis_systick.c
|
FreeRTOS/port_cmsis_systick.c
|
||||||
FreeRTOS/port_cmsis.c
|
FreeRTOS/port_cmsis.c
|
||||||
|
|
||||||
DisplayApp/LittleVgl.cpp
|
displayapp/LittleVgl.cpp
|
||||||
DisplayApp/Fonts/jetbrains_mono_extrabold_compressed.c
|
displayapp/fonts/jetbrains_mono_extrabold_compressed.c
|
||||||
DisplayApp/Fonts/jetbrains_mono_bold_20.c
|
displayapp/fonts/jetbrains_mono_bold_20.c
|
||||||
|
|
||||||
SystemTask/SystemTask.cpp
|
systemtask/SystemTask.cpp
|
||||||
drivers/TwiMaster.cpp
|
drivers/TwiMaster.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -387,38 +387,38 @@ list(APPEND GRAPHICS_SOURCE_FILES
|
||||||
drivers/SpiNorFlash.cpp
|
drivers/SpiNorFlash.cpp
|
||||||
drivers/SpiMaster.cpp
|
drivers/SpiMaster.cpp
|
||||||
drivers/Spi.cpp
|
drivers/Spi.cpp
|
||||||
Logging/NrfLogger.cpp
|
logging/NrfLogger.cpp
|
||||||
|
|
||||||
Components/Gfx/Gfx.cpp
|
components/gfx/Gfx.cpp
|
||||||
drivers/St7789.cpp
|
drivers/St7789.cpp
|
||||||
Components/Brightness/BrightnessController.cpp
|
components/brightness/BrightnessController.cpp
|
||||||
|
|
||||||
graphics.cpp
|
graphics.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set(INCLUDE_FILES
|
set(INCLUDE_FILES
|
||||||
Logging/Logger.h
|
logging/Logger.h
|
||||||
Logging/NrfLogger.h
|
logging/NrfLogger.h
|
||||||
DisplayApp/DisplayApp.h
|
displayapp/DisplayApp.h
|
||||||
DisplayApp/TouchEvents.h
|
displayapp/TouchEvents.h
|
||||||
DisplayApp/Screens/Screen.h
|
displayapp/screens/Screen.h
|
||||||
DisplayApp/Screens/Clock.h
|
displayapp/screens/Clock.h
|
||||||
DisplayApp/Screens/Tile.h
|
displayapp/screens/Tile.h
|
||||||
DisplayApp/Screens/Meter.h
|
displayapp/screens/Meter.h
|
||||||
DisplayApp/Screens/Gauge.h
|
displayapp/screens/Gauge.h
|
||||||
DisplayApp/Screens/InfiniPaint.h
|
displayapp/screens/InfiniPaint.h
|
||||||
DisplayApp/Screens/DropDownDemo.h
|
displayapp/screens/DropDownDemo.h
|
||||||
DisplayApp/Screens/Modal.h
|
displayapp/screens/Modal.h
|
||||||
DisplayApp/Screens/BatteryIcon.h
|
displayapp/screens/BatteryIcon.h
|
||||||
DisplayApp/Screens/BleIcon.cpp
|
displayapp/screens/BleIcon.cpp
|
||||||
DisplayApp/Screens/Brightness.h
|
displayapp/screens/Brightness.h
|
||||||
DisplayApp/Screens/SystemInfo.h
|
displayapp/screens/SystemInfo.h
|
||||||
DisplayApp/Screens/ScreenList.h
|
displayapp/screens/ScreenList.h
|
||||||
DisplayApp/Screens/Label.h
|
displayapp/screens/Label.h
|
||||||
DisplayApp/Screens/FirmwareUpdate.h
|
displayapp/screens/FirmwareUpdate.h
|
||||||
DisplayApp/Screens/FirmwareValidation.h
|
displayapp/screens/FirmwareValidation.h
|
||||||
DisplayApp/Screens/ApplicationList.h
|
displayapp/screens/ApplicationList.h
|
||||||
DisplayApp/Apps.h
|
displayapp/Apps.h
|
||||||
drivers/St7789.h
|
drivers/St7789.h
|
||||||
drivers/SpiNorFlash.h
|
drivers/SpiNorFlash.h
|
||||||
drivers/SpiMaster.h
|
drivers/SpiMaster.h
|
||||||
|
@ -426,19 +426,19 @@ set(INCLUDE_FILES
|
||||||
drivers/Watchdog.h
|
drivers/Watchdog.h
|
||||||
drivers/DebugPins.h
|
drivers/DebugPins.h
|
||||||
drivers/InternalFlash.h
|
drivers/InternalFlash.h
|
||||||
Components/Battery/BatteryController.h
|
components/battery/BatteryController.h
|
||||||
Components/Ble/BleController.h
|
components/ble/BleController.h
|
||||||
Components/Ble/NotificationManager.h
|
components/ble/NotificationManager.h
|
||||||
Components/DateTime/DateTimeController.h
|
components/datetime/DateTimeController.h
|
||||||
Components/Brightness/BrightnessController.h
|
components/brightness/BrightnessController.h
|
||||||
Components/Ble/NimbleController.h
|
components/ble/NimbleController.h
|
||||||
Components/Ble/DeviceInformationService.h
|
components/ble/DeviceInformationService.h
|
||||||
Components/Ble/CurrentTimeClient.h
|
components/ble/CurrentTimeClient.h
|
||||||
Components/Ble/AlertNotificationClient.h
|
components/ble/AlertNotificationClient.h
|
||||||
Components/Ble/DfuService.h
|
components/ble/DfuService.h
|
||||||
Components/FirmwareValidator/FirmwareValidator.h
|
components/firmwarevalidator/FirmwareValidator.h
|
||||||
Components/Ble/BatteryInformationService.h
|
components/ble/BatteryInformationService.h
|
||||||
Components/Ble/ImmediateAlertService.h
|
components/ble/ImmediateAlertService.h
|
||||||
drivers/Cst816s.h
|
drivers/Cst816s.h
|
||||||
FreeRTOS/portmacro.h
|
FreeRTOS/portmacro.h
|
||||||
FreeRTOS/portmacro_cmsis.h
|
FreeRTOS/portmacro_cmsis.h
|
||||||
|
@ -450,10 +450,10 @@ set(INCLUDE_FILES
|
||||||
libs/date/includes/date/julian.h
|
libs/date/includes/date/julian.h
|
||||||
libs/date/includes/date/ptz.h
|
libs/date/includes/date/ptz.h
|
||||||
libs/date/includes/date/tz_private.h
|
libs/date/includes/date/tz_private.h
|
||||||
DisplayApp/LittleVgl.h
|
displayapp/LittleVgl.h
|
||||||
SystemTask/SystemTask.h
|
systemtask/SystemTask.h
|
||||||
SystemTask/SystemMonitor.h
|
systemtask/SystemMonitor.h
|
||||||
DisplayApp/Screens/Symbols.h
|
displayapp/screens/Symbols.h
|
||||||
drivers/TwiMaster.h
|
drivers/TwiMaster.h
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -719,6 +719,35 @@ elseif(USE_GDB_CLIENT)
|
||||||
COMMENT "flashing ${EXECUTABLE_NAME}.hex"
|
COMMENT "flashing ${EXECUTABLE_NAME}.hex"
|
||||||
)
|
)
|
||||||
elseif (USE_OPENOCD)
|
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
|
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
|
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"
|
COMMENT "erasing flashing"
|
||||||
|
@ -728,6 +757,5 @@ elseif(USE_OPENOCD)
|
||||||
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
|
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"
|
COMMENT "flashing ${EXECUTABLE_NAME}.hex"
|
||||||
)
|
)
|
||||||
|
|
||||||
endif ()
|
endif ()
|
||||||
|
endif ()
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#include <SystemTask/SystemTask.h>
|
#include <systemtask/SystemTask.h>
|
||||||
#include "NotificationManager.h"
|
#include "NotificationManager.h"
|
||||||
|
|
||||||
#include "AlertNotificationClient.h"
|
#include "AlertNotificationClient.h"
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
#include <hal/nrf_rtc.h>
|
#include <hal/nrf_rtc.h>
|
||||||
#include "NotificationManager.h"
|
#include "NotificationManager.h"
|
||||||
#include <SystemTask/SystemTask.h>
|
#include <systemtask/SystemTask.h>
|
||||||
|
|
||||||
#include "AlertNotificationService.h"
|
#include "AlertNotificationService.h"
|
||||||
#include <cstring>
|
#include <cstring>
|
|
@ -1,5 +1,5 @@
|
||||||
#include "BatteryInformationService.h"
|
#include "BatteryInformationService.h"
|
||||||
#include "../Battery/BatteryController.h"
|
#include "components/battery/BatteryController.h"
|
||||||
|
|
||||||
using namespace Pinetime::Controllers;
|
using namespace Pinetime::Controllers;
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <Components/DateTime/DateTimeController.h>
|
|
||||||
|
#include "components/datetime/DateTimeController.h"
|
||||||
#include <host/ble_gap.h>
|
#include <host/ble_gap.h>
|
||||||
|
|
||||||
namespace Pinetime {
|
namespace Pinetime {
|
|
@ -1,7 +1,8 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <Components/DateTime/DateTimeController.h>
|
|
||||||
|
#include "components/datetime/DateTimeController.h"
|
||||||
#include <host/ble_gap.h>
|
#include <host/ble_gap.h>
|
||||||
|
|
||||||
namespace Pinetime {
|
namespace Pinetime {
|
|
@ -1,6 +1,7 @@
|
||||||
#include <Components/Ble/BleController.h>
|
|
||||||
#include <SystemTask/SystemTask.h>
|
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
|
|
||||||
|
#include "components/ble/BleController.h"
|
||||||
|
#include "systemtask/SystemTask.h"
|
||||||
#include "DfuService.h"
|
#include "DfuService.h"
|
||||||
|
|
||||||
using namespace Pinetime::Controllers;
|
using namespace Pinetime::Controllers;
|
|
@ -1,5 +1,5 @@
|
||||||
|
#include <systemtask/SystemTask.h>
|
||||||
#include "ImmediateAlertService.h"
|
#include "ImmediateAlertService.h"
|
||||||
#include <SystemTask/SystemTask.h>
|
|
||||||
#include "AlertNotificationService.h"
|
#include "AlertNotificationService.h"
|
||||||
|
|
||||||
using namespace Pinetime::Controllers;
|
using namespace Pinetime::Controllers;
|
|
@ -1,4 +1,4 @@
|
||||||
#include <SystemTask/SystemTask.h>
|
#include <systemtask/SystemTask.h>
|
||||||
#include "MusicService.h"
|
#include "MusicService.h"
|
||||||
|
|
||||||
int MSCallback(uint16_t conn_handle, uint16_t attr_handle, struct ble_gatt_access_ctxt *ctxt, void *arg) {
|
int MSCallback(uint16_t conn_handle, uint16_t attr_handle, struct ble_gatt_access_ctxt *ctxt, void *arg) {
|
|
@ -1,8 +1,8 @@
|
||||||
|
|
||||||
#include <Components/DateTime/DateTimeController.h>
|
#include "components/datetime/DateTimeController.h"
|
||||||
|
|
||||||
#include <SystemTask/SystemTask.h>
|
#include <systemtask/SystemTask.h>
|
||||||
#include <Components/Ble/NotificationManager.h>
|
#include "components/ble/NotificationManager.h"
|
||||||
#include <hal/nrf_rtc.h>
|
#include <hal/nrf_rtc.h>
|
||||||
|
|
||||||
#include "NimbleController.h"
|
#include "NimbleController.h"
|
|
@ -1,6 +1,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
#include "AlertNotificationService.h"
|
#include "AlertNotificationService.h"
|
||||||
#include "AlertNotificationClient.h"
|
#include "AlertNotificationClient.h"
|
||||||
#include "DeviceInformationService.h"
|
#include "DeviceInformationService.h"
|
|
@ -1,24 +1,25 @@
|
||||||
|
#include <string>
|
||||||
|
|
||||||
#include "DisplayApp.h"
|
#include "DisplayApp.h"
|
||||||
#include <FreeRTOS.h>
|
#include <FreeRTOS.h>
|
||||||
#include <task.h>
|
#include <task.h>
|
||||||
#include <libraries/log/nrf_log.h>
|
#include <libraries/log/nrf_log.h>
|
||||||
#include <nrf_font.h>
|
#include <nrf_font.h>
|
||||||
#include <queue.h>
|
#include <queue.h>
|
||||||
#include <Components/DateTime/DateTimeController.h>
|
#include "components/datetime/DateTimeController.h"
|
||||||
#include <drivers/Cst816s.h>
|
#include <drivers/Cst816s.h>
|
||||||
#include <string>
|
#include "displayapp/screens/Tile.h"
|
||||||
#include <DisplayApp/Screens/Tile.h>
|
#include "displayapp/screens/Meter.h"
|
||||||
#include <DisplayApp/Screens/Meter.h>
|
#include "displayapp/screens/Gauge.h"
|
||||||
#include <DisplayApp/Screens/Gauge.h>
|
#include "displayapp/screens/Brightness.h"
|
||||||
#include <DisplayApp/Screens/Brightness.h>
|
#include "displayapp/screens/SystemInfo.h"
|
||||||
#include <DisplayApp/Screens/SystemInfo.h>
|
#include "displayapp/screens/Music.h"
|
||||||
#include <DisplayApp/Screens/Music.h>
|
#include "components/ble/NotificationManager.h"
|
||||||
#include <Components/Ble/NotificationManager.h>
|
#include "displayapp/screens/FirmwareUpdate.h"
|
||||||
#include <DisplayApp/Screens/FirmwareUpdate.h>
|
#include "displayapp/screens/ApplicationList.h"
|
||||||
#include <DisplayApp/Screens/ApplicationList.h>
|
#include "displayapp/screens/FirmwareValidation.h"
|
||||||
#include <DisplayApp/Screens/FirmwareValidation.h>
|
#include "displayapp/screens/InfiniPaint.h"
|
||||||
#include <DisplayApp/Screens/InfiniPaint.h>
|
#include "systemtask/SystemTask.h"
|
||||||
#include "../SystemTask/SystemTask.h"
|
|
||||||
|
|
||||||
using namespace Pinetime::Applications;
|
using namespace Pinetime::Applications;
|
||||||
|
|
||||||
|
@ -43,13 +44,13 @@ DisplayApp::DisplayApp(Drivers::St7789 &lcd, Components::LittleVgl &lvgl, Driver
|
||||||
}
|
}
|
||||||
|
|
||||||
void DisplayApp::Start() {
|
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);
|
APP_ERROR_HANDLER(NRF_ERROR_NO_MEM);
|
||||||
}
|
}
|
||||||
|
|
||||||
void DisplayApp::Process(void *instance) {
|
void DisplayApp::Process(void *instance) {
|
||||||
auto *app = static_cast<DisplayApp *>(instance);
|
auto *app = static_cast<DisplayApp *>(instance);
|
||||||
NRF_LOG_INFO("DisplayApp task started!");
|
NRF_LOG_INFO("displayapp task started!");
|
||||||
app->InitHw();
|
app->InitHw();
|
||||||
|
|
||||||
// Send a dummy notification to unlock the lvgl display driver for the first iteration
|
// Send a dummy notification to unlock the lvgl display driver for the first iteration
|
||||||
|
@ -148,7 +149,7 @@ void DisplayApp::Refresh() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// lvgl.SetFullRefresh(Components::LittleVgl::FullRefreshDirections::Down);
|
// lvgl.SetFullRefresh(components::LittleVgl::FullRefreshDirections::Down);
|
||||||
// currentScreen.reset(nullptr);
|
// currentScreen.reset(nullptr);
|
||||||
// if(toggle) {
|
// if(toggle) {
|
||||||
// currentScreen.reset(new Screens::Tile(this));
|
// currentScreen.reset(new Screens::Tile(this));
|
|
@ -3,21 +3,21 @@
|
||||||
#include <task.h>
|
#include <task.h>
|
||||||
#include <drivers/St7789.h>
|
#include <drivers/St7789.h>
|
||||||
#include <drivers/SpiMaster.h>
|
#include <drivers/SpiMaster.h>
|
||||||
#include <Components/Gfx/Gfx.h>
|
|
||||||
#include <bits/unique_ptr.h>
|
#include <bits/unique_ptr.h>
|
||||||
#include <queue.h>
|
#include <queue.h>
|
||||||
#include <Components/Battery/BatteryController.h>
|
#include "components/gfx/Gfx.h"
|
||||||
#include <Components/Brightness/BrightnessController.h>
|
#include "components/battery/BatteryController.h"
|
||||||
#include <Components/Ble/BleController.h>
|
#include "components/brightness/BrightnessController.h"
|
||||||
#include <Components/DateTime/DateTimeController.h>
|
#include "components/ble/BleController.h"
|
||||||
#include "../drivers/Cst816s.h"
|
#include "components/datetime/DateTimeController.h"
|
||||||
|
#include "components/ble/NotificationManager.h"
|
||||||
|
#include "components/firmwarevalidator/FirmwareValidator.h"
|
||||||
|
#include "drivers/Cst816s.h"
|
||||||
#include "LittleVgl.h"
|
#include "LittleVgl.h"
|
||||||
#include <date/date.h>
|
#include <date/date.h>
|
||||||
#include <DisplayApp/Screens/Clock.h>
|
#include "displayapp/screens/Clock.h"
|
||||||
|
#include "displayapp/screens/Modal.h"
|
||||||
#include <drivers/Watchdog.h>
|
#include <drivers/Watchdog.h>
|
||||||
#include <DisplayApp/Screens/Modal.h>
|
|
||||||
#include <Components/Ble/NotificationManager.h>
|
|
||||||
#include <Components/FirmwareValidator/FirmwareValidator.h>
|
|
||||||
#include "TouchEvents.h"
|
#include "TouchEvents.h"
|
||||||
#include "Apps.h"
|
#include "Apps.h"
|
||||||
|
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |