chore: more OTX to ETX housekeeping (#5396)

This commit is contained in:
Peter Feerick
2024-08-14 21:02:29 +10:00
committed by GitHub
parent 0768091fe1
commit 839cfbd53c
487 changed files with 537 additions and 1651 deletions
+1 -1
View File
@@ -23,7 +23,7 @@
#include "stm32_gpio.h"
#include "stm32_timer.h"
#include "opentx_types.h"
#include "edgetx_types.h"
#include "board.h"
#include "globals.h"
+1 -1
View File
@@ -22,7 +22,7 @@
#include "hal/gpio.h"
#include "stm32_gpio.h"
#include "opentx.h"
#include "edgetx.h"
#include "battery_driver.h"
#define __BATTERY_DRIVER_C__
+2 -5
View File
@@ -19,11 +19,10 @@
* GNU General Public License for more details.
*/
#ifndef _BOARD_H_
#define _BOARD_H_
#pragma once
#include "definitions.h"
#include "opentx_constants.h"
#include "edgetx_constants.h"
#include "board_common.h"
#include "hal.h"
@@ -240,5 +239,3 @@ void hapticOn(uint32_t pwmPercent);
bool touchPanelEventOccured();
struct TouchState touchPanelRead();
struct TouchState getInternalTouchState();
#endif // _BOARD_H_
+1 -4
View File
@@ -19,8 +19,7 @@
* GNU General Public License for more details.
*/
#ifndef _HAL_H_
#define _HAL_H_
#pragma once
#define CPU_FREQ 168000000
@@ -476,5 +475,3 @@
#define LCD_DEPTH 16
#define LCD_CONTRAST_DEFAULT 20
#endif // _HAL_H_
+1 -1
View File
@@ -22,7 +22,7 @@
#include "stm32_hal_ll.h"
#include "stm32_hal.h"
#include "opentx_types.h"
#include "edgetx_types.h"
#include "dma2d.h"
#include "hal.h"
#include "hal/gpio.h"
+1 -10
View File
@@ -19,8 +19,7 @@
* GNU General Public License for more details.
*/
#ifndef __LCD_DRIVER_H__
#define __LCD_DRIVER_H__
#pragma once
#define HBP ( 24 ) // TODO use names from FlySky
#define VBP ( 10 )
@@ -91,11 +90,3 @@ extern lcdSpiInitFucPtr lcdOnFunction;
#define VERTICAL_BACK_PORCH ( 6 )
#define VERTICAL_FRONT_PORCH ( 14 - VERTICAL_BACK_PORCH )
#endif
#endif
+2 -3
View File
@@ -71,8 +71,8 @@
*
******************************************************************************
*/
#ifndef __FT6X06_H
#define __FT6X06_H
#pragma once
#ifdef __cplusplus
extern "C" {
@@ -364,4 +364,3 @@ extern void TouchDriver( void );
#ifdef __cplusplus
}
#endif
#endif /* __FT6X06_H */
+1 -4
View File
@@ -19,8 +19,7 @@
* GNU General Public License for more details.
*/
#ifndef _USB_DESCRIPTOR_H_
#define _USB_DESCRIPTOR_H_
#pragma once
#if (PCBREV == EL18)
#define USB_NAME "Flysky EL18"
@@ -31,5 +30,3 @@
#define USB_MANUFACTURER 'F', 'l', 'y', 's', 'k', 'y', ' ', ' ' /* 8 bytes */
#define USB_PRODUCT 'N', 'V', '1', '4', ' ', ' ', ' ', ' ' /* 8 Bytes */
#endif
#endif // _USB_DESCRIPTOR_H_