Merge branch 'restructure_includes' of https://github.com/NeroBurner/InfiniTime into NeroBurner-restructure_includes
# Conflicts: # doc/contribute.md # src/displayapp/screens/BatteryInfo.h
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "AlarmController.h"
|
||||
#include "components/alarm/AlarmController.h"
|
||||
#include "systemtask/SystemTask.h"
|
||||
#include "app_timer.h"
|
||||
#include "task.h"
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "BatteryController.h"
|
||||
#include "components/battery/BatteryController.h"
|
||||
#include "drivers/PinMap.h"
|
||||
#include <hal/nrf_gpio.h>
|
||||
#include <nrfx_saadc.h>
|
||||
|
@@ -1,6 +1,6 @@
|
||||
#include "AlertNotificationClient.h"
|
||||
#include "components/ble/AlertNotificationClient.h"
|
||||
#include <algorithm>
|
||||
#include "NotificationManager.h"
|
||||
#include "components/ble/NotificationManager.h"
|
||||
#include "systemtask/SystemTask.h"
|
||||
|
||||
using namespace Pinetime::Controllers;
|
||||
|
@@ -7,7 +7,7 @@
|
||||
#include <host/ble_gap.h>
|
||||
#undef max
|
||||
#undef min
|
||||
#include "BleClient.h"
|
||||
#include "components/ble/BleClient.h"
|
||||
|
||||
namespace Pinetime {
|
||||
|
||||
|
@@ -1,8 +1,8 @@
|
||||
#include "AlertNotificationService.h"
|
||||
#include "components/ble/AlertNotificationService.h"
|
||||
#include <hal/nrf_rtc.h>
|
||||
#include <cstring>
|
||||
#include <algorithm>
|
||||
#include "NotificationManager.h"
|
||||
#include "components/ble/NotificationManager.h"
|
||||
#include "systemtask/SystemTask.h"
|
||||
|
||||
using namespace Pinetime::Controllers;
|
||||
|
@@ -1,5 +1,5 @@
|
||||
#include "components/ble/BatteryInformationService.h"
|
||||
#include <nrf_log.h>
|
||||
#include "BatteryInformationService.h"
|
||||
#include "components/battery/BatteryController.h"
|
||||
|
||||
using namespace Pinetime::Controllers;
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "BleController.h"
|
||||
#include "components/ble/BleController.h"
|
||||
|
||||
using namespace Pinetime::Controllers;
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "CurrentTimeClient.h"
|
||||
#include "components/ble/CurrentTimeClient.h"
|
||||
#include <hal/nrf_rtc.h>
|
||||
#include <nrf_log.h>
|
||||
#include "components/datetime/DateTimeController.h"
|
||||
|
@@ -5,7 +5,7 @@
|
||||
#undef max
|
||||
#undef min
|
||||
#include <cstdint>
|
||||
#include "BleClient.h"
|
||||
#include "components/ble/BleClient.h"
|
||||
|
||||
namespace Pinetime {
|
||||
namespace Controllers {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "CurrentTimeService.h"
|
||||
#include "components/ble/CurrentTimeService.h"
|
||||
#include <hal/nrf_rtc.h>
|
||||
#include <nrf_log.h>
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "DeviceInformationService.h"
|
||||
#include "components/ble/DeviceInformationService.h"
|
||||
|
||||
using namespace Pinetime::Controllers;
|
||||
|
||||
|
@@ -1,4 +1,5 @@
|
||||
#pragma once
|
||||
#include <cstdint>
|
||||
#define min // workaround: nimble's min/max macros conflict with libstdc++
|
||||
#define max
|
||||
#include <host/ble_gap.h>
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "DfuService.h"
|
||||
#include "components/ble/DfuService.h"
|
||||
#include <cstring>
|
||||
#include "components/ble/BleController.h"
|
||||
#include "drivers/SpiNorFlash.h"
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "HeartRateService.h"
|
||||
#include "components/ble/HeartRateService.h"
|
||||
#include "components/heartrate/HeartRateController.h"
|
||||
#include "systemtask/SystemTask.h"
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
#include "ImmediateAlertService.h"
|
||||
#include "components/ble/ImmediateAlertService.h"
|
||||
#include <cstring>
|
||||
#include "NotificationManager.h"
|
||||
#include "components/ble/NotificationManager.h"
|
||||
#include "systemtask/SystemTask.h"
|
||||
|
||||
using namespace Pinetime::Controllers;
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "MotionService.h"
|
||||
#include "components/ble/MotionService.h"
|
||||
#include "components/motion//MotionController.h"
|
||||
#include "systemtask/SystemTask.h"
|
||||
|
||||
|
@@ -15,7 +15,7 @@
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "MusicService.h"
|
||||
#include "components/ble/MusicService.h"
|
||||
#include "systemtask/SystemTask.h"
|
||||
|
||||
namespace {
|
||||
|
@@ -16,7 +16,7 @@
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "NavigationService.h"
|
||||
#include "components/ble/NavigationService.h"
|
||||
|
||||
#include "systemtask/SystemTask.h"
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "NimbleController.h"
|
||||
#include "components/ble/NimbleController.h"
|
||||
#include <hal/nrf_rtc.h>
|
||||
#define min // workaround: nimble's min/max macros conflict with libstdc++
|
||||
#define max
|
||||
|
@@ -7,19 +7,19 @@
|
||||
#include <host/ble_gap.h>
|
||||
#undef max
|
||||
#undef min
|
||||
#include "AlertNotificationClient.h"
|
||||
#include "AlertNotificationService.h"
|
||||
#include "BatteryInformationService.h"
|
||||
#include "CurrentTimeClient.h"
|
||||
#include "CurrentTimeService.h"
|
||||
#include "DeviceInformationService.h"
|
||||
#include "DfuService.h"
|
||||
#include "ImmediateAlertService.h"
|
||||
#include "MusicService.h"
|
||||
#include "NavigationService.h"
|
||||
#include "ServiceDiscovery.h"
|
||||
#include "HeartRateService.h"
|
||||
#include "MotionService.h"
|
||||
#include "components/ble/AlertNotificationClient.h"
|
||||
#include "components/ble/AlertNotificationService.h"
|
||||
#include "components/ble/BatteryInformationService.h"
|
||||
#include "components/ble/CurrentTimeClient.h"
|
||||
#include "components/ble/CurrentTimeService.h"
|
||||
#include "components/ble/DeviceInformationService.h"
|
||||
#include "components/ble/DfuService.h"
|
||||
#include "components/ble/ImmediateAlertService.h"
|
||||
#include "components/ble/MusicService.h"
|
||||
#include "components/ble/NavigationService.h"
|
||||
#include "components/ble/ServiceDiscovery.h"
|
||||
#include "components/ble/HeartRateService.h"
|
||||
#include "components/ble/MotionService.h"
|
||||
|
||||
namespace Pinetime {
|
||||
namespace Drivers {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "NotificationManager.h"
|
||||
#include "components/ble/NotificationManager.h"
|
||||
#include <cstring>
|
||||
#include <algorithm>
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
#include "ServiceDiscovery.h"
|
||||
#include "components/ble/ServiceDiscovery.h"
|
||||
#include <libraries/log/nrf_log.h>
|
||||
#include "BleClient.h"
|
||||
#include "components/ble/BleClient.h"
|
||||
|
||||
using namespace Pinetime::Controllers;
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "BrightnessController.h"
|
||||
#include "components/brightness/BrightnessController.h"
|
||||
#include <hal/nrf_gpio.h>
|
||||
#include "displayapp/screens/Symbols.h"
|
||||
#include "drivers/PinMap.h"
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "DateTimeController.h"
|
||||
#include "components/datetime/DateTimeController.h"
|
||||
#include <date/date.h>
|
||||
#include <libraries/log/nrf_log.h>
|
||||
#include <systemtask/SystemTask.h>
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "FirmwareValidator.h"
|
||||
#include "components/firmwarevalidator/FirmwareValidator.h"
|
||||
|
||||
#include <hal/nrf_rtc.h>
|
||||
#include "drivers/InternalFlash.h"
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "FS.h"
|
||||
#include "components/fs/FS.h"
|
||||
#include <cstring>
|
||||
#include <littlefs/lfs.h>
|
||||
#include <lvgl/lvgl.h>
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "Gfx.h"
|
||||
#include "components/gfx/Gfx.h"
|
||||
#include "drivers/St7789.h"
|
||||
using namespace Pinetime::Components;
|
||||
|
||||
|
@@ -4,7 +4,7 @@
|
||||
C++ port Copyright (C) 2021 Jean-François Milants
|
||||
*/
|
||||
|
||||
#include "Biquad.h"
|
||||
#include "components/heartrate/Biquad.h"
|
||||
|
||||
using namespace Pinetime::Controllers;
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "HeartRateController.h"
|
||||
#include "components/heartrate/HeartRateController.h"
|
||||
#include <heartratetask/HeartRateTask.h>
|
||||
#include <systemtask/SystemTask.h>
|
||||
|
||||
|
@@ -4,9 +4,9 @@
|
||||
C++ port Copyright (C) 2021 Jean-François Milants
|
||||
*/
|
||||
|
||||
#include "components/heartrate/Ppg.h"
|
||||
#include <vector>
|
||||
#include <nrf_log.h>
|
||||
#include "Ppg.h"
|
||||
using namespace Pinetime::Controllers;
|
||||
|
||||
/** Original implementation from wasp-os : https://github.com/daniel-thompson/wasp-os/blob/master/wasp/ppg.py */
|
||||
|
@@ -1,8 +1,8 @@
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
#include "Biquad.h"
|
||||
#include "Ptagc.h"
|
||||
#include "components/heartrate/Biquad.h"
|
||||
#include "components/heartrate/Ptagc.h"
|
||||
|
||||
namespace Pinetime {
|
||||
namespace Controllers {
|
||||
|
@@ -4,8 +4,8 @@
|
||||
C++ port Copyright (C) 2021 Jean-François Milants
|
||||
*/
|
||||
|
||||
#include "components/heartrate/Ptagc.h"
|
||||
#include <cmath>
|
||||
#include "Ptagc.h"
|
||||
|
||||
using namespace Pinetime::Controllers;
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "MotionController.h"
|
||||
#include "components/motion/MotionController.h"
|
||||
|
||||
using namespace Pinetime::Controllers;
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "MotorController.h"
|
||||
#include "components/motor/MotorController.h"
|
||||
#include <hal/nrf_gpio.h>
|
||||
#include "systemtask/SystemTask.h"
|
||||
#include "app_timer.h"
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "RleDecoder.h"
|
||||
#include "components/rle/RleDecoder.h"
|
||||
|
||||
using namespace Pinetime::Tools;
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "Settings.h"
|
||||
#include "components/settings/Settings.h"
|
||||
#include <cstdlib>
|
||||
#include <cstring>
|
||||
|
||||
|
@@ -2,7 +2,7 @@
|
||||
// Created by florian on 16.05.21.
|
||||
//
|
||||
|
||||
#include "TimerController.h"
|
||||
#include "components/timer/TimerController.h"
|
||||
#include "systemtask/SystemTask.h"
|
||||
#include "app_timer.h"
|
||||
#include "task.h"
|
||||
|
Reference in New Issue
Block a user