USB pins are not registered in pin_repository #797

first micro step
This commit is contained in:
rusefi 2019-05-10 15:36:55 -04:00
parent 89962a85c5
commit acecd63983
2 changed files with 11 additions and 6 deletions

View File

@ -36,6 +36,8 @@
#define BOARD_ST_NUCLEO144_F767ZI
#define BOARD_NAME "STM32 Nucleo144-F767ZI for RusEFI"
#define EFI_USB_AF 10U
/*
* Ethernet PHY type.
*/
@ -675,9 +677,9 @@
PIN_AFIO_AF(GPIOA_ARD_D11, 11U))
#define VAL_GPIOA_AFRH (PIN_AFIO_AF(GPIOA_USB_SOF, 10U) | \
PIN_AFIO_AF(GPIOA_USB_VBUS, 0U) | \
PIN_AFIO_AF(GPIOA_USB_ID, 10U) | \
PIN_AFIO_AF(GPIOA_USB_DM, 10U) | \
PIN_AFIO_AF(GPIOA_USB_DP, 10U) | \
PIN_AFIO_AF(GPIOA_USB_ID, EFI_USB_AF) | \
PIN_AFIO_AF(GPIOA_USB_DM, EFI_USB_AF) | \
PIN_AFIO_AF(GPIOA_USB_DP, EFI_USB_AF) | \
PIN_AFIO_AF(GPIOA_SWDIO, 0U) | \
PIN_AFIO_AF(GPIOA_SWCLK, 0U) | \
PIN_AFIO_AF(GPIOA_ZIO_D20, 0U))

View File

@ -33,6 +33,9 @@
#define BOARD_ST_STM32F4_DISCOVERY
#define BOARD_NAME "STM32F407 for RusEFI"
#define EFI_USB_AF 10U
/*
* Board oscillators-related settings.
* NOTE: LSE not fitted.
@ -395,9 +398,9 @@
PIN_AFIO_AF(GPIOA_PIN7, 5U))
#define VAL_GPIOA_AFRH (PIN_AFIO_AF(GPIOA_PIN8, 0U) | \
PIN_AFIO_AF(GPIOA_VBUS_FS, 0U) | \
PIN_AFIO_AF(GPIOA_OTG_FS_ID, 10U) | \
PIN_AFIO_AF(GPIOA_OTG_FS_DM, 10U) | \
PIN_AFIO_AF(GPIOA_OTG_FS_DP, 10U) | \
PIN_AFIO_AF(GPIOA_OTG_FS_ID, EFI_USB_AF) | \
PIN_AFIO_AF(GPIOA_OTG_FS_DM, EFI_USB_AF) | \
PIN_AFIO_AF(GPIOA_OTG_FS_DP, EFI_USB_AF) | \
PIN_AFIO_AF(GPIOA_SWDIO, 0U) | \
PIN_AFIO_AF(GPIOA_SWCLK, 0U) | \
PIN_AFIO_AF(GPIOA_PIN15, 0U))