Skip to content

Commit

Permalink
cleanup headers
Browse files Browse the repository at this point in the history
  • Loading branch information
rtlopez committed Nov 5, 2024
1 parent ae4a90a commit 244de0e
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 20 deletions.
1 change: 0 additions & 1 deletion lib/EspWire/src/EspWire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ extern "C" {
#include <string.h>
#include <inttypes.h>
}

#include "esp_twi.h"
#include "EspWire.h"

Expand Down
4 changes: 1 addition & 3 deletions lib/EspWire/src/EspWire.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@
#define EspTwoWire_h

#include <cinttypes>
#ifndef UNIT_TEST
#include <Stream.h>
#endif
#include <Arduino.h>

#define ESPWIRE_BUFFER_LENGTH 64

Expand Down
6 changes: 1 addition & 5 deletions lib/EspWire/src/esp_twi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,11 @@
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <Arduino.h>
#include "esp_twi.h"
#if defined(ESP32C3)
#include <soc/cpu.h>
#endif
#ifndef UNIT_TEST
#include <pins_arduino.h>
#include <wiring_private.h>
#else
#endif

uint16_t esp_twi_dcount = 18;
static unsigned char esp_twi_sda, esp_twi_scl;
Expand Down
1 change: 0 additions & 1 deletion lib/EspWire/src/esp_twi.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
*/
#ifndef ESP_TWI_H
#define ESP_TWI_H
#include <Arduino.h>

#ifdef __cplusplus
extern "C" {
Expand Down
1 change: 0 additions & 1 deletion lib/Espfc/src/Buzzer.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
//#include <Arduino.h>
#include "Buzzer.h"
#include "Hal/Gpio.h"

Expand Down
4 changes: 1 addition & 3 deletions lib/Espfc/src/Device/FlashDevice.h
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
#pragma once

#include <Arduino.h>
#include <platform.h>
#include <algorithm>
#include "esp_partition.h"
#include <esp_partition.h>

namespace Espfc {

Expand Down
2 changes: 0 additions & 2 deletions lib/Espfc/src/ModelState.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#ifndef _ESPFC_MODEL_STATE_H_
#define _ESPFC_MODEL_STATE_H_

#include <Arduino.h>

#ifndef UNIT_TEST
#include <IPAddress.h>
#endif
Expand Down
7 changes: 3 additions & 4 deletions lib/betaflight/src/platform_cpp.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include <Arduino.h>
#include <platform.h>
#include "platform.h"
#include "Device/SerialDevice.h"
#include "EscDriver.h"
#include "Hal/Gpio.h"
Expand All @@ -14,11 +13,11 @@ void IOConfigGPIO(IO_t pin, uint8_t mode)
{
switch(mode) {
case IOCFG_IPU:
::pinMode(pin, INPUT_PULLUP);
Espfc::Hal::Gpio::pinMode(pin, INPUT_PULLUP);
break;
case IOCFG_OUT_PP:
case IOCFG_AF_PP:
::pinMode(pin, OUTPUT);
Espfc::Hal::Gpio::pinMode(pin, OUTPUT);
break;
}
}
Expand Down

0 comments on commit 244de0e

Please sign in to comment.