1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Convert target.h

This commit is contained in:
jflyper 2018-04-13 02:17:09 +09:00
parent 78bc3f52ad
commit 3983902efb
38 changed files with 78 additions and 56 deletions

View file

@ -65,7 +65,8 @@
#define M25P16_SPI_INSTANCE SPI2 #define M25P16_SPI_INSTANCE SPI2
#define USE_VCP #define USE_VCP
#define VBUS_SENSING_PIN PD2 #define USE_USB_DETECT
#define USB_DETECT_PIN PD2
#define USE_UART1 #define USE_UART1
#define UART1_RX_PIN PA10 #define UART1_RX_PIN PA10

View file

@ -60,7 +60,8 @@
#define USABLE_TIMER_CHANNEL_COUNT 16 #define USABLE_TIMER_CHANNEL_COUNT 16
#define USE_VCP #define USE_VCP
#define VBUS_SENSING_PIN PA8 #define USE_USB_DETECT
#define USB_DETECT_PIN PA8
#define USE_UART1 #define USE_UART1
#define UART1_RX_PIN PA10 #define UART1_RX_PIN PA10

View file

@ -56,7 +56,8 @@
#define USABLE_TIMER_CHANNEL_COUNT 16 #define USABLE_TIMER_CHANNEL_COUNT 16
#define USE_VCP #define USE_VCP
#define VBUS_SENSING_PIN PA8 #define USE_USB_DETECT
#define USB_DETECT_PIN PA8
#define USE_UART1 #define USE_UART1
#define UART1_RX_PIN PA10 #define UART1_RX_PIN PA10

View file

@ -73,8 +73,8 @@
#define SDCARD_DMA_CHANNEL 0 #define SDCARD_DMA_CHANNEL 0
#define USE_VCP #define USE_VCP
#define VBUS_SENSING_ENABLED #define USE_USB_DETECT
#define VBUS_SENSING_PIN PC5 #define USB_DETECT_PIN PC5
#define USE_UART1 #define USE_UART1
#define UART1_RX_PIN PA10 #define UART1_RX_PIN PA10

View file

@ -68,7 +68,8 @@
#define USE_FLASH_M25P16 #define USE_FLASH_M25P16
#define USE_VCP #define USE_VCP
#define VBUS_SENSING_PIN PC5 #define USE_USB_DETECT
#define USB_DETECT_PIN PC5
#define USE_UART1 #define USE_UART1

View file

@ -97,8 +97,8 @@
#define USE_FLASH_M25P16 #define USE_FLASH_M25P16
#define USE_VCP #define USE_VCP
//#define VBUS_SENSING_PIN PA8 //#define USB_DETECT_PIN PA8
//#define VBUS_SENSING_ENABLED //#define USE_USB_DETECT
#define USE_UART1 #define USE_UART1
#define UART1_RX_PIN PA10 #define UART1_RX_PIN PA10

View file

@ -87,7 +87,8 @@
#define USE_VCP #define USE_VCP
#define VBUS_SENSING_PIN PC5 #define USE_USB_DETECT
#define USB_DETECT_PIN PC5
#define USE_UART1 #define USE_UART1
#define UART1_RX_PIN PA10 #define UART1_RX_PIN PA10

View file

@ -70,7 +70,8 @@
#define USE_VCP #define USE_VCP
#define VBUS_SENSING_PIN PA9 #define USE_USB_DETECT
#define USB_DETECT_PIN PA9
#define USE_UART1 #define USE_UART1
#define UART1_RX_PIN PB7 #define UART1_RX_PIN PB7

View file

@ -71,7 +71,8 @@
#define USE_VCP #define USE_VCP
#define VBUS_SENSING_PIN PA9 #define USE_USB_DETECT
#define USB_DETECT_PIN PA9
#define USE_UART1 #define USE_UART1
#define UART1_RX_PIN PB7 #define UART1_RX_PIN PB7

View file

@ -96,8 +96,8 @@
/*-----------USB-UARTs-------------*/ /*-----------USB-UARTs-------------*/
#define USE_VCP #define USE_VCP
//#define VBUS_SENSING_PIN PA8 //#define USB_DETECT_PIN PA8
//#define VBUS_SENSING_ENABLED //#define USE_USB_DETECT
#define USE_UART1 #define USE_UART1
#define UART1_RX_PIN PA10 #define UART1_RX_PIN PA10

