STM32F1 SPI1 bugfix (#14679)

This commit is contained in:
BigTreeTech
2019-07-21 09:35:41 +08:00
committed by Scott Lahteine
parent 5b2fd3ad86
commit a38b9da672
4 changed files with 20 additions and 4 deletions

View File

@@ -201,6 +201,11 @@ void HAL_init(void) {
#if PIN_EXISTS(LED)
OUT_WRITE(LED_PIN, LOW);
#endif
#if PIN_EXISTS(USB_CONNECT)
OUT_WRITE(USB_CONNECT_PIN, !USB_CONNECT_INVERTING); // USB clear connection
delay(1000); // Give OS time to notice
OUT_WRITE(USB_CONNECT_PIN, USB_CONNECT_INVERTING);
#endif
}
/* VGPV Done with defines