Include cleanup: drivers

This commit is contained in:
okaestne 2020-11-15 05:04:22 +01:00
parent f0e1f98823
commit c3475b92fa
No known key found for this signature in database
GPG Key ID: 06A81B143EA9588F
17 changed files with 23 additions and 35 deletions

View File

@ -1,5 +1,6 @@
#pragma once #pragma once
#include <cstddef> #include <cstddef>
#include <cstdint>
namespace Pinetime { namespace Pinetime {
namespace Drivers { namespace Drivers {

View File

@ -1,8 +1,9 @@
#include <FreeRTOS.h>
#include <task.h>
#include <nrfx_log.h>
#include <legacy/nrf_drv_gpiote.h>
#include "Cst816s.h" #include "Cst816s.h"
#include <FreeRTOS.h>
#include <legacy/nrf_drv_gpiote.h>
#include <nrfx_log.h>
#include <task.h>
using namespace Pinetime::Drivers; using namespace Pinetime::Drivers;
/* References : /* References :

View File

@ -1,6 +1,5 @@
#pragma once #pragma once
#include <nrfx_twi.h>
#include "TwiMaster.h" #include "TwiMaster.h"
namespace Pinetime { namespace Pinetime {

View File

@ -1,5 +1,5 @@
#include <hal/nrf_gpio.h>
#include "DebugPins.h" #include "DebugPins.h"
#include <hal/nrf_gpio.h>
#ifdef USE_DEBUG_PINS #ifdef USE_DEBUG_PINS
void debugpins_init() { void debugpins_init() {

View File

@ -1,5 +1,5 @@
#include <mdk/nrf.h>
#include "InternalFlash.h" #include "InternalFlash.h"
#include <mdk/nrf.h>
using namespace Pinetime::Drivers; using namespace Pinetime::Drivers;
void InternalFlash::ErasePage(uint32_t address) { void InternalFlash::ErasePage(uint32_t address) {

View File

@ -1,6 +1,6 @@
#include "Spi.h"
#include <hal/nrf_gpio.h> #include <hal/nrf_gpio.h>
#include <nrfx_log.h> #include <nrfx_log.h>
#include "Spi.h"
using namespace Pinetime::Drivers; using namespace Pinetime::Drivers;

View File

@ -1,12 +1,6 @@
#pragma once #pragma once
#include <FreeRTOS.h>
#include <cstdint> #include <cstdint>
#include <cstddef> #include <cstddef>
#include <array>
#include <atomic>
#include <task.h>
#include "BufferProvider.h"
#include "SpiMaster.h" #include "SpiMaster.h"
namespace Pinetime { namespace Pinetime {

View File

@ -1,10 +1,8 @@
#include <FreeRTOS.h> #include "SpiMaster.h"
#include <hal/nrf_gpio.h> #include <hal/nrf_gpio.h>
#include <hal/nrf_spim.h> #include <hal/nrf_spim.h>
#include "SpiMaster.h"
#include <algorithm>
#include <task.h>
#include <nrfx_log.h> #include <nrfx_log.h>
#include <algorithm>
using namespace Pinetime::Drivers; using namespace Pinetime::Drivers;

View File

@ -1,14 +1,10 @@
#pragma once #pragma once
#include <FreeRTOS.h>
#include <cstdint>
#include <cstddef> #include <cstddef>
#include <array> #include <cstdint>
#include <atomic>
#include <task.h>
#include <semphr.h>
#include "BufferProvider.h" #include <FreeRTOS.h>
#include <semphr.h> #include <semphr.h>
#include <task.h>
namespace Pinetime { namespace Pinetime {
namespace Drivers { namespace Drivers {

View File

@ -1,7 +1,7 @@
#include "SpiNorFlash.h"
#include <hal/nrf_gpio.h> #include <hal/nrf_gpio.h>
#include <libraries/delay/nrf_delay.h> #include <libraries/delay/nrf_delay.h>
#include <libraries/log/nrf_log.h> #include <libraries/log/nrf_log.h>
#include "SpiNorFlash.h"
#include "Spi.h" #include "Spi.h"
using namespace Pinetime::Drivers; using namespace Pinetime::Drivers;

View File

@ -1,5 +1,6 @@
#pragma once #pragma once
#include <cstddef> #include <cstddef>
#include <cstdint>
namespace Pinetime { namespace Pinetime {
namespace Drivers { namespace Drivers {

View File

@ -1,7 +1,7 @@
#include "St7789.h"
#include <hal/nrf_gpio.h> #include <hal/nrf_gpio.h>
#include <libraries/delay/nrf_delay.h> #include <libraries/delay/nrf_delay.h>
#include <nrfx_log.h> #include <nrfx_log.h>
#include "St7789.h"
#include "Spi.h" #include "Spi.h"
using namespace Pinetime::Drivers; using namespace Pinetime::Drivers;

View File

@ -1,5 +1,6 @@
#pragma once #pragma once
#include <cstddef> #include <cstddef>
#include <cstdint>
namespace Pinetime { namespace Pinetime {
namespace Drivers { namespace Drivers {

View File

@ -1,7 +1,7 @@
#include <nrfx_log.h>
#include <hal/nrf_gpio.h>
#include <cstring>
#include "TwiMaster.h" #include "TwiMaster.h"
#include <cstring>
#include <hal/nrf_gpio.h>
#include <nrfx_log.h>
using namespace Pinetime::Drivers; using namespace Pinetime::Drivers;

View File

@ -1,8 +1,6 @@
#pragma once #pragma once
#include <FreeRTOS.h> #include <FreeRTOS.h>
#include <semphr.h> #include <semphr.h>
#include <drivers/include/nrfx_twi.h>
namespace Pinetime { namespace Pinetime {
namespace Drivers { namespace Drivers {

View File

@ -1,7 +1,5 @@
#include <mdk/nrf52.h>
#include <mdk/nrf52_bitfields.h>
#include <nrf_soc.h>
#include "Watchdog.h" #include "Watchdog.h"
#include <mdk/nrf.h>
using namespace Pinetime::Drivers; using namespace Pinetime::Drivers;

View File

@ -1,4 +1,5 @@
#pragma once #pragma once
#include <cstdint>
namespace Pinetime { namespace Pinetime {
namespace Drivers { namespace Drivers {