View file

@ -101,8 +101,8 @@
/*-----------USB-UARTs-------------*/ /*-----------USB-UARTs-------------*/
#define USE_VCP #define USE_VCP
//#define VBUS_SENSING_PIN PA8 //#define USB_DETECT_PIN PA8
//#define VBUS_SENSING_ENABLED //#define USE_USB_DETECT
#define USE_UART1 #define USE_UART1
#define UART1_RX_PIN PA10 #define UART1_RX_PIN PA10

View file

@ -51,8 +51,8 @@
// *************** UART ***************************** // *************** UART *****************************
#define USE_VCP #define USE_VCP
#define VBUS_SENSING_PIN PA8 #define USB_DETECT_PIN PA8
#define VBUS_SENSING_ENABLED #define USE_USB_DETECT
#define USE_UART1 #define USE_UART1
#define UART1_RX_PIN PA10 #define UART1_RX_PIN PA10

View file

@ -68,7 +68,8 @@
#define SDCARD_DMA_CHANNEL 0 #define SDCARD_DMA_CHANNEL 0
#define USE_VCP #define USE_VCP
#define VBUS_SENSING_PIN PC5 #define USE_USB_DETECT
#define USB_DETECT_PIN PC5
#define USE_UART1 #define USE_UART1
#define UART1_RX_PIN PA10 #define UART1_RX_PIN PA10

View file

@ -119,8 +119,8 @@
#define M25P16_SPI_INSTANCE SPI3 #define M25P16_SPI_INSTANCE SPI3
#define USE_VCP #define USE_VCP
#define VBUS_SENSING_PIN PC5 #define USB_DETECT_PIN PC5
#define VBUS_SENSING_ENABLED #define USE_USB_DETECT
#define USE_UART1 #define USE_UART1
#define UART1_RX_PIN PA10 #define UART1_RX_PIN PA10

View file

@ -93,7 +93,8 @@
#define M25P16_SPI_INSTANCE SPI3 #define M25P16_SPI_INSTANCE SPI3
#define USE_VCP #define USE_VCP
#define VBUS_SENSING_PIN PC5 #define USE_USB_DETECT
#define USB_DETECT_PIN PC5
#define USE_UART1 #define USE_UART1
#define UART1_RX_PIN PA10 #define UART1_RX_PIN PA10

View file

@ -85,8 +85,8 @@
#define USE_FLASH_M25P16 #define USE_FLASH_M25P16
#define USE_VCP #define USE_VCP
#define VBUS_SENSING_PIN PA8 #define USB_DETECT_PIN PA8
#define VBUS_SENSING_ENABLED #define USE_USB_DETECT
#define USE_UART1 #define USE_UART1
#define UART1_RX_PIN PA10 #define UART1_RX_PIN PA10

View file

@ -63,7 +63,8 @@
#define USE_EXTI #define USE_EXTI
#define USE_VCP #define USE_VCP
#define VBUS_SENSING_PIN PA8 #define USE_USB_DETECT
#define USB_DETECT_PIN PA8
#define USE_UART1 #define USE_UART1
#define UART1_TX_PIN PA9 #define UART1_TX_PIN PA9

View file

@ -106,8 +106,8 @@
#endif #endif
#define USE_VCP #define USE_VCP
#define VBUS_SENSING_PIN PC5 #define USB_DETECT_PIN PC5
#define VBUS_SENSING_ENABLED #define USE_USB_DETECT
#define USE_UART1 #define USE_UART1
#define UART1_RX_PIN PA10 #define UART1_RX_PIN PA10

View file

@ -95,7 +95,8 @@
#define CURRENT_METER_OFFSET_DEFAULT 0 #define CURRENT_METER_OFFSET_DEFAULT 0
#define USE_VCP #define USE_VCP
//#define VBUS_SENSING_PIN PA9 #define USE_USB_DETECT
//#define USB_DETECT_PIN PA9
#define USE_UART1 #define USE_UART1
#define UART1_RX_PIN PA10 #define UART1_RX_PIN PA10

View file

