Update includes to to be relative to src directory
Don't use relative imports like `../foo.h` as those depend on the relative position of both files. Rather than that use imports relative to the `src` directory, which explicitly is part of the include directories.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#include <libraries/delay/nrf_delay.h>
|
||||
#include <libraries/log/nrf_log.h>
|
||||
#include "Bma421.h"
|
||||
#include "TwiMaster.h"
|
||||
#include "drivers/Bma421.h"
|
||||
#include "drivers/TwiMaster.h"
|
||||
#include <drivers/Bma421_C/bma423.h>
|
||||
|
||||
using namespace Pinetime::Drivers;
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "Cst816s.h"
|
||||
#include "drivers/Cst816s.h"
|
||||
#include <FreeRTOS.h>
|
||||
#include <legacy/nrf_drv_gpiote.h>
|
||||
#include <nrfx_log.h>
|
||||
|
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "TwiMaster.h"
|
||||
#include "drivers/TwiMaster.h"
|
||||
|
||||
namespace Pinetime {
|
||||
namespace Drivers {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "DebugPins.h"
|
||||
#include "drivers/DebugPins.h"
|
||||
#include <hal/nrf_gpio.h>
|
||||
|
||||
#ifdef USE_DEBUG_PINS
|
||||
|
@@ -6,7 +6,7 @@
|
||||
|
||||
#include <algorithm>
|
||||
#include <nrf_gpio.h>
|
||||
#include "Hrs3300.h"
|
||||
#include "drivers/Hrs3300.h"
|
||||
|
||||
#include <FreeRTOS.h>
|
||||
#include <task.h>
|
||||
|
@@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "TwiMaster.h"
|
||||
#include "drivers/TwiMaster.h"
|
||||
|
||||
namespace Pinetime {
|
||||
namespace Drivers {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "InternalFlash.h"
|
||||
#include "drivers/InternalFlash.h"
|
||||
#include <mdk/nrf.h>
|
||||
using namespace Pinetime::Drivers;
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "Spi.h"
|
||||
#include "drivers/Spi.h"
|
||||
#include <hal/nrf_gpio.h>
|
||||
#include <nrfx_log.h>
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#pragma once
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
#include "SpiMaster.h"
|
||||
#include "drivers/SpiMaster.h"
|
||||
|
||||
namespace Pinetime {
|
||||
namespace Drivers {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "SpiMaster.h"
|
||||
#include "drivers/SpiMaster.h"
|
||||
#include <hal/nrf_gpio.h>
|
||||
#include <hal/nrf_spim.h>
|
||||
#include <nrfx_log.h>
|
||||
|
@@ -1,8 +1,8 @@
|
||||
#include "SpiNorFlash.h"
|
||||
#include "drivers/SpiNorFlash.h"
|
||||
#include <hal/nrf_gpio.h>
|
||||
#include <libraries/delay/nrf_delay.h>
|
||||
#include <libraries/log/nrf_log.h>
|
||||
#include "Spi.h"
|
||||
#include "drivers/Spi.h"
|
||||
|
||||
using namespace Pinetime::Drivers;
|
||||
|
||||
|
@@ -1,8 +1,8 @@
|
||||
#include "St7789.h"
|
||||
#include "drivers/St7789.h"
|
||||
#include <hal/nrf_gpio.h>
|
||||
#include <libraries/delay/nrf_delay.h>
|
||||
#include <nrfx_log.h>
|
||||
#include "Spi.h"
|
||||
#include "drivers/Spi.h"
|
||||
|
||||
using namespace Pinetime::Drivers;
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "TwiMaster.h"
|
||||
#include "drivers/TwiMaster.h"
|
||||
#include <cstring>
|
||||
#include <hal/nrf_gpio.h>
|
||||
#include <nrfx_log.h>
|
||||
|
@@ -1,4 +1,4 @@
|
||||
#include "Watchdog.h"
|
||||
#include "drivers/Watchdog.h"
|
||||
#include <mdk/nrf.h>
|
||||
using namespace Pinetime::Drivers;
|
||||
|
||||
|
Reference in New Issue
Block a user