Skip to content

Commit

Permalink
boards/blxxxpill: configure usbdev_fs
Browse files Browse the repository at this point in the history
  • Loading branch information
benpicco authored and maribu committed Oct 13, 2022
1 parent aa6e8ca commit d3d89aa
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions boards/common/blxxxpill/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ config BOARD_COMMON_BLXXXPILL
select HAS_PERIPH_TIMER
select HAS_PERIPH_UART
select HAS_PERIPH_QDEC
select HAS_PERIPH_USBDEV

# Clock configuration
select BOARD_HAS_HSE
Expand Down
1 change: 1 addition & 0 deletions boards/common/blxxxpill/Makefile.features
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ FEATURES_PROVIDED += periph_spi
FEATURES_PROVIDED += periph_timer
FEATURES_PROVIDED += periph_uart
FEATURES_PROVIDED += periph_qdec
FEATURES_PROVIDED += periph_usbdev
26 changes: 26 additions & 0 deletions boards/common/blxxxpill/include/periph_conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,32 @@ static const spi_conf_t spi_config[] = {
#define SPI_NUMOF ARRAY_SIZE(spi_config)
/** @} */

/**
* @brief USB device FS configuration
*/
static const stm32_usbdev_fs_config_t stm32_usbdev_fs_config[] = {
{
.base_addr = (uintptr_t)USB,
.rcc_mask = RCC_APB1ENR_USBEN,
.irqn = USB_LP_CAN1_RX0_IRQn,
.apb = APB1,
.dm = GPIO_PIN(PORT_A, 11),
.dp = GPIO_PIN(PORT_A, 12),
.af = GPIO_AF_UNDEF,
.disconn = GPIO_UNDEF,
},
};

/**
* @brief Interrupt function name mapping
*/
#define USBDEV_ISR isr_usb_lp_can1_rx0

/**
* @brief Number of available USB device FS peripherals
*/
#define USBDEV_NUMOF ARRAY_SIZE(stm32_usbdev_fs_config)

#ifdef __cplusplus
}
#endif
Expand Down
6 changes: 6 additions & 0 deletions tests/sys_fido2_ctap/Makefile.ci
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
BOARD_INSUFFICIENT_MEMORY := \
blackpill \
blackpill-128kib \
bluepill \
bluepill-128kib \
#

0 comments on commit d3d89aa

Please sign in to comment.