@ -126,8 +126,8 @@
// *************** UART ***************************** // *************** UART *****************************
#define USE_VCP #define USE_VCP
#define VBUS_SENSING_PIN PB12 #define USB_DETECT_PIN PB12
#define VBUS_SENSING_ENABLED #define USE_USB_DETECT
#define USE_UART1 #define USE_UART1
#define UART1_RX_PIN PA10 #define UART1_RX_PIN PA10

View file

@ -73,8 +73,8 @@
// *************** UART ***************************** // *************** UART *****************************
#define USE_VCP #define USE_VCP
#define VBUS_SENSING_PIN PC15 #define USB_DETECT_PIN PC15
#define VBUS_SENSING_ENABLED #define USE_USB_DETECT
#define USE_UART1 #define USE_UART1
#define UART1_RX_PIN PA10 #define UART1_RX_PIN PA10

View file

@ -110,8 +110,8 @@
#define MAX7456_SPI_CS_PIN PB10 #define MAX7456_SPI_CS_PIN PB10
// *************** UART ***************************** // *************** UART *****************************
#define USE_VCP #define USE_VCP
#define VBUS_SENSING_PIN PB12 #define USB_DETECT_PIN PB12
#define VBUS_SENSING_ENABLED #define USE_USB_DETECT
#define USE_UART1 #define USE_UART1
#define UART1_RX_PIN PA10 #define UART1_RX_PIN PA10

View file

@ -66,8 +66,8 @@
#define MAX7456_RESTORE_CLK (SPI_CLOCK_FAST) #define MAX7456_RESTORE_CLK (SPI_CLOCK_FAST)
#define USE_VCP #define USE_VCP
//#define VBUS_SENSING_PIN PC15 //#define USB_DETECT_PIN PC15
//#define VBUS_SENSING_ENABLED //#define USE_USB_DETECT
#define USE_UART1 #define USE_UART1
#define UART1_RX_PIN PA10 #define UART1_RX_PIN PA10

View file

@ -73,8 +73,8 @@
#define I2C1_SDA PB9 #define I2C1_SDA PB9
#define USE_VCP #define USE_VCP
//#define VBUS_SENSING_PIN PA8 //#define USB_DETECT_PIN PA8
//#define VBUS_SENSING_ENABLED //#define USE_USB_DETECT
#define USE_UART1 #define USE_UART1
#define UART1_RX_PIN PA10 #define UART1_RX_PIN PA10

View file

@ -59,7 +59,8 @@
#define MAX7456_RESTORE_CLK (SPI_CLOCK_FAST) #define MAX7456_RESTORE_CLK (SPI_CLOCK_FAST)
#define USE_VCP #define USE_VCP
//#define VBUS_SENSING_PIN PC5 #define USE_USB_DETECT
//#define USB_DETECT_PIN PC5
#define USE_UART1 #define USE_UART1
#define UART1_RX_PIN PB7 #define UART1_RX_PIN PB7

View file

@ -58,7 +58,8 @@
#define USABLE_TIMER_CHANNEL_COUNT 16 #define USABLE_TIMER_CHANNEL_COUNT 16
#define USE_VCP #define USE_VCP
#define VBUS_SENSING_PIN PA9 #define USE_USB_DETECT
#define USB_DETECT_PIN PA9
//#define USE_UART1 //#define USE_UART1
//#define UART1_RX_PIN PA10 //#define UART1_RX_PIN PA10

View file

@ -58,7 +58,8 @@
#define USABLE_TIMER_CHANNEL_COUNT 11 #define USABLE_TIMER_CHANNEL_COUNT 11
#define USE_VCP #define USE_VCP
#define VBUS_SENSING_PIN PA9 #define USE_USB_DETECT
#define USB_DETECT_PIN PA9
//#define USE_UART1 //#define USE_UART1
//#define UART1_RX_PIN PA10 //#define UART1_RX_PIN PA10

View file

@ -158,7 +158,8 @@
#endif // OMNIBUSF4 #endif // OMNIBUSF4
#define USE_VCP #define USE_VCP
#define VBUS_SENSING_PIN PC5 #define USE_USB_DETECT
#define USB_DETECT_PIN PC5
#define USE_UART1 #define USE_UART1
#define UART1_RX_PIN PA10 #define UART1_RX_PIN PA10

View file

