BTT SKR Mini E3 for HAL/STM32 (#21488)
This commit is contained in:
		
				
					committed by
					
						
						Scott Lahteine
					
				
			
			
				
	
			
			
			
						parent
						
							f688c7d20d
						
					
				
				
					commit
					c463b81819
				
			@@ -21,7 +21,7 @@
 | 
			
		||||
 */
 | 
			
		||||
#pragma once
 | 
			
		||||
 | 
			
		||||
#if NOT_TARGET(TARGET_STM32F1)
 | 
			
		||||
#if NOT_TARGET(__STM32F1__, STM32F1)
 | 
			
		||||
  #error "Oops! Select an STM32F1 board in 'Tools > Board.'"
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
@@ -279,5 +279,14 @@
 | 
			
		||||
  #error "SD CUSTOM_CABLE is not compatible with SKR Mini E3."
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#define ONBOARD_SPI_DEVICE                     1  // SPI1
 | 
			
		||||
#define ONBOARD_SPI_DEVICE                     1  // SPI1 -> used only by HAL/STM32F1...
 | 
			
		||||
#define ONBOARD_SD_CS_PIN                   PA4   // Chip select for "System" SD card
 | 
			
		||||
 | 
			
		||||
#define CUSTOM_SPI_PINS                           // TODO: needed because is the only way to set SPI for SD on STM32 (for now)
 | 
			
		||||
#if ENABLED(CUSTOM_SPI_PINS)
 | 
			
		||||
  #define ENABLE_SPI1
 | 
			
		||||
  #define SDSS                              ONBOARD_SD_CS_PIN
 | 
			
		||||
  #define SD_SCK_PIN                        PA5
 | 
			
		||||
  #define SD_MISO_PIN                       PA6
 | 
			
		||||
  #define SD_MOSI_PIN                       PA7
 | 
			
		||||
#endif
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user