Ensure OSD elements are on canvas (#12144)
[betaflight.git] / support / scripts / build_spracingh7extreme.sh
blob87b9b29dbf7cca343a89bb8a1dcca6987c0f53c2
1 #!/bin/sh
2 set -x
4 make DEBUG=INFO TARGET=STM32H750 EXTRA_FLAGS="\
5 -D'TARGET_BOARD_IDENTIFIER=\"SP7E\"' \
6 -D'USBD_PRODUCT_STRING=\"SPRacingH7EXTREME\"' \
8 -D'EEPROM_SIZE=8192' \
9 -DUSE_SPRACING_PERSISTENT_RTC_WORKAROUND \
11 -DUSE_BUTTONS \
12 -D'BUTTON_A_PIN=PE4' \
13 -DBUTTON_A_PIN_INVERTED \
14 -D'BUTTON_B_PIN=PE4' \
15 -DBUTTON_B_PIN_INVERTED \
17 -DUSE_QUADSPI \
18 -DUSE_QUADSPI_DEVICE_1 \
19 -D'QUADSPI1_SCK_PIN=PB2' \
20 -D'QUADSPI1_BK1_IO0_PIN=PD11' \
21 -D'QUADSPI1_BK1_IO1_PIN=PD12' \
22 -D'QUADSPI1_BK1_IO2_PIN=PE2' \
23 -D'QUADSPI1_BK1_IO3_PIN=PD13' \
24 -D'QUADSPI1_BK1_CS_PIN=PB10' \
25 -D'QUADSPI1_BK2_IO0_PIN=PE7' \
26 -D'QUADSPI1_BK2_IO1_PIN=PE8' \
27 -D'QUADSPI1_BK2_IO2_PIN=PE9' \
28 -D'QUADSPI1_BK2_IO3_PIN=PE10' \
29 -D'QUADSPI1_BK2_CS_PIN=NONE' \
30 -D'QUADSPI1_MODE=QUADSPI_MODE_BK1_ONLY' \
31 -D'QUADSPI1_CS_FLAGS=(QUADSPI_BK1_CS_HARDWARE | QUADSPI_BK2_CS_NONE | QUADSPI_CS_MODE_LINKED )' \
33 -DUSE_SPI \
35 -DUSE_SPI_DEVICE_2 \
36 -D'SPI2_SCK_PIN=PD3' \
37 -D'SPI2_MISO_PIN=PC2' \
38 -D'SPI2_MOSI_PIN=PC3' \
39 -D'SPI2_NSS_PIN=PB12' \
41 -DUSE_SPI_DEVICE_3 \
42 -D'SPI3_SCK_PIN=PB3' \
43 -D'SPI3_MISO_PIN=PB4' \
44 -D'SPI3_MOSI_PIN=PD6' \
45 -D'SPI3_NSS_PIN=PA15' \
47 -DUSE_SPI_DEVICE_4 \
48 -D'SPI4_SCK_PIN=PE12' \
49 -D'SPI4_MISO_PIN=PE13' \
50 -D'SPI4_MOSI_PIN=PE14' \
51 -D'SPI4_NSS_PIN=PE11' \
53 -DUSE_FLASH_TOOLS \
54 -DUSE_FLASH_W25N01G \
55 -D'FLASH_QUADSPI_INSTANCE=QUADSPI' \
56 -DCONFIG_IN_EXTERNAL_FLASH \
58 -DUSE_SDCARD \
59 -D'SDCARD_DETECT_PIN=PD10' \
60 -DSDCARD_DETECT_INVERTED \
61 -D'SDIO_DEVICE=SDIODEV_1' \
62 -D'SDIO_USE_4BIT=true' \
63 -D'SDIO_CK_PIN=PC12' \
64 -D'SDIO_CMD_PIN=PD2' \
65 -D'SDIO_D0_PIN=PC8' \
66 -D'SDIO_D1_PIN=PC9' \
67 -D'SDIO_D2_PIN=PC10' \
68 -D'SDIO_D3_PIN=PC11' \
70 -D'TARGET_IO_PORTA=0xffff' \
71 -D'TARGET_IO_PORTB=0xffff' \
72 -D'TARGET_IO_PORTC=0xffff' \
73 -D'TARGET_IO_PORTD=0xffff' \
74 -D'TARGET_IO_PORTE=0xffff' \
75 -D'TARGET_IO_PORTF=0xffff' \
76 -D'TARGET_IO_PORTG=0xffff' \
78 -DUSE_USB_ID \
80 -DUSE_I2C \
81 -DUSE_I2C_DEVICE_1 \
82 -D'I2C1_SCL=PB8' \
83 -D'I2C1_SDA=PB9' \
84 -D'I2C_DEVICE=(I2CDEV_1)' \
86 -DUSE_ACC \
87 -DUSE_ACC_SPI_MPU6500 \
88 -DUSE_GYRO \
89 -DUSE_GYRO_SPI_MPU6500 \
90 -DENSURE_MPU_DATA_READY_IS_LOW \
92 -DUSE_PID_AUDIO \
93 -DVTX_RTC6705_OPTIONAL \
95 -D'ADC1_DMA_OPT=8' \
96 -D'ADC3_DMA_OPT=9' \
98 -DUSE_FLASHFS \
99 -DENABLE_BLACKBOX_LOGGING_ON_SDCARD_BY_DEFAULT \
103 # Settings that are currently defined in target/common_pre.h for non-cloud builds that probably shouldn't be.
104 # There are here to illustrate that they SHOULD be included in THIS target when they are removed by default.
106 #-DUSE_MAG \
107 #-DUSE_MAG_HMC5883 \
108 #-DUSE_MAG_QMC5883 \
109 #-DUSE_BARO \
110 #-DUSE_BARO_BMP388 \
111 #-DUSE_TRANSPONDER \
112 #-DUSE_OSD \
113 #-DUSE_MAX7456 \
114 #-DUSE_VTX_COMMON \
115 #-DUSE_VTX_CONTROL \
116 #-DUSE_VTX_RTC6705_SOFTSPI \