/*==============================================================================
Generated on: 2025-06-11 20:35:54.066465
Generated by: betaflight_target_converter.py
Source: https://github.com/betaflight/unified-targets
Board name: NBD_INFINITYAIOV2PRO
Manufacturer ID: NEBD

//copy this line to madflight.ino to use this flight controller
#define MF_BOARD "brd/betaflight/NEBD-NBD_INFINITYAIOV2PRO.h"

Note: madflight will pick the last sensor defined here, this might not be the sensor that is actually on the board. Comment the offending sensors out, or use madflight_config to override.
==============================================================================*/

#define MF_BOARD_NAME "BETAFLIGHT-NEBD-NBD_INFINITYAIOV2PRO"
#define MF_MCU_NAME "STM32F745"

const char madflight_board[] = R""(
imu_bus_type SPI
// resource BEEPER 1 D13
pin_out0 PC9 // resource MOTOR 1 C09
pin_out1 PC8 // resource MOTOR 2 C08
pin_out2 PC7 // resource MOTOR 3 C07
pin_out3 PC6 // resource MOTOR 4 C06
// resource LED_STRIP 1 A09
pin_ser1_tx PA2 // resource SERIAL_TX 2 A02
pin_ser2_tx PB10 // resource SERIAL_TX 3 B10
pin_ser6_tx PE8 // resource SERIAL_TX 7 E08
pin_ser7_tx PE1 // resource SERIAL_TX 8 E01
pin_ser0_rx PB7 // resource SERIAL_RX 1 B07
pin_ser1_rx PA3 // resource SERIAL_RX 2 A03
pin_ser2_rx PB11 // resource SERIAL_RX 3 B11
pin_ser4_rx PD2 // resource SERIAL_RX 5 D02
pin_ser7_rx PE0 // resource SERIAL_RX 8 E00
pin_i2c0_scl PB8 // resource I2C_SCL 1 B08
pin_i2c0_sda PB9 // resource I2C_SDA 1 B09
pin_led PC0 // resource LED 1 C00
pin_spi0_sclk PA5 // resource SPI_SCK 1 A05
pin_spi1_sclk PB13 // resource SPI_SCK 2 B13
pin_spi2_sclk PB3 // resource SPI_SCK 3 B03
pin_spi3_sclk PE12 // resource SPI_SCK 4 E12
pin_spi0_miso PA6 // resource SPI_MISO 1 A06
pin_spi1_miso PB14 // resource SPI_MISO 2 B14
pin_spi2_miso PB4 // resource SPI_MISO 3 B04
pin_spi3_miso PE13 // resource SPI_MISO 4 E13
pin_spi0_mosi PA7 // resource SPI_MOSI 1 A07
pin_spi1_mosi PB15 // resource SPI_MOSI 2 B15
pin_spi2_mosi PD6 // resource SPI_MOSI 3 D06
pin_spi3_mosi PE14 // resource SPI_MOSI 4 E14
pin_bat_v PC1 // resource ADC_BATT 1 C01
bat_gizmo ADC
pin_bat_i PC2 // resource ADC_CURR 1 C02
bat_gizmo ADC
// resource FLASH_CS 1 B00
// resource OSD_CS 1 A15
pin_imu_int PB1 // resource GYRO_EXTI 1 B01
// resource GYRO_EXTI 2 D00
pin_imu_cs PE11 // resource GYRO_CS 1 E11
// resource GYRO_CS 2 B12
// set gyro_to_use = BOTH
// set mag_bustype = I2C
mag_i2c_bus 0 // set mag_i2c_device = 1
// set serialrx_provider = SBUS
// set blackbox_device = SPIFLASH
// set dshot_burst = AUTO
// set dshot_bidir = ON
// set motor_pwm_protocol = DSHOT600
// set current_meter = ADC
// set battery_meter = ADC
// set ibata_scale = 230
// set beeper_inversion = ON
// set beeper_od = OFF
// set beeper_frequency = 5400
// set max7456_spi_bus = 3
// set flash_spi_bus = 1
// set gyro_1_bustype = SPI
imu_spi_bus 3 // set gyro_1_spibus = 4
// set gyro_2_spibus = 2
// set gyro_2_sensor_align = CW270
// set gyro_2_align_yaw = 2700
)""; //end of madflight_board


