Browse Source

STM32F1: FSMC only on chips with 100/144 pins (#14180)

Tanguy Pruvot 5 years ago
parent
commit
e3a468f2cd
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/HAL/HAL_STM32F1/u8g_com_stm32duino_fsmc.cpp

+ 2
- 2
Marlin/src/HAL/HAL_STM32F1/u8g_com_stm32duino_fsmc.cpp View File

@@ -28,7 +28,7 @@
28 28
 
29 29
 #include "../../inc/MarlinConfig.h"
30 30
 
31
-#if defined(ARDUINO_ARCH_STM32F1) && (defined(STM32_HIGH_DENSITY) || defined(STM32_XL_DENSITY))
31
+#if defined(ARDUINO_ARCH_STM32F1) && PIN_EXISTS(FSMC_CS) // FSMC on 100/144 pins SoCs
32 32
 
33 33
 #if HAS_GRAPHICAL_LCD
34 34
 
@@ -272,4 +272,4 @@ uint32_t LCD_IO_ReadData(uint16_t RegValue, uint8_t ReadSize) {
272 272
 
273 273
 #endif // HAS_GRAPHICAL_LCD
274 274
 
275
-#endif // ARDUINO_ARCH_STM32F1 && (STM32_HIGH_DENSITY || STM32_XL_DENSITY)
275
+#endif // ARDUINO_ARCH_STM32F1 && FSMC_CS_PIN

Loading…
Cancel
Save