|
#define | BOARD_TAWAKI |
|
#define | BOARD_NAME "Tawaki Autopilot" |
|
#define | STM32_LSECLK 32768U |
|
#define | STM32_LSEDRV (3U << 3U) |
|
#define | STM32_HSECLK 16000000U |
|
#define | STM32_VDD 300U |
|
#define | STM32F777xx |
|
#define | PA00_AUX_A1 0U |
|
#define | PA01_AUX_A2 1U |
|
#define | PA02_AUX_A3 2U |
|
#define | PA03_AUX_B1 3U |
|
#define | PA04 4U |
|
#define | PA05 5U |
|
#define | PA06_AUX_A4 6U |
|
#define | PA07_AUX_B2 7U |
|
#define | PA08 8U |
|
#define | PA09_USB_VBUS 9U |
|
#define | PA10_LED2 10U |
|
#define | PA11_OTG_FS_DM 11U |
|
#define | PA12_OTG_FS_DP 12U |
|
#define | PA13_SWDIO 13U |
|
#define | PA14_SWCLK 14U |
|
#define | PA15_UART7_TX 15U |
|
#define | PB00_AUX_B3 0U |
|
#define | PB01_AUX_B4 1U |
|
#define | PB02 2U |
|
#define | PB03_UART7_RX 3U |
|
#define | PB04 4U |
|
#define | PB05_DSHOT_RX 5U |
|
#define | PB06_SRVB1 6U |
|
#define | PB07_SRVB2 7U |
|
#define | PB08_SRVB3 8U |
|
#define | PB09_SRVB4 9U |
|
#define | PB10_I2C2_SCL_EXTERNAL 10U |
|
#define | PB11_I2C2_SDA_EXTERNAL 11U |
|
#define | PB12_SPI2_CS_EXTERNAL 12U |
|
#define | PB13 13U |
|
#define | PB14_SPI2_EXTERNAL_MISO 14U |
|
#define | PB15_SPI2_EXTERNAL_MOSI 15U |
|
#define | PC00_VBAT_MEAS 0U |
|
#define | PC01 1U |
|
#define | PC02 2U |
|
#define | PC03 3U |
|
#define | PC04 4U |
|
#define | PC05 5U |
|
#define | PC06_RC2 6U |
|
#define | PC07_LED3 7U |
|
#define | PC08_SDMMC1_D0 8U |
|
#define | PC09_SDMMC1_D1 9U |
|
#define | PC10_SDMMC1_D2 10U |
|
#define | PC11_SDMMC1_D3 11U |
|
#define | PC12_SDMMC1_CK 12U |
|
#define | PC13_APSW 13U |
|
#define | PC14_OSC32_IN 14U |
|
#define | PC15_OSC32_OUT 15U |
|
#define | PD00_CAN_RX 0U |
|
#define | PD01_CAN_TX 1U |
|
#define | PD02_SDMMC1_CMD 2U |
|
#define | PD03_SPI2_EXTERNAL_CLK 3U |
|
#define | PD04 4U |
|
#define | PD05_UART_TX2 5U |
|
#define | PD06_UART_RX2 6U |
|
#define | PD07 7U |
|
#define | PD08_UART_TX3 8U |
|
#define | PD09_UART_RX3 9U |
|
#define | PD10_LED4 10U |
|
#define | PD11 11U |
|
#define | PD12_I2C4_SCL_EXTERNAL 12U |
|
#define | PD13_I2C4_SDA_EXTERNAL 13U |
|
#define | PD14 14U |
|
#define | PD15_LED1 15U |
|
#define | PE00_RC1 0U |
|
#define | PE01 1U |
|
#define | PE02_SPI4_INTERNAL_CLK 2U |
|
#define | PE03 3U |
|
#define | PE04_SPI4_CS_INTERNAL 4U |
|
#define | PE05_SPI4_INTERNAL_MISO 5U |
|
#define | PE06_SPI4_INTERNAL_MOSI 6U |
|
#define | PE07 7U |
|
#define | PE08 8U |
|
#define | PE09_SRVA1 9U |
|
#define | PE10 10U |
|
#define | PE11_SRVA2 11U |
|
#define | PE12 12U |
|
#define | PE13_SRVA3 13U |
|
#define | PE14_SRVA4 14U |
|
#define | PE15 15U |
|
#define | PF00 0U |
|
#define | PF01 1U |
|
#define | PF02 2U |
|
#define | PF03 3U |
|
#define | PF04 4U |
|
#define | PF05 5U |
|
#define | PF06 6U |
|
#define | PF07 7U |
|
#define | PF08 8U |
|
#define | PF09 9U |
|
#define | PF10 10U |
|
#define | PF11 11U |
|
#define | PF12 12U |
|
#define | PF13 13U |
|
#define | PF14 14U |
|
#define | PF15 15U |
|
#define | PG00 0U |
|
#define | PG01 1U |
|
#define | PG02 2U |
|
#define | PG03 3U |
|
#define | PG04 4U |
|
#define | PG05 5U |
|
#define | PG06 6U |
|
#define | PG07 7U |
|
#define | PG08 8U |
|
#define | PG09 9U |
|
#define | PG10 10U |
|
#define | PG11 11U |
|
#define | PG12 12U |
|
#define | PG13 13U |
|
#define | PG14 14U |
|
#define | PG15 15U |
|
#define | PH00_OSC_IN 0U |
|
#define | PH01_OSC_OUT 1U |
|
#define | PH02 2U |
|
#define | PH03 3U |
|
#define | PH04 4U |
|
#define | PH05 5U |
|
#define | PH06 6U |
|
#define | PH07 7U |
|
#define | PH08 8U |
|
#define | PH09 9U |
|
#define | PH10 10U |
|
#define | PH11 11U |
|
#define | PH12 12U |
|
#define | PH13 13U |
|
#define | PH14 14U |
|
#define | PH15 15U |
|
#define | PI00 0U |
|
#define | PI01 1U |
|
#define | PI02 2U |
|
#define | PI03 3U |
|
#define | PI04 4U |
|
#define | PI05 5U |
|
#define | PI06 6U |
|
#define | PI07 7U |
|
#define | PI08 8U |
|
#define | PI09 9U |
|
#define | PI10 10U |
|
#define | PI11 11U |
|
#define | PI12 12U |
|
#define | PI13 13U |
|
#define | PI14 14U |
|
#define | PI15 15U |
|
#define | PJ00 0U |
|
#define | PJ01 1U |
|
#define | PJ02 2U |
|
#define | PJ03 3U |
|
#define | PJ04 4U |
|
#define | PJ05 5U |
|
#define | PJ06 6U |
|
#define | PJ07 7U |
|
#define | PJ08 8U |
|
#define | PJ09 9U |
|
#define | PJ10 10U |
|
#define | PJ11 11U |
|
#define | PJ12 12U |
|
#define | PJ13 13U |
|
#define | PJ14 14U |
|
#define | PJ15 15U |
|
#define | PK00 0U |
|
#define | PK01 1U |
|
#define | PK02 2U |
|
#define | PK03 3U |
|
#define | PK04 4U |
|
#define | PK05 5U |
|
#define | PK06 6U |
|
#define | PK07 7U |
|
#define | PK08 8U |
|
#define | PK09 9U |
|
#define | PK10 10U |
|
#define | PK11 11U |
|
#define | PK12 12U |
|
#define | PK13 13U |
|
#define | PK14 14U |
|
#define | PK15 15U |
|
#define | LINE_A00_AUX_A1 PAL_LINE(GPIOA, 0U) |
|
#define | LINE_A01_AUX_A2 PAL_LINE(GPIOA, 1U) |
|
#define | LINE_A02_AUX_A3 PAL_LINE(GPIOA, 2U) |
|
#define | LINE_A03_AUX_B1 PAL_LINE(GPIOA, 3U) |
|
#define | LINE_A06_AUX_A4 PAL_LINE(GPIOA, 6U) |
|
#define | LINE_A07_AUX_B2 PAL_LINE(GPIOA, 7U) |
|
#define | LINE_A09_USB_VBUS PAL_LINE(GPIOA, 9U) |
|
#define | LINE_A10_LED2 PAL_LINE(GPIOA, 10U) |
|
#define | LINE_A11_OTG_FS_DM PAL_LINE(GPIOA, 11U) |
|
#define | LINE_A12_OTG_FS_DP PAL_LINE(GPIOA, 12U) |
|
#define | LINE_A13_SWDIO PAL_LINE(GPIOA, 13U) |
|
#define | LINE_A14_SWCLK PAL_LINE(GPIOA, 14U) |
|
#define | LINE_A15_UART7_TX PAL_LINE(GPIOA, 15U) |
|
#define | LINE_B00_AUX_B3 PAL_LINE(GPIOB, 0U) |
|
#define | LINE_B01_AUX_B4 PAL_LINE(GPIOB, 1U) |
|
#define | LINE_B03_UART7_RX PAL_LINE(GPIOB, 3U) |
|
#define | LINE_B05_DSHOT_RX PAL_LINE(GPIOB, 5U) |
|
#define | LINE_B06_SRVB1 PAL_LINE(GPIOB, 6U) |
|
#define | LINE_B07_SRVB2 PAL_LINE(GPIOB, 7U) |
|
#define | LINE_B08_SRVB3 PAL_LINE(GPIOB, 8U) |
|
#define | LINE_B09_SRVB4 PAL_LINE(GPIOB, 9U) |
|
#define | LINE_B10_I2C2_SCL_EXTERNAL PAL_LINE(GPIOB, 10U) |
|
#define | LINE_B11_I2C2_SDA_EXTERNAL PAL_LINE(GPIOB, 11U) |
|
#define | LINE_B12_SPI2_CS_EXTERNAL PAL_LINE(GPIOB, 12U) |
|
#define | LINE_B14_SPI2_EXTERNAL_MISO PAL_LINE(GPIOB, 14U) |
|
#define | LINE_B15_SPI2_EXTERNAL_MOSI PAL_LINE(GPIOB, 15U) |
|
#define | LINE_C00_VBAT_MEAS PAL_LINE(GPIOC, 0U) |
|
#define | LINE_C06_RC2 PAL_LINE(GPIOC, 6U) |
|
#define | LINE_C07_LED3 PAL_LINE(GPIOC, 7U) |
|
#define | LINE_C08_SDMMC1_D0 PAL_LINE(GPIOC, 8U) |
|
#define | LINE_C09_SDMMC1_D1 PAL_LINE(GPIOC, 9U) |
|
#define | LINE_C10_SDMMC1_D2 PAL_LINE(GPIOC, 10U) |
|
#define | LINE_C11_SDMMC1_D3 PAL_LINE(GPIOC, 11U) |
|
#define | LINE_C12_SDMMC1_CK PAL_LINE(GPIOC, 12U) |
|
#define | LINE_C13_APSW PAL_LINE(GPIOC, 13U) |
|
#define | LINE_C14_OSC32_IN PAL_LINE(GPIOC, 14U) |
|
#define | LINE_C15_OSC32_OUT PAL_LINE(GPIOC, 15U) |
|
#define | LINE_D00_CAN_RX PAL_LINE(GPIOD, 0U) |
|
#define | LINE_D01_CAN_TX PAL_LINE(GPIOD, 1U) |
|
#define | LINE_D02_SDMMC1_CMD PAL_LINE(GPIOD, 2U) |
|
#define | LINE_D03_SPI2_EXTERNAL_CLK PAL_LINE(GPIOD, 3U) |
|
#define | LINE_D05_UART_TX2 PAL_LINE(GPIOD, 5U) |
|
#define | LINE_D06_UART_RX2 PAL_LINE(GPIOD, 6U) |
|
#define | LINE_D08_UART_TX3 PAL_LINE(GPIOD, 8U) |
|
#define | LINE_D09_UART_RX3 PAL_LINE(GPIOD, 9U) |
|
#define | LINE_D10_LED4 PAL_LINE(GPIOD, 10U) |
|
#define | LINE_D12_I2C4_SCL_EXTERNAL PAL_LINE(GPIOD, 12U) |
|
#define | LINE_D13_I2C4_SDA_EXTERNAL PAL_LINE(GPIOD, 13U) |
|
#define | LINE_D15_LED1 PAL_LINE(GPIOD, 15U) |
|
#define | LINE_E00_RC1 PAL_LINE(GPIOE, 0U) |
|
#define | LINE_E02_SPI4_INTERNAL_CLK PAL_LINE(GPIOE, 2U) |
|
#define | LINE_E04_SPI4_CS_INTERNAL PAL_LINE(GPIOE, 4U) |
|
#define | LINE_E05_SPI4_INTERNAL_MISO PAL_LINE(GPIOE, 5U) |
|
#define | LINE_E06_SPI4_INTERNAL_MOSI PAL_LINE(GPIOE, 6U) |
|
#define | LINE_E09_SRVA1 PAL_LINE(GPIOE, 9U) |
|
#define | LINE_E11_SRVA2 PAL_LINE(GPIOE, 11U) |
|
#define | LINE_E13_SRVA3 PAL_LINE(GPIOE, 13U) |
|
#define | LINE_E14_SRVA4 PAL_LINE(GPIOE, 14U) |
|
#define | LINE_H00_OSC_IN PAL_LINE(GPIOH, 0U) |
|
#define | LINE_H01_OSC_OUT PAL_LINE(GPIOH, 1U) |
|
#define | PIN_MODE_INPUT(n) (0U << ((n) * 2U)) |
|
#define | PIN_MODE_OUTPUT(n) (1U << ((n) * 2U)) |
|
#define | PIN_MODE_ALTERNATE(n) (2U << ((n) * 2U)) |
|
#define | PIN_MODE_ANALOG(n) (3U << ((n) * 2U)) |
|
#define | PIN_ODR_LEVEL_LOW(n) (0U << (n)) |
|
#define | PIN_ODR_LEVEL_HIGH(n) (1U << (n)) |
|
#define | PIN_OTYPE_PUSHPULL(n) (0U << (n)) |
|
#define | PIN_OTYPE_OPENDRAIN(n) (1U << (n)) |
|
#define | PIN_OSPEED_SPEED_VERYLOW(n) (0U << ((n) * 2U)) |
|
#define | PIN_OSPEED_SPEED_LOW(n) (1U << ((n) * 2U)) |
|
#define | PIN_OSPEED_SPEED_MEDIUM(n) (2U << ((n) * 2U)) |
|
#define | PIN_OSPEED_SPEED_HIGH(n) (3U << ((n) * 2U)) |
|
#define | PIN_PUPDR_FLOATING(n) (0U << ((n) * 2U)) |
|
#define | PIN_PUPDR_PULLUP(n) (1U << ((n) * 2U)) |
|
#define | PIN_PUPDR_PULLDOWN(n) (2U << ((n) * 2U)) |
|
#define | PIN_AFIO_AF(n, v) ((v) << (((n) % 8U) * 4U)) |
|
#define | VAL_GPIOA_MODER |
|
#define | VAL_GPIOA_OTYPER |
|
#define | VAL_GPIOA_OSPEEDR |
|
#define | VAL_GPIOA_PUPDR |
|
#define | VAL_GPIOA_ODR |
|
#define | VAL_GPIOA_AFRL |
|
#define | VAL_GPIOA_AFRH |
|
#define | VAL_GPIOB_MODER |
|
#define | VAL_GPIOB_OTYPER |
|
#define | VAL_GPIOB_OSPEEDR |
|
#define | VAL_GPIOB_PUPDR |
|
#define | VAL_GPIOB_ODR |
|
#define | VAL_GPIOB_AFRL |
|
#define | VAL_GPIOB_AFRH |
|
#define | VAL_GPIOC_MODER |
|
#define | VAL_GPIOC_OTYPER |
|
#define | VAL_GPIOC_OSPEEDR |
|
#define | VAL_GPIOC_PUPDR |
|
#define | VAL_GPIOC_ODR |
|
#define | VAL_GPIOC_AFRL |
|
#define | VAL_GPIOC_AFRH |
|
#define | VAL_GPIOD_MODER |
|
#define | VAL_GPIOD_OTYPER |
|
#define | VAL_GPIOD_OSPEEDR |
|
#define | VAL_GPIOD_PUPDR |
|
#define | VAL_GPIOD_ODR |
|
#define | VAL_GPIOD_AFRL |
|
#define | VAL_GPIOD_AFRH |
|
#define | VAL_GPIOE_MODER |
|
#define | VAL_GPIOE_OTYPER |
|
#define | VAL_GPIOE_OSPEEDR |
|
#define | VAL_GPIOE_PUPDR |
|
#define | VAL_GPIOE_ODR |
|
#define | VAL_GPIOE_AFRL |
|
#define | VAL_GPIOE_AFRH |
|
#define | VAL_GPIOF_MODER |
|
#define | VAL_GPIOF_OTYPER |
|
#define | VAL_GPIOF_OSPEEDR |
|
#define | VAL_GPIOF_PUPDR |
|
#define | VAL_GPIOF_ODR |
|
#define | VAL_GPIOF_AFRL |
|
#define | VAL_GPIOF_AFRH |
|
#define | VAL_GPIOG_MODER |
|
#define | VAL_GPIOG_OTYPER |
|
#define | VAL_GPIOG_OSPEEDR |
|
#define | VAL_GPIOG_PUPDR |
|
#define | VAL_GPIOG_ODR |
|
#define | VAL_GPIOG_AFRL |
|
#define | VAL_GPIOG_AFRH |
|
#define | VAL_GPIOH_MODER |
|
#define | VAL_GPIOH_OTYPER |
|
#define | VAL_GPIOH_OSPEEDR |
|
#define | VAL_GPIOH_PUPDR |
|
#define | VAL_GPIOH_ODR |
|
#define | VAL_GPIOH_AFRL |
|
#define | VAL_GPIOH_AFRH |
|
#define | VAL_GPIOI_MODER |
|
#define | VAL_GPIOI_OTYPER |
|
#define | VAL_GPIOI_OSPEEDR |
|
#define | VAL_GPIOI_PUPDR |
|
#define | VAL_GPIOI_ODR |
|
#define | VAL_GPIOI_AFRL |
|
#define | VAL_GPIOI_AFRH |
|
#define | VAL_GPIOJ_MODER |
|
#define | VAL_GPIOJ_OTYPER |
|
#define | VAL_GPIOJ_OSPEEDR |
|
#define | VAL_GPIOJ_PUPDR |
|
#define | VAL_GPIOJ_ODR |
|
#define | VAL_GPIOJ_AFRL |
|
#define | VAL_GPIOJ_AFRH |
|
#define | VAL_GPIOK_MODER |
|
#define | VAL_GPIOK_OTYPER |
|
#define | VAL_GPIOK_OSPEEDR |
|
#define | VAL_GPIOK_PUPDR |
|
#define | VAL_GPIOK_ODR |
|
#define | VAL_GPIOK_AFRL |
|
#define | VAL_GPIOK_AFRH |
|
#define | AF_PA11_OTG_FS_DM 10U |
|
#define | AF_LINE_A11_OTG_FS_DM 10U |
|
#define | AF_PA12_OTG_FS_DP 10U |
|
#define | AF_LINE_A12_OTG_FS_DP 10U |
|
#define | AF_PA13_SWDIO 0U |
|
#define | AF_LINE_A13_SWDIO 0U |
|
#define | AF_PA14_SWCLK 0U |
|
#define | AF_LINE_A14_SWCLK 0U |
|
#define | AF_PA15_UART7_TX 12U |
|
#define | AF_LINE_A15_UART7_TX 12U |
|
#define | AF_PB03_UART7_RX 12U |
|
#define | AF_LINE_B03_UART7_RX 12U |
|
#define | AF_PB05_DSHOT_RX 1U |
|
#define | AF_LINE_B05_DSHOT_RX 1U |
|
#define | AF_PB06_SRVB1 2U |
|
#define | AF_LINE_B06_SRVB1 2U |
|
#define | AF_PB07_SRVB2 2U |
|
#define | AF_LINE_B07_SRVB2 2U |
|
#define | AF_PB08_SRVB3 2U |
|
#define | AF_LINE_B08_SRVB3 2U |
|
#define | AF_PB09_SRVB4 2U |
|
#define | AF_LINE_B09_SRVB4 2U |
|
#define | AF_PB10_I2C2_SCL_EXTERNAL 4U |
|
#define | AF_LINE_B10_I2C2_SCL_EXTERNAL 4U |
|
#define | AF_PB11_I2C2_SDA_EXTERNAL 4U |
|
#define | AF_LINE_B11_I2C2_SDA_EXTERNAL 4U |
|
#define | AF_PB14_SPI2_EXTERNAL_MISO 5U |
|
#define | AF_LINE_B14_SPI2_EXTERNAL_MISO 5U |
|
#define | AF_PB15_SPI2_EXTERNAL_MOSI 5U |
|
#define | AF_LINE_B15_SPI2_EXTERNAL_MOSI 5U |
|
#define | AF_PC08_SDMMC1_D0 12U |
|
#define | AF_LINE_C08_SDMMC1_D0 12U |
|
#define | AF_PC09_SDMMC1_D1 12U |
|
#define | AF_LINE_C09_SDMMC1_D1 12U |
|
#define | AF_PC10_SDMMC1_D2 12U |
|
#define | AF_LINE_C10_SDMMC1_D2 12U |
|
#define | AF_PC11_SDMMC1_D3 12U |
|
#define | AF_LINE_C11_SDMMC1_D3 12U |
|
#define | AF_PC12_SDMMC1_CK 12U |
|
#define | AF_LINE_C12_SDMMC1_CK 12U |
|
#define | AF_PC14_OSC32_IN 0U |
|
#define | AF_LINE_C14_OSC32_IN 0U |
|
#define | AF_PC15_OSC32_OUT 0U |
|
#define | AF_LINE_C15_OSC32_OUT 0U |
|
#define | AF_PD00_CAN_RX 9U |
|
#define | AF_LINE_D00_CAN_RX 9U |
|
#define | AF_PD01_CAN_TX 9U |
|
#define | AF_LINE_D01_CAN_TX 9U |
|
#define | AF_PD02_SDMMC1_CMD 12U |
|
#define | AF_LINE_D02_SDMMC1_CMD 12U |
|
#define | AF_PD03_SPI2_EXTERNAL_CLK 5U |
|
#define | AF_LINE_D03_SPI2_EXTERNAL_CLK 5U |
|
#define | AF_PD05_UART_TX2 7U |
|
#define | AF_LINE_D05_UART_TX2 7U |
|
#define | AF_PD06_UART_RX2 7U |
|
#define | AF_LINE_D06_UART_RX2 7U |
|
#define | AF_PD08_UART_TX3 7U |
|
#define | AF_LINE_D08_UART_TX3 7U |
|
#define | AF_PD09_UART_RX3 7U |
|
#define | AF_LINE_D09_UART_RX3 7U |
|
#define | AF_PD12_I2C4_SCL_EXTERNAL 4U |
|
#define | AF_LINE_D12_I2C4_SCL_EXTERNAL 4U |
|
#define | AF_PD13_I2C4_SDA_EXTERNAL 4U |
|
#define | AF_LINE_D13_I2C4_SDA_EXTERNAL 4U |
|
#define | AF_PE00_RC1 8U |
|
#define | AF_LINE_E00_RC1 8U |
|
#define | AF_PE02_SPI4_INTERNAL_CLK 5U |
|
#define | AF_LINE_E02_SPI4_INTERNAL_CLK 5U |
|
#define | AF_PE05_SPI4_INTERNAL_MISO 5U |
|
#define | AF_LINE_E05_SPI4_INTERNAL_MISO 5U |
|
#define | AF_PE06_SPI4_INTERNAL_MOSI 5U |
|
#define | AF_LINE_E06_SPI4_INTERNAL_MOSI 5U |
|
#define | AF_PE09_SRVA1 1U |
|
#define | AF_LINE_E09_SRVA1 1U |
|
#define | AF_PE11_SRVA2 1U |
|
#define | AF_LINE_E11_SRVA2 1U |
|
#define | AF_PE13_SRVA3 1U |
|
#define | AF_LINE_E13_SRVA3 1U |
|
#define | AF_PE14_SRVA4 1U |
|
#define | AF_LINE_E14_SRVA4 1U |
|
#define | AF_PH00_OSC_IN 0U |
|
#define | AF_LINE_H00_OSC_IN 0U |
|
#define | AF_PH01_OSC_OUT 0U |
|
#define | AF_LINE_H01_OSC_OUT 0U |
|