From faaea40ad03a9ed135f0fb6978e885c0196e7e7c Mon Sep 17 00:00:00 2001 From: rusefi Date: Fri, 25 Jan 2019 21:04:33 -0500 Subject: [PATCH] docs --- firmware/hw_layer/serial_over_usb/usbconsole.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/firmware/hw_layer/serial_over_usb/usbconsole.c b/firmware/hw_layer/serial_over_usb/usbconsole.c index 4aca53c9b2..79e14b2aa8 100644 --- a/firmware/hw_layer/serial_over_usb/usbconsole.c +++ b/firmware/hw_layer/serial_over_usb/usbconsole.c @@ -35,6 +35,15 @@ void usb_serial_start(void) { usbConnectBus(serusbcfg.usbp); #if HAL_USE_SERIAL + /** + * todo: start taking USB pins from configuration? + * at the moment USB pinout is hard-coded in board.h file + * + * PA10/PA11/PA12 + * #define GPIOA_OTG_FS_ID 10 + * #define GPIOA_OTG_FS_DM 11 + * #define GPIOA_OTG_FS_DP 12 + */ /* * Activates the serial driver 2 using the driver default configuration. */