@ -115,7 +115,8 @@
//UARTS------------------------------------- //UARTS-------------------------------------
#define USE_VCP #define USE_VCP
#define VBUS_SENSING_PIN PC4 #define USE_USB_DETECT
#define USB_DETECT_PIN PC4
#define USE_UART1 #define USE_UART1
#define UART1_RX_PIN PA10 #define UART1_RX_PIN PA10

View file

@ -183,9 +183,11 @@
#define USE_VCP #define USE_VCP
#if defined(PODIUMF4) #if defined(PODIUMF4)
#define VBUS_SENSING_PIN PA8 #define USE_USB_DETECT
#define USB_DETECT_PIN PA8
#else #else
#define VBUS_SENSING_PIN PC5 #define USE_USB_DETECT
#define USB_DETECT_PIN PC5
#endif #endif
#define USE_UART1 #define USE_UART1

View file

@ -161,7 +161,8 @@
#define VBAT_ADC_PIN PC2 #define VBAT_ADC_PIN PC2
#define USE_VCP #define USE_VCP
#define VBUS_SENSING_PIN PC5 #define USE_USB_DETECT
#define USB_DETECT_PIN PC5
#define TARGET_IO_PORTA 0xffff #define TARGET_IO_PORTA 0xffff

View file

@ -51,7 +51,8 @@
#define USE_MPU_DATA_READY_SIGNAL #define USE_MPU_DATA_READY_SIGNAL
#define USE_VCP #define USE_VCP
//#define VBUS_SENSING_PIN PA9 #define USE_USB_DETECT
//#define USB_DETECT_PIN PA9
#define USE_UART1 // Flexi Port #define USE_UART1 // Flexi Port
#define UART1_RX_PIN PB7 #define UART1_RX_PIN PB7

View file

@ -73,7 +73,8 @@
#define USE_FLASH_TOOLS #define USE_FLASH_TOOLS
#define USE_VCP #define USE_VCP
#define VBUS_SENSING_PIN PA8 #define USE_USB_DETECT
#define USB_DETECT_PIN PA8
#define USE_UART1 #define USE_UART1
#define UART1_RX_PIN PA10 #define UART1_RX_PIN PA10

View file

@ -91,8 +91,8 @@
// *************** UART ***************************** // *************** UART *****************************
#define USE_VCP #define USE_VCP
#define VBUS_SENSING_PIN PB12 #define USB_DETECT_PIN PB12
#define VBUS_SENSING_ENABLED #define USE_USB_DETECT
#define USE_UART1 #define USE_UART1
#define UART1_RX_PIN PA10 #define UART1_RX_PIN PA10

View file

@ -56,8 +56,8 @@
#define USE_VCP #define USE_VCP
#define USB_MSC_BUTTON_PIN PA0 #define USB_MSC_BUTTON_PIN PA0
#define VBUS_SENSING_PIN PA9 #define USB_DETECT_PIN PA9
#define VBUS_SENSING_ENABLED #define USE_USB_DETECT
#define USE_UART1 #define USE_UART1
#define UART1_RX_PIN PB7 #define UART1_RX_PIN PB7

View file

@ -89,8 +89,8 @@
*/ */
#define USE_VCP #define USE_VCP
#define VBUS_SENSING_PIN PA9 #define USB_DETECT_PIN PA9
//#define VBUS_SENSING_ENABLED //#define USE_USB_DETECT
#define USE_UART1 #define USE_UART1
#define UART1_RX_PIN PB7 #define UART1_RX_PIN PB7

View file

@ -66,8 +66,8 @@
#define INVERTER_PIN_UART3 PB12 #define INVERTER_PIN_UART3 PB12
#define USE_VCP #define USE_VCP
#define VBUS_SENSING_PIN PA9 #define USB_DETECT_PIN PA9
#define VBUS_SENSING_ENABLED #define USE_USB_DETECT
#define USE_UART1 #define USE_UART1
#define UART1_RX_PIN PB7 #define UART1_RX_PIN PB7

View file

@ -48,7 +48,8 @@
// Serial ports // Serial ports
#define USE_VCP #define USE_VCP
#define VBUS_SENSING_PIN PA8 #define USE_USB_DETECT
#define USB_DETECT_PIN PA8
#define USE_UART1 #define USE_UART1
#define UART1_RX_PIN PA10 #define UART1_RX_PIN PA10