|
#define | BOARD_ST_CRAZYFLIE |
|
#define | BOARD_NAME "Bitcraze Crazyflie 2.1" |
|
#define | STM32_LSECLK 32768 |
|
#define | STM32_HSECLK 8000000 |
|
#define | STM32_VDD 300 |
|
#define | STM32F405xx |
|
#define | AHB_CLK STM32_HCLK |
|
#define | PA00 0U |
|
#define | MOTOR1 1U |
|
#define | E_TX2 2U |
|
#define | E_RX2 3U |
|
#define | NRF_FLOW_CTRL 4U |
|
#define | E_SCK 5U |
|
#define | E_MISO 6U |
|
#define | E_MOSI 7U |
|
#define | I2C3_SCL 8U |
|
#define | PA09 9U |
|
#define | USB_ID 10U |
|
#define | USB_DM 11U |
|
#define | USB_DP 12U |
|
#define | STM_SWIO 13U |
|
#define | STM_SWCLK 14U |
|
#define | MOTOR3 15U |
|
#define | PB00 0U |
|
#define | PB01 1U |
|
#define | BOOT1 2U |
|
#define | PB03 3U |
|
#define | E_CS1 4U |
|
#define | E_CS2 5U |
|
#define | I2C1_SCL 6U |
|
#define | I2C1_SDA 7U |
|
#define | E_CS3 8U |
|
#define | MOTOR4 9U |
|
#define | PB10 10U |
|
#define | MOTOR2 11U |
|
#define | PB12 12U |
|
#define | NRF_SWCLK 13U |
|
#define | PB14 14U |
|
#define | NRF_SWIO 15U |
|
#define | LED_RED_L 0U |
|
#define | LED_GREEN_L 1U |
|
#define | LED_GREEN_R 2U |
|
#define | LED_RED_R 3U |
|
#define | PC04 4U |
|
#define | PC05 5U |
|
#define | NRF_TX 6U |
|
#define | NRF_RX 7U |
|
#define | PC08 8U |
|
#define | I2C3_SDA 9U |
|
#define | E_TX1 10U |
|
#define | E_RX1 11U |
|
#define | E_CS0 12U |
|
#define | PC13 13U |
|
#define | PC14 14U |
|
#define | PC15 15U |
|
#define | PD00 0U |
|
#define | PD01 1U |
|
#define | LED_BLUE_L 2U |
|
#define | PD03 3U |
|
#define | PD04 4U |
|
#define | PD05 5U |
|
#define | PD06 6U |
|
#define | PD07 7U |
|
#define | PD08 8U |
|
#define | PD09 9U |
|
#define | PD10 10U |
|
#define | PD11 11U |
|
#define | PD12 12U |
|
#define | PD13 13U |
|
#define | PD14 14U |
|
#define | PD15 15U |
|
#define | PE00 0U |
|
#define | PE01 1U |
|
#define | PE02 2U |
|
#define | PE03 3U |
|
#define | PE04 4U |
|
#define | PE05 5U |
|
#define | PE06 6U |
|
#define | PE07 7U |
|
#define | PE08 8U |
|
#define | PE09 9U |
|
#define | PE10 10U |
|
#define | PE11 11U |
|
#define | PE12 12U |
|
#define | PE13 13U |
|
#define | PE14 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 | OSC_IN 0U |
|
#define | 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_MOTOR1 PAL_LINE(GPIOA, 1U) |
|
#define | LINE_E_TX2 PAL_LINE(GPIOA, 2U) |
|
#define | LINE_E_RX2 PAL_LINE(GPIOA, 3U) |
|
#define | LINE_NRF_FLOW_CTRL PAL_LINE(GPIOA, 4U) |
|
#define | LINE_E_SCK PAL_LINE(GPIOA, 5U) |
|
#define | LINE_E_MISO PAL_LINE(GPIOA, 6U) |
|
#define | LINE_E_MOSI PAL_LINE(GPIOA, 7U) |
|
#define | LINE_I2C3_SCL PAL_LINE(GPIOA, 8U) |
|
#define | LINE_USB_ID PAL_LINE(GPIOA, 10U) |
|
#define | LINE_USB_DM PAL_LINE(GPIOA, 11U) |
|
#define | LINE_USB_DP PAL_LINE(GPIOA, 12U) |
|
#define | LINE_STM_SWIO PAL_LINE(GPIOA, 13U) |
|
#define | LINE_STM_SWCLK PAL_LINE(GPIOA, 14U) |
|
#define | LINE_MOTOR3 PAL_LINE(GPIOA, 15U) |
|
#define | LINE_BOOT1 PAL_LINE(GPIOB, 2U) |
|
#define | LINE_E_CS1 PAL_LINE(GPIOB, 4U) |
|
#define | LINE_E_CS2 PAL_LINE(GPIOB, 5U) |
|
#define | LINE_I2C1_SCL PAL_LINE(GPIOB, 6U) |
|
#define | LINE_I2C1_SDA PAL_LINE(GPIOB, 7U) |
|
#define | LINE_E_CS3 PAL_LINE(GPIOB, 8U) |
|
#define | LINE_MOTOR4 PAL_LINE(GPIOB, 9U) |
|
#define | LINE_MOTOR2 PAL_LINE(GPIOB, 11U) |
|
#define | LINE_NRF_SWCLK PAL_LINE(GPIOB, 13U) |
|
#define | LINE_NRF_SWIO PAL_LINE(GPIOB, 15U) |
|
#define | LINE_LED_RED_L PAL_LINE(GPIOC, 0U) |
|
#define | LINE_LED_GREEN_L PAL_LINE(GPIOC, 1U) |
|
#define | LINE_LED_GREEN_R PAL_LINE(GPIOC, 2U) |
|
#define | LINE_LED_RED_R PAL_LINE(GPIOC, 3U) |
|
#define | LINE_NRF_TX PAL_LINE(GPIOC, 6U) |
|
#define | LINE_NRF_RX PAL_LINE(GPIOC, 7U) |
|
#define | LINE_I2C3_SDA PAL_LINE(GPIOC, 9U) |
|
#define | LINE_E_TX1 PAL_LINE(GPIOC, 10U) |
|
#define | LINE_E_RX1 PAL_LINE(GPIOC, 11U) |
|
#define | LINE_E_CS0 PAL_LINE(GPIOC, 12U) |
|
#define | LINE_LED_BLUE_L PAL_LINE(GPIOD, 2U) |
|
#define | LINE_OSC_IN PAL_LINE(GPIOH, 0U) |
|
#define | LINE_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_MOTOR1 1U |
|
#define | AF_LINE_MOTOR1 1U |
|
#define | AF_E_TX2 7U |
|
#define | AF_LINE_E_TX2 7U |
|
#define | AF_E_RX2 7U |
|
#define | AF_LINE_E_RX2 7U |
|
#define | AF_E_SCK 5U |
|
#define | AF_LINE_E_SCK 5U |
|
#define | AF_E_MISO 5U |
|
#define | AF_LINE_E_MISO 5U |
|
#define | AF_E_MOSI 5U |
|
#define | AF_LINE_E_MOSI 5U |
|
#define | AF_I2C3_SCL 4U |
|
#define | AF_LINE_I2C3_SCL 4U |
|
#define | AF_USB_ID 10U |
|
#define | AF_LINE_USB_ID 10U |
|
#define | AF_USB_DM 10U |
|
#define | AF_LINE_USB_DM 10U |
|
#define | AF_USB_DP 10U |
|
#define | AF_LINE_USB_DP 10U |
|
#define | AF_STM_SWIO 0U |
|
#define | AF_LINE_STM_SWIO 0U |
|
#define | AF_STM_SWCLK 0U |
|
#define | AF_LINE_STM_SWCLK 0U |
|
#define | AF_MOTOR3 1U |
|
#define | AF_LINE_MOTOR3 1U |
|
#define | AF_I2C1_SCL 4U |
|
#define | AF_LINE_I2C1_SCL 4U |
|
#define | AF_I2C1_SDA 4U |
|
#define | AF_LINE_I2C1_SDA 4U |
|
#define | AF_MOTOR4 2U |
|
#define | AF_LINE_MOTOR4 2U |
|
#define | AF_MOTOR2 1U |
|
#define | AF_LINE_MOTOR2 1U |
|
#define | AF_NRF_TX 8U |
|
#define | AF_LINE_NRF_TX 8U |
|
#define | AF_NRF_RX 8U |
|
#define | AF_LINE_NRF_RX 8U |
|
#define | AF_I2C3_SDA 4U |
|
#define | AF_LINE_I2C3_SDA 4U |
|
#define | AF_E_TX1 7U |
|
#define | AF_LINE_E_TX1 7U |
|
#define | AF_E_RX1 7U |
|
#define | AF_LINE_E_RX1 7U |
|
#define | AF_OSC_IN 0U |
|
#define | AF_LINE_OSC_IN 0U |
|
#define | AF_OSC_OUT 0U |
|
#define | AF_LINE_OSC_OUT 0U |
|
#define | BOARD_GROUP_DECLFOREACH(line, group) |
|
#define | BOARD_GROUP_FOREACH(line, group) for (ioline_t i=0, line = group ## _ARRAY[i]; (i < group ## _SIZE) && (line = group ## _ARRAY[i]); i++) |
|
#define | BOARD_GROUP_DECLFOR(array, index, group) |
|
#define | BOARD_GROUP_FOR(array, index, group) for (ioline_t index=0, *array = (ioline_t *) group ## _ARRAY; index < group ## _SIZE; index++) |
|