Explorar el Código

[bsp][stm32] optimize flash driver config

SummerGift hace 6 años
padre
commit
892ad62983
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      bsp/stm32/libraries/HAL_Drivers/SConscript

+ 3 - 1
bsp/stm32/libraries/HAL_Drivers/SConscript

@@ -57,7 +57,9 @@ src += ['drv_common.c']
 
 path =  [cwd]
 path += [cwd + '/config']
-path += [cwd + '/drv_flash']
+
+if GetDepend('BSP_USING_ON_CHIP_FLASH'):
+    path += [cwd + '/drv_flash']
 
 group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path)