&U5RXR, &SS2R, &OCFAR } }; static const uint8_t output_pins[4][16] = { { MCU_GPIO_PORTD(2), MCU_GPIO_PORTG(8), MCU_GPIO_PORTF(4), MCU_GPIO_PORTD(10), MCU_GPIO_PORTF(1), MCU_GPIO_PORTB(9), MCU_GPIO_PORTB(10), MCU_GPIO_PORTC(14), MCU_GPIO_PORTB(5), MCU_GPIO_UNDEF, MCU_GPIO_UNDEF, MCU_GPIO_UNDEF, MCU_GPIO_UNDEF, MCU_GPIO_UNDEF, MCU_GPIO_UNDEF, MCU_GPIO_UNDEF }, { MCU_GPIO_PORTD(3), MCU_GPIO_PORTG(7), MCU_GPIO_PORTF(5), MCU_GPIO_PORTD(11), MCU_GPIO_PORTF(0),
#if MYNEWT_VAL(SPI_0_SLAVE) || MYNEWT_VAL(SPI_0_MASTER) struct stm32f4_hal_spi_cfg spi0_cfg = { .ss_pin = MCU_GPIO_PORTA(4), /* PA4 */ .sck_pin = MCU_GPIO_PORTA(5), /* PA5 */ .miso_pin = MCU_GPIO_PORTA(6), /* PA6 */ .mosi_pin = MCU_GPIO_PORTB(5), /* PB5 */ .irq_prio = 2 }; #endif #if MYNEWT_VAL(UART_0) static const struct stm32f4_uart_cfg uart_cfg0 = { .suc_uart = USART6, .suc_rcc_reg = &RCC->APB2ENR, .suc_rcc_dev = RCC_APB2ENR_USART6EN, .suc_pin_tx = MCU_GPIO_PORTC(6), /* PC6 */ .suc_pin_rx = MCU_GPIO_PORTC(7), /* PC7 */ .suc_pin_rts = -1, .suc_pin_cts = -1, .suc_pin_af = GPIO_AF8_USART6, .suc_irqn = USART6_IRQn }; #endif static const struct hal_bsp_mem_dump dump_cfg[] = { [0] = { .hbmd_start = &_ram_start, .hbmd_size = RAM_SIZE }, [1] = { .hbmd_start = &_ccram_start, .hbmd_size = CCRAM_SIZE