Fix SPI2-Extension SDCard-TFT buz

Fix I/O with extension SDCard
Fix  Buzzer aren't Speaker into the TFT screen.
This commit is contained in:
Foxies 2020-11-02 22:21:58 +01:00
parent 1af299c50d
commit 290cfac505

View file

@ -56,7 +56,7 @@
// SPI
// Note: FLSun Hispeed (clone MKS_Robin_miniV2) board is using SPI2 interface.
//
#define STM32F1_SPI_DEVICE 2
#define SPI_DEVICE 2
// SPI Flash
#define HAS_SPI_FLASH 1
@ -245,14 +245,15 @@
#define SCK_PIN PB13 // SPI2
#define MISO_PIN PB14 // SPI2
#define MOSI_PIN PB15 // SPI2
#define SD_DETECT_PIN PD12 // SD_CD
#define SS_PIN PC2 // SPI2
#define SD_DETECT_PIN -1 // SD_CD
#endif
//
// LCD / Controller
//
#ifndef BEEPER_PIN
#define BEEPER_PIN PC5
#if ENABLED(SPEAKER) && BEEPER_PIN == PC5
#error "FLSun HiSpeed default BEEPER_PIN is not a SPEAKER."
#endif
/**