/*
#==============================================================================
# BetaFlight Source file
#==============================================================================
# Betaflight / STM32F745 (S745) 4.2.11 Nov  9 2021 / 20:29:04 (948ba6339) MSP API: 1.43

#define USE_ACC
#define USE_GYRO
#define USE_ACCGYRO_BMI270
#define USE_FLASH
#define USE_FLASH_W25Q128FV
#define USE_MAX7456

board_name NBD_INFINITYAIOV2PRO
manufacturer_id NEBD

# resources
resource BEEPER 1 D13
resource MOTOR 1 C09
resource MOTOR 2 C08
resource MOTOR 3 C07
resource MOTOR 4 C06
resource LED_STRIP 1 A09
resource SERIAL_TX 2 A02
resource SERIAL_TX 3 B10
resource SERIAL_TX 7 E08
resource SERIAL_TX 8 E01
resource SERIAL_RX 1 B07
resource SERIAL_RX 2 A03
resource SERIAL_RX 3 B11
resource SERIAL_RX 5 D02
resource SERIAL_RX 8 E00
resource I2C_SCL 1 B08
resource I2C_SDA 1 B09
resource LED 1 C00
resource SPI_SCK 1 A05
resource SPI_SCK 2 B13
resource SPI_SCK 3 B03
resource SPI_SCK 4 E12
resource SPI_MISO 1 A06
resource SPI_MISO 2 B14
resource SPI_MISO 3 B04
resource SPI_MISO 4 E13
resource SPI_MOSI 1 A07
resource SPI_MOSI 2 B15
resource SPI_MOSI 3 D06
resource SPI_MOSI 4 E14
resource ADC_BATT 1 C01
resource ADC_CURR 1 C02
resource FLASH_CS 1 B00
resource OSD_CS 1 A15
resource GYRO_EXTI 1 B01
resource GYRO_EXTI 2 D00
resource GYRO_CS 1 E11
resource GYRO_CS 2 B12

# timer
timer C09 AF2
# pin C09: TIM3 CH4 (AF2)
timer C08 AF2
# pin C08: TIM3 CH3 (AF2)
timer C07 AF2
# pin C07: TIM3 CH2 (AF2)
timer C06 AF2
# pin C06: TIM3 CH1 (AF2)
timer A09 AF1
# pin A09: TIM1 CH2 (AF1)
timer D13 AF2
# pin D13: TIM4 CH2 (AF2)

# dma
dma ADC 1 0
# ADC 1: DMA2 Stream 0 Channel 0
dma pin C09 0
# pin C09: DMA1 Stream 2 Channel 5
dma pin C08 0
# pin C08: DMA1 Stream 7 Channel 5
dma pin C07 0
# pin C07: DMA1 Stream 5 Channel 5
dma pin C06 0
# pin C06: DMA1 Stream 4 Channel 5
dma pin A09 0
# pin A09: DMA2 Stream 6 Channel 0
dma pin D13 0
# pin D13: DMA1 Stream 3 Channel 2

# feature
feature RX_SERIAL
feature OSD

# serial
serial 0 64 115200 57600 0 115200

# master
set gyro_to_use = BOTH
set mag_bustype = I2C
set mag_i2c_device = 1
set serialrx_provider = SBUS
set blackbox_device = SPIFLASH
set dshot_burst = AUTO
set dshot_bidir = ON
set motor_pwm_protocol = DSHOT600
set current_meter = ADC
set battery_meter = ADC
set ibata_scale = 230
set beeper_inversion = ON
set beeper_od = OFF
set beeper_frequency = 5400
set max7456_spi_bus = 3
set flash_spi_bus = 1
set gyro_1_bustype = SPI
set gyro_1_spibus = 4
set gyro_2_spibus = 2
set gyro_2_sensor_align = CW270
set gyro_2_align_yaw = 2700

*/
