aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/multi
diff options
context:
space:
mode:
authorRocco Marco Guglielmi <roccomarco.guglielmi@gmail.com>2018-03-13 11:33:01 +0000
committerRocco Marco Guglielmi <roccomarco.guglielmi@gmail.com>2018-03-13 11:33:01 +0000
commitff7f1dcd2c1bf114cbecd703d1d645c95e6f7146 (patch)
treed3d8c6ad0317b95bbd7baaa19dd5a8b7439e9401 /testhal/STM32/multi
parent4065cf0b1eb1993163f4eac5e21fd6add72917d2 (diff)
downloadChibiOS-ff7f1dcd2c1bf114cbecd703d1d645c95e6f7146.tar.gz
ChibiOS-ff7f1dcd2c1bf114cbecd703d1d645c95e6f7146.tar.bz2
ChibiOS-ff7f1dcd2c1bf114cbecd703d1d645c95e6f7146.zip
Modified STM32-PAL demo
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11728 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'testhal/STM32/multi')
-rw-r--r--testhal/STM32/multi/PAL/.cproject20
-rw-r--r--testhal/STM32/multi/PAL/Makefile58
-rw-r--r--testhal/STM32/multi/PAL/cfg-stm32l151_discovery/halconf.h417
-rw-r--r--testhal/STM32/multi/PAL/cfg-stm32l151_discovery/portab.c51
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32f051_discovery/chconf.h (renamed from testhal/STM32/multi/PAL/cfg-stm32f051_discovery/chconf.h)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32f051_discovery/halconf.h (renamed from testhal/STM32/multi/PAL/cfg-stm32f051_discovery/halconf.h)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32f051_discovery/mcuconf.h (renamed from testhal/STM32/multi/PAL/cfg-stm32f051_discovery/mcuconf.h)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32f051_discovery/portab.c (renamed from testhal/STM32/multi/PAL/cfg-stm32f051_discovery/portab.c)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32f051_discovery/portab.h (renamed from testhal/STM32/multi/PAL/cfg-stm32f051_discovery/portab.h)0
-rw-r--r--[-rwxr-xr-x]testhal/STM32/multi/PAL/cfg/stm32f103_olimex/chconf.h (renamed from testhal/STM32/multi/PAL/cfg-stm32f103_olimex/chconf.h)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32f103_olimex/halconf.h (renamed from testhal/STM32/multi/PAL/cfg-stm32f103_olimex/halconf.h)0
-rw-r--r--[-rwxr-xr-x]testhal/STM32/multi/PAL/cfg/stm32f103_olimex/mcuconf.h (renamed from testhal/STM32/multi/PAL/cfg-stm32f103_olimex/mcuconf.h)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32f103_olimex/portab.c (renamed from testhal/STM32/multi/PAL/cfg-stm32f103_olimex/portab.c)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32f103_olimex/portab.h (renamed from testhal/STM32/multi/PAL/cfg-stm32f103_olimex/portab.h)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32f303_discovery/chconf.h (renamed from testhal/STM32/multi/PAL/cfg-stm32f303_discovery/chconf.h)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32f303_discovery/halconf.h (renamed from testhal/STM32/multi/PAL/cfg-stm32f303_discovery/halconf.h)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32f303_discovery/mcuconf.h (renamed from testhal/STM32/multi/PAL/cfg-stm32f303_discovery/mcuconf.h)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32f303_discovery/portab.c (renamed from testhal/STM32/multi/PAL/cfg-stm32f303_discovery/portab.c)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32f303_discovery/portab.h (renamed from testhal/STM32/multi/PAL/cfg-stm32f303_discovery/portab.h)0
-rw-r--r--[-rwxr-xr-x]testhal/STM32/multi/PAL/cfg/stm32f373_eval/chconf.h (renamed from testhal/STM32/multi/PAL/cfg-stm32f373_eval/chconf.h)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32f373_eval/halconf.h (renamed from testhal/STM32/multi/PAL/cfg-stm32f373_eval/halconf.h)0
-rw-r--r--[-rwxr-xr-x]testhal/STM32/multi/PAL/cfg/stm32f373_eval/mcuconf.h (renamed from testhal/STM32/multi/PAL/cfg-stm32f373_eval/mcuconf.h)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32f373_eval/portab.c (renamed from testhal/STM32/multi/PAL/cfg-stm32f373_eval/portab.c)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32f373_eval/portab.h (renamed from testhal/STM32/multi/PAL/cfg-stm32f373_eval/portab.h)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32f407_discovery/chconf.h (renamed from testhal/STM32/multi/PAL/cfg-stm32f407_discovery/chconf.h)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32f407_discovery/halconf.h (renamed from testhal/STM32/multi/PAL/cfg-stm32f407_discovery/halconf.h)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32f407_discovery/mcuconf.h (renamed from testhal/STM32/multi/PAL/cfg-stm32f407_discovery/mcuconf.h)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32f407_discovery/portab.c (renamed from testhal/STM32/multi/PAL/cfg-stm32f407_discovery/portab.c)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32f407_discovery/portab.h (renamed from testhal/STM32/multi/PAL/cfg-stm32f407_discovery/portab.h)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32f429_discovery/chconf.h (renamed from testhal/STM32/multi/PAL/cfg-stm32f429_discovery/chconf.h)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32f429_discovery/halconf.h (renamed from testhal/STM32/multi/PAL/cfg-stm32f429_discovery/halconf.h)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32f429_discovery/mcuconf.h (renamed from testhal/STM32/multi/PAL/cfg-stm32f429_discovery/mcuconf.h)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32f429_discovery/portab.c (renamed from testhal/STM32/multi/PAL/cfg-stm32f429_discovery/portab.c)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32f429_discovery/portab.h (renamed from testhal/STM32/multi/PAL/cfg-stm32f429_discovery/portab.h)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32f746_discovery/chconf.h (renamed from testhal/STM32/multi/PAL/cfg-stm32f746_discovery/chconf.h)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32f746_discovery/halconf.h (renamed from testhal/STM32/multi/PAL/cfg-stm32f746_discovery/halconf.h)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32f746_discovery/mcuconf.h (renamed from testhal/STM32/multi/PAL/cfg-stm32f746_discovery/mcuconf.h)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32f746_discovery/portab.c (renamed from testhal/STM32/multi/PAL/cfg-stm32f746_discovery/portab.c)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32f746_discovery/portab.h (renamed from testhal/STM32/multi/PAL/cfg-stm32f746_discovery/portab.h)0
-rw-r--r--[-rwxr-xr-x]testhal/STM32/multi/PAL/cfg/stm32l053_discovery/chconf.h (renamed from testhal/STM32/multi/PAL/cfg-stm32l053_discovery/chconf.h)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32l053_discovery/halconf.h (renamed from testhal/STM32/multi/PAL/cfg-stm32l053_discovery/halconf.h)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32l053_discovery/mcuconf.h (renamed from testhal/STM32/multi/PAL/cfg-stm32l053_discovery/mcuconf.h)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32l053_discovery/portab.c (renamed from testhal/STM32/multi/PAL/cfg-stm32l053_discovery/portab.c)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32l053_discovery/portab.h (renamed from testhal/STM32/multi/PAL/cfg-stm32l053_discovery/portab.h)0
-rw-r--r--[-rwxr-xr-x]testhal/STM32/multi/PAL/cfg/stm32l151_discovery/chconf.h (renamed from testhal/STM32/multi/PAL/cfg-stm32l151_discovery/chconf.h)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32l151_discovery/halconf.h (renamed from testhal/STM32/multi/PAL/cfg-stm32l476_discovery/halconf.h)0
-rw-r--r--[-rwxr-xr-x]testhal/STM32/multi/PAL/cfg/stm32l151_discovery/mcuconf.h (renamed from testhal/STM32/multi/PAL/cfg-stm32l151_discovery/mcuconf.h)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32l151_discovery/portab.c (renamed from testhal/STM32/multi/PAL/cfg-stm32l476_discovery/portab.c)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32l151_discovery/portab.h (renamed from testhal/STM32/multi/PAL/cfg-stm32l151_discovery/portab.h)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32l476_discovery/chconf.h (renamed from testhal/STM32/multi/PAL/cfg-stm32l476_discovery/chconf.h)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32l476_discovery/halconf.h417
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32l476_discovery/mcuconf.h (renamed from testhal/STM32/multi/PAL/cfg-stm32l476_discovery/mcuconf.h)0
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32l476_discovery/portab.c51
-rw-r--r--testhal/STM32/multi/PAL/cfg/stm32l476_discovery/portab.h (renamed from testhal/STM32/multi/PAL/cfg-stm32l476_discovery/portab.h)0
-rw-r--r--testhal/STM32/multi/PAL/debug/STM32-PAL (Select ELF file)(OpenOCD, Flash and Run).launch2
-rw-r--r--testhal/STM32/multi/PAL/debug/STM32-PAL (Select ELF file)(OpenOCD, Just Run).launch2
-rw-r--r--testhal/STM32/multi/PAL/make/stm32f051_discovery (renamed from testhal/STM32/multi/PAL/Makefile-stm32f051_discovery)4
-rw-r--r--[-rwxr-xr-x]testhal/STM32/multi/PAL/make/stm32f103_olimex (renamed from testhal/STM32/multi/PAL/Makefile-stm32f103_olimex)4
-rw-r--r--testhal/STM32/multi/PAL/make/stm32f303_discovery (renamed from testhal/STM32/multi/PAL/Makefile-stm32f303_discovery)4
-rw-r--r--[-rwxr-xr-x]testhal/STM32/multi/PAL/make/stm32f373_eval (renamed from testhal/STM32/multi/PAL/Makefile-stm32f373_eval)4
-rw-r--r--testhal/STM32/multi/PAL/make/stm32f407_discovery (renamed from testhal/STM32/multi/PAL/Makefile-stm32f407_discovery)4
-rw-r--r--[-rwxr-xr-x]testhal/STM32/multi/PAL/make/stm32f429_discovery (renamed from testhal/STM32/multi/PAL/Makefile-stm32f429_discovery)4
-rw-r--r--[-rwxr-xr-x]testhal/STM32/multi/PAL/make/stm32f746_discovery (renamed from testhal/STM32/multi/PAL/Makefile-stm32f746_discovery)4
-rw-r--r--testhal/STM32/multi/PAL/make/stm32l053_discovery (renamed from testhal/STM32/multi/PAL/Makefile-stm32l053_discovery)4
-rw-r--r--[-rwxr-xr-x]testhal/STM32/multi/PAL/make/stm32l151_discovery (renamed from testhal/STM32/multi/PAL/Makefile-stm32l151_discovery)4
-rw-r--r--testhal/STM32/multi/PAL/make/stm32l476_discovery (renamed from testhal/STM32/multi/PAL/Makefile-stm32l476_discovery)4
66 files changed, 528 insertions, 530 deletions
diff --git a/testhal/STM32/multi/PAL/.cproject b/testhal/STM32/multi/PAL/.cproject
index 6a45ccde2..7ecf202c3 100644
--- a/testhal/STM32/multi/PAL/.cproject
+++ b/testhal/STM32/multi/PAL/.cproject
@@ -52,7 +52,7 @@
<folderInfo id="0.1093754934.1746620542." name="/" resourcePath="">
<toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.1380490469" name="No ToolChain" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain">
<targetPlatform id="org.eclipse.cdt.build.core.prefbase.toolchain.1380490469.848060744" name=""/>
- <builder arguments="-f Makefile-stm32l476_discovery" command="make" id="org.eclipse.cdt.build.core.settings.default.builder.65281971" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="unlimited" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
+ <builder arguments="-f make/stm32l476_discovery" command="make" id="org.eclipse.cdt.build.core.settings.default.builder.65281971" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="unlimited" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
<tool id="org.eclipse.cdt.build.core.settings.holder.libs.2084462964" name="holder for library settings" superClass="org.eclipse.cdt.build.core.settings.holder.libs"/>
<tool id="org.eclipse.cdt.build.core.settings.holder.2129999941" name="Assembly" superClass="org.eclipse.cdt.build.core.settings.holder">
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1784151092" languageId="org.eclipse.cdt.core.assembly" languageName="Assembly" sourceContentType="org.eclipse.cdt.core.asmSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
@@ -86,7 +86,7 @@
<folderInfo id="0.1093754934.532782958." name="/" resourcePath="">
<toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.533442111" name="No ToolChain" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain">
<targetPlatform id="org.eclipse.cdt.build.core.prefbase.toolchain.533442111.1390225420" name=""/>
- <builder arguments="-f Makefile-stm32f051_discovery" command="make" id="org.eclipse.cdt.build.core.settings.default.builder.864530239" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="unlimited" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
+ <builder arguments="-f make/stm32f303_discovery" command="make" id="org.eclipse.cdt.build.core.settings.default.builder.864530239" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="unlimited" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
<tool id="org.eclipse.cdt.build.core.settings.holder.libs.116689755" name="holder for library settings" superClass="org.eclipse.cdt.build.core.settings.holder.libs"/>
<tool id="org.eclipse.cdt.build.core.settings.holder.679950307" name="Assembly" superClass="org.eclipse.cdt.build.core.settings.holder">
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.994473297" languageId="org.eclipse.cdt.core.assembly" languageName="Assembly" sourceContentType="org.eclipse.cdt.core.asmSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
@@ -120,7 +120,7 @@
<folderInfo id="0.1093754934.1834762588." name="/" resourcePath="">
<toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.1623555534" name="No ToolChain" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain">
<targetPlatform id="org.eclipse.cdt.build.core.prefbase.toolchain.1623555534.771003082" name=""/>
- <builder arguments="-f Makefile-stm32f407_discovery" command="make" id="org.eclipse.cdt.build.core.settings.default.builder.1947457853" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="unlimited" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
+ <builder arguments="-f make/stm32f407_discovery" command="make" id="org.eclipse.cdt.build.core.settings.default.builder.1947457853" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="unlimited" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
<tool id="org.eclipse.cdt.build.core.settings.holder.libs.427593883" name="holder for library settings" superClass="org.eclipse.cdt.build.core.settings.holder.libs"/>
<tool id="org.eclipse.cdt.build.core.settings.holder.942176940" name="Assembly" superClass="org.eclipse.cdt.build.core.settings.holder">
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.740420435" languageId="org.eclipse.cdt.core.assembly" languageName="Assembly" sourceContentType="org.eclipse.cdt.core.asmSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
@@ -154,7 +154,7 @@
<folderInfo id="0.1093754934.532782958.134374917." name="/" resourcePath="">
<toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.104587822" name="No ToolChain" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain">
<targetPlatform id="org.eclipse.cdt.build.core.prefbase.toolchain.104587822.156318938" name=""/>
- <builder arguments="-f Makefile-stm32f051_discovery" command="make" id="org.eclipse.cdt.build.core.settings.default.builder.2063151368" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="unlimited" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
+ <builder arguments="-f make/stm32f051_discovery" command="make" id="org.eclipse.cdt.build.core.settings.default.builder.2063151368" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="unlimited" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
<tool id="org.eclipse.cdt.build.core.settings.holder.libs.1715906686" name="holder for library settings" superClass="org.eclipse.cdt.build.core.settings.holder.libs"/>
<tool id="org.eclipse.cdt.build.core.settings.holder.516622197" name="Assembly" superClass="org.eclipse.cdt.build.core.settings.holder">
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1532859236" languageId="org.eclipse.cdt.core.assembly" languageName="Assembly" sourceContentType="org.eclipse.cdt.core.asmSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
@@ -188,7 +188,7 @@
<folderInfo id="0.1093754934.1317617301." name="/" resourcePath="">
<toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.600521155" name="No ToolChain" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain">
<targetPlatform id="org.eclipse.cdt.build.core.prefbase.toolchain.600521155.1940399580" name=""/>
- <builder arguments="-f Makefile-stm32f373_eval" command="make" id="org.eclipse.cdt.build.core.settings.default.builder.1798902617" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="unlimited" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
+ <builder arguments="-f make/stm32f373_eval" command="make" id="org.eclipse.cdt.build.core.settings.default.builder.1798902617" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="unlimited" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
<tool id="org.eclipse.cdt.build.core.settings.holder.libs.330286459" name="holder for library settings" superClass="org.eclipse.cdt.build.core.settings.holder.libs"/>
<tool id="org.eclipse.cdt.build.core.settings.holder.163152283" name="Assembly" superClass="org.eclipse.cdt.build.core.settings.holder">
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1874280547" languageId="org.eclipse.cdt.core.assembly" languageName="Assembly" sourceContentType="org.eclipse.cdt.core.asmSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
@@ -222,7 +222,7 @@
<folderInfo id="0.1093754934.69471493." name="/" resourcePath="">
<toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.1808398336" name="No ToolChain" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain">
<targetPlatform id="org.eclipse.cdt.build.core.prefbase.toolchain.1808398336.117017472" name=""/>
- <builder arguments="-f Makefile-stm32f746_discovery" command="make" id="org.eclipse.cdt.build.core.settings.default.builder.55361525" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="unlimited" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
+ <builder arguments="-f make/stm32f746_discovery" command="make" id="org.eclipse.cdt.build.core.settings.default.builder.55361525" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="unlimited" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
<tool id="org.eclipse.cdt.build.core.settings.holder.libs.1622934335" name="holder for library settings" superClass="org.eclipse.cdt.build.core.settings.holder.libs"/>
<tool id="org.eclipse.cdt.build.core.settings.holder.398933181" name="Assembly" superClass="org.eclipse.cdt.build.core.settings.holder">
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.334073402" languageId="org.eclipse.cdt.core.assembly" languageName="Assembly" sourceContentType="org.eclipse.cdt.core.asmSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
@@ -256,7 +256,7 @@
<folderInfo id="0.1093754934.1927962071." name="/" resourcePath="">
<toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.77444747" name="No ToolChain" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain">
<targetPlatform id="org.eclipse.cdt.build.core.prefbase.toolchain.77444747.1353224323" name=""/>
- <builder arguments="-f Makefile-stm32l053_discovery" command="make" id="org.eclipse.cdt.build.core.settings.default.builder.1756182361" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="unlimited" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
+ <builder arguments="-f make/stm32l053_discovery" command="make" id="org.eclipse.cdt.build.core.settings.default.builder.1756182361" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="unlimited" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
<tool id="org.eclipse.cdt.build.core.settings.holder.libs.1138801699" name="holder for library settings" superClass="org.eclipse.cdt.build.core.settings.holder.libs"/>
<tool id="org.eclipse.cdt.build.core.settings.holder.45913031" name="Assembly" superClass="org.eclipse.cdt.build.core.settings.holder">
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.737241280" languageId="org.eclipse.cdt.core.assembly" languageName="Assembly" sourceContentType="org.eclipse.cdt.core.asmSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
@@ -290,7 +290,7 @@
<folderInfo id="0.1093754934.237698851." name="/" resourcePath="">
<toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.1329233445" name="No ToolChain" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain">
<targetPlatform id="org.eclipse.cdt.build.core.prefbase.toolchain.1329233445.1109621223" name=""/>
- <builder arguments="-f Makefile-stm32l151_discovery" command="make" id="org.eclipse.cdt.build.core.settings.default.builder.670333833" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="unlimited" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
+ <builder arguments="-f make/stm32l151_discovery" command="make" id="org.eclipse.cdt.build.core.settings.default.builder.670333833" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="unlimited" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
<tool id="org.eclipse.cdt.build.core.settings.holder.libs.382262143" name="holder for library settings" superClass="org.eclipse.cdt.build.core.settings.holder.libs"/>
<tool id="org.eclipse.cdt.build.core.settings.holder.374849107" name="Assembly" superClass="org.eclipse.cdt.build.core.settings.holder">
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.2007154752" languageId="org.eclipse.cdt.core.assembly" languageName="Assembly" sourceContentType="org.eclipse.cdt.core.asmSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
@@ -324,7 +324,7 @@
<folderInfo id="0.1093754934.1666172521." name="/" resourcePath="">
<toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.1477908917" name="No ToolChain" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain">
<targetPlatform id="org.eclipse.cdt.build.core.prefbase.toolchain.1477908917.1127610129" name=""/>
- <builder arguments="-f Makefile-stm32f103_olimex" command="make" id="org.eclipse.cdt.build.core.settings.default.builder.2049994093" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="unlimited" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
+ <builder arguments="-f make/stm32f103_olimex" command="make" id="org.eclipse.cdt.build.core.settings.default.builder.2049994093" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="unlimited" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
<tool id="org.eclipse.cdt.build.core.settings.holder.libs.977599107" name="holder for library settings" superClass="org.eclipse.cdt.build.core.settings.holder.libs"/>
<tool id="org.eclipse.cdt.build.core.settings.holder.2122315570" name="Assembly" superClass="org.eclipse.cdt.build.core.settings.holder">
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1289315841" languageId="org.eclipse.cdt.core.assembly" languageName="Assembly" sourceContentType="org.eclipse.cdt.core.asmSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
@@ -358,7 +358,7 @@
<folderInfo id="0.1093754934.366574680." name="/" resourcePath="">
<toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.1562927958" name="No ToolChain" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain">
<targetPlatform id="org.eclipse.cdt.build.core.prefbase.toolchain.1562927958.1915246864" name=""/>
- <builder arguments="-f Makefile-stm32f429_discovery" command="make" id="org.eclipse.cdt.build.core.settings.default.builder.314142481" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="unlimited" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
+ <builder arguments="-f make/stm32f429_discovery" command="make" id="org.eclipse.cdt.build.core.settings.default.builder.314142481" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="unlimited" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
<tool id="org.eclipse.cdt.build.core.settings.holder.libs.1495591965" name="holder for library settings" superClass="org.eclipse.cdt.build.core.settings.holder.libs"/>
<tool id="org.eclipse.cdt.build.core.settings.holder.1254094356" name="Assembly" superClass="org.eclipse.cdt.build.core.settings.holder">
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1502836435" languageId="org.eclipse.cdt.core.assembly" languageName="Assembly" sourceContentType="org.eclipse.cdt.core.asmSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
diff --git a/testhal/STM32/multi/PAL/Makefile b/testhal/STM32/multi/PAL/Makefile
index c1d5dfdd7..47dca9f91 100644
--- a/testhal/STM32/multi/PAL/Makefile
+++ b/testhal/STM32/multi/PAL/Makefile
@@ -4,68 +4,66 @@
all:
@echo
- @echo === Building for STM32L053-Discovery ===============================
- @make --no-print-directory -f Makefile-stm32l053_discovery all
- @echo ====================================================================
- @echo
- @echo === Building for STM32L151-Discovery ===============================
- @make --no-print-directory -f Makefile-stm32l151_discovery all
- @echo ====================================================================
- @echo
- @echo === Building for STM32L476-Discovery ===============================
- @make --no-print-directory -f Makefile-stm32l476_discovery all
- @echo ====================================================================
- @echo
@echo === Building for STM32F051-Discovery ===============================
- @make --no-print-directory -f Makefile-stm32f051_discovery all
+ @make --no-print-directory -f ./make/stm32f051_discovery all
@echo ====================================================================
@echo
@echo === Building for STM32F103-Olimex ==================================
- @make --no-print-directory -f Makefile-stm32f103_olimex all
+ @make --no-print-directory -f ./make/stm32f103_olimex all
@echo ====================================================================
@echo
@echo === Building for STM32F303-Discovery ===============================
- @make --no-print-directory -f Makefile-stm32f303_discovery all
+ @make --no-print-directory -f ./make/stm32f303_discovery all
@echo ====================================================================
@echo
@echo === Building for STM32F373-Eval ====================================
- @make --no-print-directory -f Makefile-stm32f373_eval all
+ @make --no-print-directory -f ./make/stm32f373_eval all
@echo ====================================================================
@echo
@echo === Building for STM32F407-Discovery ===============================
- @make --no-print-directory -f Makefile-stm32f407_discovery all
+ @make --no-print-directory -f ./make/stm32f407_discovery all
@echo ====================================================================
@echo
@echo === Building for STM32F429-Discovery ===============================
- @make --no-print-directory -f Makefile-stm32f429_discovery all
+ @make --no-print-directory -f ./make/stm32f429_discovery all
@echo ====================================================================
@echo
@echo === Building for STM32F746-Discovery ===============================
- @make --no-print-directory -f Makefile-stm32f746_discovery all
+ @make --no-print-directory -f ./make/stm32f746_discovery all
@echo ====================================================================
@echo
-
+ @echo === Building for STM32L053-Discovery ===============================
+ @make --no-print-directory -f ./make/stm32l053_discovery all
+ @echo ====================================================================
+ @echo
+ @echo === Building for STM32L151-Discovery ===============================
+ @make --no-print-directory -f ./make/stm32l151_discovery all
+ @echo ====================================================================
+ @echo
+ @echo === Building for STM32L476-Discovery ===============================
+ @make --no-print-directory -f ./make/stm32l476_discovery all
+ @echo ====================================================================
clean:
@echo
- -@make --no-print-directory -f Makefile-stm32l053_discovery clean
+ -@make --no-print-directory -f ./make/stm32f051_discovery clean
@echo
- -@make --no-print-directory -f Makefile-stm32l151_discovery clean
+ -@make --no-print-directory -f ./make/stm32f103_olimex clean
@echo
- -@make --no-print-directory -f Makefile-stm32l476_discovery clean
+ -@make --no-print-directory -f ./make/stm32f303_discovery clean
@echo
- -@make --no-print-directory -f Makefile-stm32f051_discovery clean
+ -@make --no-print-directory -f ./make/stm32f373_eval clean
@echo
- -@make --no-print-directory -f Makefile-stm32f103_olimex clean
+ -@make --no-print-directory -f ./make/stm32f407_discovery clean
@echo
- -@make --no-print-directory -f Makefile-stm32f303_discovery clean
+ -@make --no-print-directory -f ./make/stm32f429_discovery clean
@echo
- -@make --no-print-directory -f Makefile-stm32f373_eval clean
+ -@make --no-print-directory -f ./make/stm32f746_discovery clean
@echo
- -@make --no-print-directory -f Makefile-stm32f407_discovery clean
+ -@make --no-print-directory -f ./make/stm32l053_discovery clean
@echo
- -@make --no-print-directory -f Makefile-stm32f429_discovery clean
+ -@make --no-print-directory -f ./make/stm32l151_discovery clean
@echo
- -@make --no-print-directory -f Makefile-stm32f746_discovery clean
+ -@make --no-print-directory -f ./make/stm32l476_discovery clean
@echo
#
diff --git a/testhal/STM32/multi/PAL/cfg-stm32l151_discovery/halconf.h b/testhal/STM32/multi/PAL/cfg-stm32l151_discovery/halconf.h
deleted file mode 100644
index cfb4d401a..000000000
--- a/testhal/STM32/multi/PAL/cfg-stm32l151_discovery/halconf.h
+++ /dev/null
@@ -1,417 +0,0 @@
-/*
- ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
-
-/**
- * @file templates/halconf.h
- * @brief HAL configuration header.
- * @details HAL configuration file, this file allows to enable or disable the
- * various device drivers from your application. You may also use
- * this file in order to override the device drivers default settings.
- *
- * @addtogroup HAL_CONF
- * @{
- */
-
-#ifndef HALCONF_H
-#define HALCONF_H
-
-#include <cfg-stm32l151_discovery/mcuconf.h>
-
-/**
- * @brief Enables the PAL subsystem.
- */
-#if !defined(HAL_USE_PAL) || defined(__DOXYGEN__)
-#define HAL_USE_PAL TRUE
-#endif
-
-/**
- * @brief Enables the ADC subsystem.
- */
-#if !defined(HAL_USE_ADC) || defined(__DOXYGEN__)
-#define HAL_USE_ADC FALSE
-#endif
-
-/**
- * @brief Enables the CAN subsystem.
- */
-#if !defined(HAL_USE_CAN) || defined(__DOXYGEN__)
-#define HAL_USE_CAN FALSE
-#endif
-
-/**
- * @brief Enables the cryptographic subsystem.
- */
-#if !defined(HAL_USE_CRY) || defined(__DOXYGEN__)
-#define HAL_USE_CRY FALSE
-#endif
-
-/**
- * @brief Enables the DAC subsystem.
- */
-#if !defined(HAL_USE_DAC) || defined(__DOXYGEN__)
-#define HAL_USE_DAC FALSE
-#endif
-
-/**
- * @brief Enables the EXT subsystem.
- */
-#if !defined(HAL_USE_EXT) || defined(__DOXYGEN__)
-#define HAL_USE_EXT FALSE
-#endif
-
-/**
- * @brief Enables the GPT subsystem.
- */
-#if !defined(HAL_USE_GPT) || defined(__DOXYGEN__)
-#define HAL_USE_GPT FALSE
-#endif
-
-/**
- * @brief Enables the I2C subsystem.
- */
-#if !defined(HAL_USE_I2C) || defined(__DOXYGEN__)
-#define HAL_USE_I2C FALSE
-#endif
-
-/**
- * @brief Enables the I2S subsystem.
- */
-#if !defined(HAL_USE_I2S) || defined(__DOXYGEN__)
-#define HAL_USE_I2S FALSE
-#endif
-
-/**
- * @brief Enables the ICU subsystem.
- */
-#if !defined(HAL_USE_ICU) || defined(__DOXYGEN__)
-#define HAL_USE_ICU FALSE
-#endif
-
-/**
- * @brief Enables the MAC subsystem.
- */
-#if !defined(HAL_USE_MAC) || defined(__DOXYGEN__)
-#define HAL_USE_MAC FALSE
-#endif
-
-/**
- * @brief Enables the MMC_SPI subsystem.
- */
-#if !defined(HAL_USE_MMC_SPI) || defined(__DOXYGEN__)
-#define HAL_USE_MMC_SPI FALSE
-#endif
-
-/**
- * @brief Enables the PWM subsystem.
- */
-#if !defined(HAL_USE_PWM) || defined(__DOXYGEN__)
-#define HAL_USE_PWM FALSE
-#endif
-
-/**
- * @brief Enables the QSPI subsystem.
- */
-#if !defined(HAL_USE_QSPI) || defined(__DOXYGEN__)
-#define HAL_USE_QSPI FALSE
-#endif
-
-/**
- * @brief Enables the RTC subsystem.
- */
-#if !defined(HAL_USE_RTC) || defined(__DOXYGEN__)
-#define HAL_USE_RTC FALSE
-#endif
-
-/**
- * @brief Enables the SDC subsystem.
- */
-#if !defined(HAL_USE_SDC) || defined(__DOXYGEN__)
-#define HAL_USE_SDC FALSE
-#endif
-
-/**
- * @brief Enables the SERIAL subsystem.
- */
-#if !defined(HAL_USE_SERIAL) || defined(__DOXYGEN__)
-#define HAL_USE_SERIAL FALSE
-#endif
-
-/**
- * @brief Enables the SERIAL over USB subsystem.
- */
-#if !defined(HAL_USE_SERIAL_USB) || defined(__DOXYGEN__)
-#define HAL_USE_SERIAL_USB FALSE
-#endif
-
-/**
- * @brief Enables the SPI subsystem.
- */
-#if !defined(HAL_USE_SPI) || defined(__DOXYGEN__)
-#define HAL_USE_SPI FALSE
-#endif
-
-/**
- * @brief Enables the UART subsystem.
- */
-#if !defined(HAL_USE_UART) || defined(__DOXYGEN__)
-#define HAL_USE_UART FALSE
-#endif
-
-/**
- * @brief Enables the USB subsystem.
- */
-#if !defined(HAL_USE_USB) || defined(__DOXYGEN__)
-#define HAL_USE_USB FALSE
-#endif
-
-/**
- * @brief Enables the WDG subsystem.
- */
-#if !defined(HAL_USE_WDG) || defined(__DOXYGEN__)
-#define HAL_USE_WDG FALSE
-#endif
-
-/*===========================================================================*/
-/* ADC driver related settings. */
-/*===========================================================================*/
-
-/**
- * @brief Enables synchronous APIs.
- * @note Disabling this option saves both code and data space.
- */
-#if !defined(ADC_USE_WAIT) || defined(__DOXYGEN__)
-#define ADC_USE_WAIT TRUE
-#endif
-
-/**
- * @brief Enables the @p adcAcquireBus() and @p adcReleaseBus() APIs.
- * @note Disabling this option saves both code and data space.
- */
-#if !defined(ADC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
-#define ADC_USE_MUTUAL_EXCLUSION TRUE
-#endif
-
-/*===========================================================================*/
-/* CAN driver related settings. */
-/*===========================================================================*/
-
-/**
- * @brief Sleep mode related APIs inclusion switch.
- */
-#if !defined(CAN_USE_SLEEP_MODE) || defined(__DOXYGEN__)
-#define CAN_USE_SLEEP_MODE TRUE
-#endif
-
-/*===========================================================================*/
-/* CRY driver related settings. */
-/*===========================================================================*/
-
-/**
- * @brief Enables the SW fall-back of the cryptographic driver.
- * @details When enabled, this option, activates a fall-back software
- * implementation for algorithms not supported by the underlying
- * hardware.
- * @note Fall-back implementations may not be present for all algorithms.
- */
-#if !defined(HAL_CRY_USE_FALLBACK) || defined(__DOXYGEN__)
-#define HAL_CRY_USE_FALLBACK FALSE
-#endif
-
-/**
- * @brief Makes the driver forcibly use the fall-back implementations.
- */
-#if !defined(HAL_CRY_ENFORCE_FALLBACK) || defined(__DOXYGEN__)
-#define HAL_CRY_ENFORCE_FALLBACK FALSE
-#endif
-
-/*===========================================================================*/
-/* I2C driver related settings. */
-/*===========================================================================*/
-
-/**
- * @brief Enables the mutual exclusion APIs on the I2C bus.
- */
-#if !defined(I2C_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
-#define I2C_USE_MUTUAL_EXCLUSION TRUE
-#endif
-
-/*===========================================================================*/
-/* MAC driver related settings. */
-/*===========================================================================*/
-
-/**
- * @brief Enables an event sources for incoming packets.
- */
-#if !defined(MAC_USE_ZERO_COPY) || defined(__DOXYGEN__)
-#define MAC_USE_ZERO_COPY FALSE
-#endif
-
-/**
- * @brief Enables an event sources for incoming packets.
- */
-#if !defined(MAC_USE_EVENTS) || defined(__DOXYGEN__)
-#define MAC_USE_EVENTS TRUE
-#endif
-
-/*===========================================================================*/
-/* MMC_SPI driver related settings. */
-/*===========================================================================*/
-
-/**
- * @brief Delays insertions.
- * @details If enabled this options inserts delays into the MMC waiting
- * routines releasing some extra CPU time for the threads with
- * lower priority, this may slow down the driver a bit however.
- * This option is recommended also if the SPI driver does not
- * use a DMA channel and heavily loads the CPU.
- */
-#if !defined(MMC_NICE_WAITING) || defined(__DOXYGEN__)
-#define MMC_NICE_WAITING TRUE
-#endif
-
-/*===========================================================================*/
-/* SDC driver related settings. */
-/*===========================================================================*/
-
-/**
- * @brief Number of initialization attempts before rejecting the card.
- * @note Attempts are performed at 10mS intervals.
- */
-#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
-#define SDC_INIT_RETRY 100
-#endif
-
-/**
- * @brief Include support for MMC cards.
- * @note MMC support is not yet implemented so this option must be kept
- * at @p FALSE.
- */
-#if !defined(SDC_MMC_SUPPORT) || defined(__DOXYGEN__)
-#define SDC_MMC_SUPPORT FALSE
-#endif
-
-/**
- * @brief Delays insertions.
- * @details If enabled this options inserts delays into the MMC waiting
- * routines releasing some extra CPU time for the threads with
- * lower priority, this may slow down the driver a bit however.
- */
-#if !defined(SDC_NICE_WAITING) || defined(__DOXYGEN__)
-#define SDC_NICE_WAITING TRUE
-#endif
-
-/*===========================================================================*/
-/* SERIAL driver related settings. */
-/*===========================================================================*/
-
-/**
- * @brief Default bit rate.
- * @details Configuration parameter, this is the baud rate selected for the
- * default configuration.
- */
-#if !defined(SERIAL_DEFAULT_BITRATE) || defined(__DOXYGEN__)
-#define SERIAL_DEFAULT_BITRATE 38400
-#endif
-
-/**
- * @brief Serial buffers size.
- * @details Configuration parameter, you can change the depth of the queue
- * buffers depending on the requirements of your application.
- * @note The default is 16 bytes for both the transmission and receive
- * buffers.
- */
-#if !defined(SERIAL_BUFFERS_SIZE) || defined(__DOXYGEN__)
-#define SERIAL_BUFFERS_SIZE 16
-#endif
-
-/*===========================================================================*/
-/* SERIAL_USB driver related setting. */
-/*===========================================================================*/
-
-/**
- * @brief Serial over USB buffers size.
- * @details Configuration parameter, the buffer size must be a multiple of
- * the USB data endpoint maximum packet size.
- * @note The default is 256 bytes for both the transmission and receive
- * buffers.
- */
-#if !defined(SERIAL_USB_BUFFERS_SIZE) || defined(__DOXYGEN__)
-#define SERIAL_USB_BUFFERS_SIZE 256
-#endif
-
-/**
- * @brief Serial over USB number of buffers.
- * @note The default is 2 buffers.
- */
-#if !defined(SERIAL_USB_BUFFERS_NUMBER) || defined(__DOXYGEN__)
-#define SERIAL_USB_BUFFERS_NUMBER 2
-#endif
-
-/*===========================================================================*/
-/* SPI driver related settings. */
-/*===========================================================================*/
-
-/**
- * @brief Enables synchronous APIs.
- * @note Disabling this option saves both code and data space.
- */
-#if !defined(SPI_USE_WAIT) || defined(__DOXYGEN__)
-#define SPI_USE_WAIT TRUE
-#endif
-
-/**
- * @brief Enables the @p spiAcquireBus() and @p spiReleaseBus() APIs.
- * @note Disabling this option saves both code and data space.
- */
-#if !defined(SPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
-#define SPI_USE_MUTUAL_EXCLUSION TRUE
-#endif
-
-/*===========================================================================*/
-/* UART driver related settings. */
-/*===========================================================================*/
-
-/**
- * @brief Enables synchronous APIs.
- * @note Disabling this option saves both code and data space.
- */
-#if !defined(UART_USE_WAIT) || defined(__DOXYGEN__)
-#define UART_USE_WAIT FALSE
-#endif
-
-/**
- * @brief Enables the @p uartAcquireBus() and @p uartReleaseBus() APIs.
- * @note Disabling this option saves both code and data space.
- */
-#if !defined(UART_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
-#define UART_USE_MUTUAL_EXCLUSION FALSE
-#endif
-
-/*===========================================================================*/
-/* USB driver related settings. */
-/*===========================================================================*/
-
-/**
- * @brief Enables synchronous APIs.
- * @note Disabling this option saves both code and data space.
- */
-#if !defined(USB_USE_WAIT) || defined(__DOXYGEN__)
-#define USB_USE_WAIT FALSE
-#endif
-
-#endif /* HALCONF_H */
-
-/** @} */
diff --git a/testhal/STM32/multi/PAL/cfg-stm32l151_discovery/portab.c b/testhal/STM32/multi/PAL/cfg-stm32l151_discovery/portab.c
deleted file mode 100644
index e05972153..000000000
--- a/testhal/STM32/multi/PAL/cfg-stm32l151_discovery/portab.c
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
-
-/**
- * @file portab.c
- * @brief Application portability module code.
- *
- * @addtogroup application_portability
- * @{
- */
-
-#include <cfg-stm32l151_discovery/portab.h>
-
-/*===========================================================================*/
-/* Module local definitions. */
-/*===========================================================================*/
-
-/*===========================================================================*/
-/* Module exported variables. */
-/*===========================================================================*/
-
-/*===========================================================================*/
-/* Module local types. */
-/*===========================================================================*/
-
-/*===========================================================================*/
-/* Module local variables. */
-/*===========================================================================*/
-
-/*===========================================================================*/
-/* Module local functions. */
-/*===========================================================================*/
-
-/*===========================================================================*/
-/* Module exported functions. */
-/*===========================================================================*/
-
-/** @} */
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f051_discovery/chconf.h b/testhal/STM32/multi/PAL/cfg/stm32f051_discovery/chconf.h
index 53bd6764b..53bd6764b 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f051_discovery/chconf.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32f051_discovery/chconf.h
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f051_discovery/halconf.h b/testhal/STM32/multi/PAL/cfg/stm32f051_discovery/halconf.h
index 6d3895392..6d3895392 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f051_discovery/halconf.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32f051_discovery/halconf.h
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f051_discovery/mcuconf.h b/testhal/STM32/multi/PAL/cfg/stm32f051_discovery/mcuconf.h
index b4ef0a775..b4ef0a775 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f051_discovery/mcuconf.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32f051_discovery/mcuconf.h
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f051_discovery/portab.c b/testhal/STM32/multi/PAL/cfg/stm32f051_discovery/portab.c
index 6315515a0..6315515a0 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f051_discovery/portab.c
+++ b/testhal/STM32/multi/PAL/cfg/stm32f051_discovery/portab.c
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f051_discovery/portab.h b/testhal/STM32/multi/PAL/cfg/stm32f051_discovery/portab.h
index 14cb82b13..14cb82b13 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f051_discovery/portab.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32f051_discovery/portab.h
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f103_olimex/chconf.h b/testhal/STM32/multi/PAL/cfg/stm32f103_olimex/chconf.h
index 61d419211..61d419211 100755..100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f103_olimex/chconf.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32f103_olimex/chconf.h
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f103_olimex/halconf.h b/testhal/STM32/multi/PAL/cfg/stm32f103_olimex/halconf.h
index 6d3895392..6d3895392 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f103_olimex/halconf.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32f103_olimex/halconf.h
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f103_olimex/mcuconf.h b/testhal/STM32/multi/PAL/cfg/stm32f103_olimex/mcuconf.h
index 60a1e66e8..60a1e66e8 100755..100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f103_olimex/mcuconf.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32f103_olimex/mcuconf.h
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f103_olimex/portab.c b/testhal/STM32/multi/PAL/cfg/stm32f103_olimex/portab.c
index 6315515a0..6315515a0 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f103_olimex/portab.c
+++ b/testhal/STM32/multi/PAL/cfg/stm32f103_olimex/portab.c
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f103_olimex/portab.h b/testhal/STM32/multi/PAL/cfg/stm32f103_olimex/portab.h
index d7ccd6994..d7ccd6994 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f103_olimex/portab.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32f103_olimex/portab.h
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f303_discovery/chconf.h b/testhal/STM32/multi/PAL/cfg/stm32f303_discovery/chconf.h
index 184320861..184320861 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f303_discovery/chconf.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32f303_discovery/chconf.h
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f303_discovery/halconf.h b/testhal/STM32/multi/PAL/cfg/stm32f303_discovery/halconf.h
index 6d3895392..6d3895392 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f303_discovery/halconf.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32f303_discovery/halconf.h
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f303_discovery/mcuconf.h b/testhal/STM32/multi/PAL/cfg/stm32f303_discovery/mcuconf.h
index 99b241889..99b241889 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f303_discovery/mcuconf.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32f303_discovery/mcuconf.h
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f303_discovery/portab.c b/testhal/STM32/multi/PAL/cfg/stm32f303_discovery/portab.c
index 6315515a0..6315515a0 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f303_discovery/portab.c
+++ b/testhal/STM32/multi/PAL/cfg/stm32f303_discovery/portab.c
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f303_discovery/portab.h b/testhal/STM32/multi/PAL/cfg/stm32f303_discovery/portab.h
index 306be489d..306be489d 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f303_discovery/portab.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32f303_discovery/portab.h
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f373_eval/chconf.h b/testhal/STM32/multi/PAL/cfg/stm32f373_eval/chconf.h
index 899a292ef..899a292ef 100755..100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f373_eval/chconf.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32f373_eval/chconf.h
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f373_eval/halconf.h b/testhal/STM32/multi/PAL/cfg/stm32f373_eval/halconf.h
index 6d3895392..6d3895392 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f373_eval/halconf.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32f373_eval/halconf.h
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f373_eval/mcuconf.h b/testhal/STM32/multi/PAL/cfg/stm32f373_eval/mcuconf.h
index 818b17f3e..818b17f3e 100755..100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f373_eval/mcuconf.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32f373_eval/mcuconf.h
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f373_eval/portab.c b/testhal/STM32/multi/PAL/cfg/stm32f373_eval/portab.c
index 6315515a0..6315515a0 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f373_eval/portab.c
+++ b/testhal/STM32/multi/PAL/cfg/stm32f373_eval/portab.c
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f373_eval/portab.h b/testhal/STM32/multi/PAL/cfg/stm32f373_eval/portab.h
index c8feeae02..c8feeae02 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f373_eval/portab.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32f373_eval/portab.h
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f407_discovery/chconf.h b/testhal/STM32/multi/PAL/cfg/stm32f407_discovery/chconf.h
index 184320861..184320861 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f407_discovery/chconf.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32f407_discovery/chconf.h
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f407_discovery/halconf.h b/testhal/STM32/multi/PAL/cfg/stm32f407_discovery/halconf.h
index 6d3895392..6d3895392 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f407_discovery/halconf.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32f407_discovery/halconf.h
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f407_discovery/mcuconf.h b/testhal/STM32/multi/PAL/cfg/stm32f407_discovery/mcuconf.h
index d04cdfa77..d04cdfa77 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f407_discovery/mcuconf.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32f407_discovery/mcuconf.h
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f407_discovery/portab.c b/testhal/STM32/multi/PAL/cfg/stm32f407_discovery/portab.c
index 6315515a0..6315515a0 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f407_discovery/portab.c
+++ b/testhal/STM32/multi/PAL/cfg/stm32f407_discovery/portab.c
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f407_discovery/portab.h b/testhal/STM32/multi/PAL/cfg/stm32f407_discovery/portab.h
index 14cb82b13..14cb82b13 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f407_discovery/portab.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32f407_discovery/portab.h
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f429_discovery/chconf.h b/testhal/STM32/multi/PAL/cfg/stm32f429_discovery/chconf.h
index 899a292ef..899a292ef 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f429_discovery/chconf.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32f429_discovery/chconf.h
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f429_discovery/halconf.h b/testhal/STM32/multi/PAL/cfg/stm32f429_discovery/halconf.h
index 6d3895392..6d3895392 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f429_discovery/halconf.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32f429_discovery/halconf.h
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f429_discovery/mcuconf.h b/testhal/STM32/multi/PAL/cfg/stm32f429_discovery/mcuconf.h
index d3667ec0d..d3667ec0d 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f429_discovery/mcuconf.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32f429_discovery/mcuconf.h
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f429_discovery/portab.c b/testhal/STM32/multi/PAL/cfg/stm32f429_discovery/portab.c
index 6315515a0..6315515a0 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f429_discovery/portab.c
+++ b/testhal/STM32/multi/PAL/cfg/stm32f429_discovery/portab.c
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f429_discovery/portab.h b/testhal/STM32/multi/PAL/cfg/stm32f429_discovery/portab.h
index 30b2c903c..30b2c903c 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f429_discovery/portab.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32f429_discovery/portab.h
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f746_discovery/chconf.h b/testhal/STM32/multi/PAL/cfg/stm32f746_discovery/chconf.h
index 184320861..184320861 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f746_discovery/chconf.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32f746_discovery/chconf.h
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f746_discovery/halconf.h b/testhal/STM32/multi/PAL/cfg/stm32f746_discovery/halconf.h
index 6d3895392..6d3895392 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f746_discovery/halconf.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32f746_discovery/halconf.h
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f746_discovery/mcuconf.h b/testhal/STM32/multi/PAL/cfg/stm32f746_discovery/mcuconf.h
index 2d5eea42c..2d5eea42c 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f746_discovery/mcuconf.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32f746_discovery/mcuconf.h
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f746_discovery/portab.c b/testhal/STM32/multi/PAL/cfg/stm32f746_discovery/portab.c
index 6315515a0..6315515a0 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f746_discovery/portab.c
+++ b/testhal/STM32/multi/PAL/cfg/stm32f746_discovery/portab.c
diff --git a/testhal/STM32/multi/PAL/cfg-stm32f746_discovery/portab.h b/testhal/STM32/multi/PAL/cfg/stm32f746_discovery/portab.h
index d2c93ad35..d2c93ad35 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32f746_discovery/portab.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32f746_discovery/portab.h
diff --git a/testhal/STM32/multi/PAL/cfg-stm32l053_discovery/chconf.h b/testhal/STM32/multi/PAL/cfg/stm32l053_discovery/chconf.h
index ac9a86366..ac9a86366 100755..100644
--- a/testhal/STM32/multi/PAL/cfg-stm32l053_discovery/chconf.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32l053_discovery/chconf.h
diff --git a/testhal/STM32/multi/PAL/cfg-stm32l053_discovery/halconf.h b/testhal/STM32/multi/PAL/cfg/stm32l053_discovery/halconf.h
index 6d3895392..6d3895392 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32l053_discovery/halconf.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32l053_discovery/halconf.h
diff --git a/testhal/STM32/multi/PAL/cfg-stm32l053_discovery/mcuconf.h b/testhal/STM32/multi/PAL/cfg/stm32l053_discovery/mcuconf.h
index 89b9135e5..89b9135e5 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32l053_discovery/mcuconf.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32l053_discovery/mcuconf.h
diff --git a/testhal/STM32/multi/PAL/cfg-stm32l053_discovery/portab.c b/testhal/STM32/multi/PAL/cfg/stm32l053_discovery/portab.c
index 6315515a0..6315515a0 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32l053_discovery/portab.c
+++ b/testhal/STM32/multi/PAL/cfg/stm32l053_discovery/portab.c
diff --git a/testhal/STM32/multi/PAL/cfg-stm32l053_discovery/portab.h b/testhal/STM32/multi/PAL/cfg/stm32l053_discovery/portab.h
index 4341fa22a..4341fa22a 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32l053_discovery/portab.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32l053_discovery/portab.h
diff --git a/testhal/STM32/multi/PAL/cfg-stm32l151_discovery/chconf.h b/testhal/STM32/multi/PAL/cfg/stm32l151_discovery/chconf.h
index 150ec4341..150ec4341 100755..100644
--- a/testhal/STM32/multi/PAL/cfg-stm32l151_discovery/chconf.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32l151_discovery/chconf.h
diff --git a/testhal/STM32/multi/PAL/cfg-stm32l476_discovery/halconf.h b/testhal/STM32/multi/PAL/cfg/stm32l151_discovery/halconf.h
index 6d3895392..6d3895392 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32l476_discovery/halconf.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32l151_discovery/halconf.h
diff --git a/testhal/STM32/multi/PAL/cfg-stm32l151_discovery/mcuconf.h b/testhal/STM32/multi/PAL/cfg/stm32l151_discovery/mcuconf.h
index 12ac88d3f..12ac88d3f 100755..100644
--- a/testhal/STM32/multi/PAL/cfg-stm32l151_discovery/mcuconf.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32l151_discovery/mcuconf.h
diff --git a/testhal/STM32/multi/PAL/cfg-stm32l476_discovery/portab.c b/testhal/STM32/multi/PAL/cfg/stm32l151_discovery/portab.c
index 6315515a0..6315515a0 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32l476_discovery/portab.c
+++ b/testhal/STM32/multi/PAL/cfg/stm32l151_discovery/portab.c
diff --git a/testhal/STM32/multi/PAL/cfg-stm32l151_discovery/portab.h b/testhal/STM32/multi/PAL/cfg/stm32l151_discovery/portab.h
index f99e79e82..f99e79e82 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32l151_discovery/portab.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32l151_discovery/portab.h
diff --git a/testhal/STM32/multi/PAL/cfg-stm32l476_discovery/chconf.h b/testhal/STM32/multi/PAL/cfg/stm32l476_discovery/chconf.h
index f7588551f..f7588551f 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32l476_discovery/chconf.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32l476_discovery/chconf.h
diff --git a/testhal/STM32/multi/PAL/cfg/stm32l476_discovery/halconf.h b/testhal/STM32/multi/PAL/cfg/stm32l476_discovery/halconf.h
new file mode 100644
index 000000000..6d3895392
--- /dev/null
+++ b/testhal/STM32/multi/PAL/cfg/stm32l476_discovery/halconf.h
@@ -0,0 +1,417 @@
+/*
+ ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+*/
+
+/**
+ * @file templates/halconf.h
+ * @brief HAL configuration header.
+ * @details HAL configuration file, this file allows to enable or disable the
+ * various device drivers from your application. You may also use
+ * this file in order to override the device drivers default settings.
+ *
+ * @addtogroup HAL_CONF
+ * @{
+ */
+
+#ifndef HALCONF_H
+#define HALCONF_H
+
+#include "mcuconf.h"
+
+/**
+ * @brief Enables the PAL subsystem.
+ */
+#if !defined(HAL_USE_PAL) || defined(__DOXYGEN__)
+#define HAL_USE_PAL TRUE
+#endif
+
+/**
+ * @brief Enables the ADC subsystem.
+ */
+#if !defined(HAL_USE_ADC) || defined(__DOXYGEN__)
+#define HAL_USE_ADC FALSE
+#endif
+
+/**
+ * @brief Enables the CAN subsystem.
+ */
+#if !defined(HAL_USE_CAN) || defined(__DOXYGEN__)
+#define HAL_USE_CAN FALSE
+#endif
+
+/**
+ * @brief Enables the cryptographic subsystem.
+ */
+#if !defined(HAL_USE_CRY) || defined(__DOXYGEN__)
+#define HAL_USE_CRY FALSE
+#endif
+
+/**
+ * @brief Enables the DAC subsystem.
+ */
+#if !defined(HAL_USE_DAC) || defined(__DOXYGEN__)
+#define HAL_USE_DAC FALSE
+#endif
+
+/**
+ * @brief Enables the EXT subsystem.
+ */
+#if !defined(HAL_USE_EXT) || defined(__DOXYGEN__)
+#define HAL_USE_EXT FALSE
+#endif
+
+/**
+ * @brief Enables the GPT subsystem.
+ */
+#if !defined(HAL_USE_GPT) || defined(__DOXYGEN__)
+#define HAL_USE_GPT FALSE
+#endif
+
+/**
+ * @brief Enables the I2C subsystem.
+ */
+#if !defined(HAL_USE_I2C) || defined(__DOXYGEN__)
+#define HAL_USE_I2C FALSE
+#endif
+
+/**
+ * @brief Enables the I2S subsystem.
+ */
+#if !defined(HAL_USE_I2S) || defined(__DOXYGEN__)
+#define HAL_USE_I2S FALSE
+#endif
+
+/**
+ * @brief Enables the ICU subsystem.
+ */
+#if !defined(HAL_USE_ICU) || defined(__DOXYGEN__)
+#define HAL_USE_ICU FALSE
+#endif
+
+/**
+ * @brief Enables the MAC subsystem.
+ */
+#if !defined(HAL_USE_MAC) || defined(__DOXYGEN__)
+#define HAL_USE_MAC FALSE
+#endif
+
+/**
+ * @brief Enables the MMC_SPI subsystem.
+ */
+#if !defined(HAL_USE_MMC_SPI) || defined(__DOXYGEN__)
+#define HAL_USE_MMC_SPI FALSE
+#endif
+
+/**
+ * @brief Enables the PWM subsystem.
+ */
+#if !defined(HAL_USE_PWM) || defined(__DOXYGEN__)
+#define HAL_USE_PWM FALSE
+#endif
+
+/**
+ * @brief Enables the QSPI subsystem.
+ */
+#if !defined(HAL_USE_QSPI) || defined(__DOXYGEN__)
+#define HAL_USE_QSPI FALSE
+#endif
+
+/**
+ * @brief Enables the RTC subsystem.
+ */
+#if !defined(HAL_USE_RTC) || defined(__DOXYGEN__)
+#define HAL_USE_RTC FALSE
+#endif
+
+/**
+ * @brief Enables the SDC subsystem.
+ */
+#if !defined(HAL_USE_SDC) || defined(__DOXYGEN__)
+#define HAL_USE_SDC FALSE
+#endif
+
+/**
+ * @brief Enables the SERIAL subsystem.
+ */
+#if !defined(HAL_USE_SERIAL) || defined(__DOXYGEN__)
+#define HAL_USE_SERIAL FALSE
+#endif
+
+/**
+ * @brief Enables the SERIAL over USB subsystem.
+ */
+#if !defined(HAL_USE_SERIAL_USB) || defined(__DOXYGEN__)
+#define HAL_USE_SERIAL_USB FALSE
+#endif
+
+/**
+ * @brief Enables the SPI subsystem.
+ */
+#if !defined(HAL_USE_SPI) || defined(__DOXYGEN__)
+#define HAL_USE_SPI FALSE
+#endif
+
+/**
+ * @brief Enables the UART subsystem.
+ */
+#if !defined(HAL_USE_UART) || defined(__DOXYGEN__)
+#define HAL_USE_UART FALSE
+#endif
+
+/**
+ * @brief Enables the USB subsystem.
+ */
+#if !defined(HAL_USE_USB) || defined(__DOXYGEN__)
+#define HAL_USE_USB FALSE
+#endif
+
+/**
+ * @brief Enables the WDG subsystem.
+ */
+#if !defined(HAL_USE_WDG) || defined(__DOXYGEN__)
+#define HAL_USE_WDG FALSE
+#endif
+
+/*===========================================================================*/
+/* ADC driver related settings. */
+/*===========================================================================*/
+
+/**
+ * @brief Enables synchronous APIs.
+ * @note Disabling this option saves both code and data space.
+ */
+#if !defined(ADC_USE_WAIT) || defined(__DOXYGEN__)
+#define ADC_USE_WAIT TRUE
+#endif
+
+/**
+ * @brief Enables the @p adcAcquireBus() and @p adcReleaseBus() APIs.
+ * @note Disabling this option saves both code and data space.
+ */
+#if !defined(ADC_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
+#define ADC_USE_MUTUAL_EXCLUSION TRUE
+#endif
+
+/*===========================================================================*/
+/* CAN driver related settings. */
+/*===========================================================================*/
+
+/**
+ * @brief Sleep mode related APIs inclusion switch.
+ */
+#if !defined(CAN_USE_SLEEP_MODE) || defined(__DOXYGEN__)
+#define CAN_USE_SLEEP_MODE TRUE
+#endif
+
+/*===========================================================================*/
+/* CRY driver related settings. */
+/*===========================================================================*/
+
+/**
+ * @brief Enables the SW fall-back of the cryptographic driver.
+ * @details When enabled, this option, activates a fall-back software
+ * implementation for algorithms not supported by the underlying
+ * hardware.
+ * @note Fall-back implementations may not be present for all algorithms.
+ */
+#if !defined(HAL_CRY_USE_FALLBACK) || defined(__DOXYGEN__)
+#define HAL_CRY_USE_FALLBACK FALSE
+#endif
+
+/**
+ * @brief Makes the driver forcibly use the fall-back implementations.
+ */
+#if !defined(HAL_CRY_ENFORCE_FALLBACK) || defined(__DOXYGEN__)
+#define HAL_CRY_ENFORCE_FALLBACK FALSE
+#endif
+
+/*===========================================================================*/
+/* I2C driver related settings. */
+/*===========================================================================*/
+
+/**
+ * @brief Enables the mutual exclusion APIs on the I2C bus.
+ */
+#if !defined(I2C_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
+#define I2C_USE_MUTUAL_EXCLUSION TRUE
+#endif
+
+/*===========================================================================*/
+/* MAC driver related settings. */
+/*===========================================================================*/
+
+/**
+ * @brief Enables an event sources for incoming packets.
+ */
+#if !defined(MAC_USE_ZERO_COPY) || defined(__DOXYGEN__)
+#define MAC_USE_ZERO_COPY FALSE
+#endif
+
+/**
+ * @brief Enables an event sources for incoming packets.
+ */
+#if !defined(MAC_USE_EVENTS) || defined(__DOXYGEN__)
+#define MAC_USE_EVENTS TRUE
+#endif
+
+/*===========================================================================*/
+/* MMC_SPI driver related settings. */
+/*===========================================================================*/
+
+/**
+ * @brief Delays insertions.
+ * @details If enabled this options inserts delays into the MMC waiting
+ * routines releasing some extra CPU time for the threads with
+ * lower priority, this may slow down the driver a bit however.
+ * This option is recommended also if the SPI driver does not
+ * use a DMA channel and heavily loads the CPU.
+ */
+#if !defined(MMC_NICE_WAITING) || defined(__DOXYGEN__)
+#define MMC_NICE_WAITING TRUE
+#endif
+
+/*===========================================================================*/
+/* SDC driver related settings. */
+/*===========================================================================*/
+
+/**
+ * @brief Number of initialization attempts before rejecting the card.
+ * @note Attempts are performed at 10mS intervals.
+ */
+#if !defined(SDC_INIT_RETRY) || defined(__DOXYGEN__)
+#define SDC_INIT_RETRY 100
+#endif
+
+/**
+ * @brief Include support for MMC cards.
+ * @note MMC support is not yet implemented so this option must be kept
+ * at @p FALSE.
+ */
+#if !defined(SDC_MMC_SUPPORT) || defined(__DOXYGEN__)
+#define SDC_MMC_SUPPORT FALSE
+#endif
+
+/**
+ * @brief Delays insertions.
+ * @details If enabled this options inserts delays into the MMC waiting
+ * routines releasing some extra CPU time for the threads with
+ * lower priority, this may slow down the driver a bit however.
+ */
+#if !defined(SDC_NICE_WAITING) || defined(__DOXYGEN__)
+#define SDC_NICE_WAITING TRUE
+#endif
+
+/*===========================================================================*/
+/* SERIAL driver related settings. */
+/*===========================================================================*/
+
+/**
+ * @brief Default bit rate.
+ * @details Configuration parameter, this is the baud rate selected for the
+ * default configuration.
+ */
+#if !defined(SERIAL_DEFAULT_BITRATE) || defined(__DOXYGEN__)
+#define SERIAL_DEFAULT_BITRATE 38400
+#endif
+
+/**
+ * @brief Serial buffers size.
+ * @details Configuration parameter, you can change the depth of the queue
+ * buffers depending on the requirements of your application.
+ * @note The default is 16 bytes for both the transmission and receive
+ * buffers.
+ */
+#if !defined(SERIAL_BUFFERS_SIZE) || defined(__DOXYGEN__)
+#define SERIAL_BUFFERS_SIZE 16
+#endif
+
+/*===========================================================================*/
+/* SERIAL_USB driver related setting. */
+/*===========================================================================*/
+
+/**
+ * @brief Serial over USB buffers size.
+ * @details Configuration parameter, the buffer size must be a multiple of
+ * the USB data endpoint maximum packet size.
+ * @note The default is 256 bytes for both the transmission and receive
+ * buffers.
+ */
+#if !defined(SERIAL_USB_BUFFERS_SIZE) || defined(__DOXYGEN__)
+#define SERIAL_USB_BUFFERS_SIZE 256
+#endif
+
+/**
+ * @brief Serial over USB number of buffers.
+ * @note The default is 2 buffers.
+ */
+#if !defined(SERIAL_USB_BUFFERS_NUMBER) || defined(__DOXYGEN__)
+#define SERIAL_USB_BUFFERS_NUMBER 2
+#endif
+
+/*===========================================================================*/
+/* SPI driver related settings. */
+/*===========================================================================*/
+
+/**
+ * @brief Enables synchronous APIs.
+ * @note Disabling this option saves both code and data space.
+ */
+#if !defined(SPI_USE_WAIT) || defined(__DOXYGEN__)
+#define SPI_USE_WAIT TRUE
+#endif
+
+/**
+ * @brief Enables the @p spiAcquireBus() and @p spiReleaseBus() APIs.
+ * @note Disabling this option saves both code and data space.
+ */
+#if !defined(SPI_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
+#define SPI_USE_MUTUAL_EXCLUSION TRUE
+#endif
+
+/*===========================================================================*/
+/* UART driver related settings. */
+/*===========================================================================*/
+
+/**
+ * @brief Enables synchronous APIs.
+ * @note Disabling this option saves both code and data space.
+ */
+#if !defined(UART_USE_WAIT) || defined(__DOXYGEN__)
+#define UART_USE_WAIT FALSE
+#endif
+
+/**
+ * @brief Enables the @p uartAcquireBus() and @p uartReleaseBus() APIs.
+ * @note Disabling this option saves both code and data space.
+ */
+#if !defined(UART_USE_MUTUAL_EXCLUSION) || defined(__DOXYGEN__)
+#define UART_USE_MUTUAL_EXCLUSION FALSE
+#endif
+
+/*===========================================================================*/
+/* USB driver related settings. */
+/*===========================================================================*/
+
+/**
+ * @brief Enables synchronous APIs.
+ * @note Disabling this option saves both code and data space.
+ */
+#if !defined(USB_USE_WAIT) || defined(__DOXYGEN__)
+#define USB_USE_WAIT FALSE
+#endif
+
+#endif /* HALCONF_H */
+
+/** @} */
diff --git a/testhal/STM32/multi/PAL/cfg-stm32l476_discovery/mcuconf.h b/testhal/STM32/multi/PAL/cfg/stm32l476_discovery/mcuconf.h
index c632cd5f2..c632cd5f2 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32l476_discovery/mcuconf.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32l476_discovery/mcuconf.h
diff --git a/testhal/STM32/multi/PAL/cfg/stm32l476_discovery/portab.c b/testhal/STM32/multi/PAL/cfg/stm32l476_discovery/portab.c
new file mode 100644
index 000000000..6315515a0
--- /dev/null
+++ b/testhal/STM32/multi/PAL/cfg/stm32l476_discovery/portab.c
@@ -0,0 +1,51 @@
+/*
+ ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+*/
+
+/**
+ * @file portab.c
+ * @brief Application portability module code.
+ *
+ * @addtogroup application_portability
+ * @{
+ */
+
+#include "portab.h"
+
+/*===========================================================================*/
+/* Module local definitions. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Module exported variables. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Module local types. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Module local variables. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Module local functions. */
+/*===========================================================================*/
+
+/*===========================================================================*/
+/* Module exported functions. */
+/*===========================================================================*/
+
+/** @} */
diff --git a/testhal/STM32/multi/PAL/cfg-stm32l476_discovery/portab.h b/testhal/STM32/multi/PAL/cfg/stm32l476_discovery/portab.h
index 0ea74cc01..0ea74cc01 100644
--- a/testhal/STM32/multi/PAL/cfg-stm32l476_discovery/portab.h
+++ b/testhal/STM32/multi/PAL/cfg/stm32l476_discovery/portab.h
diff --git a/testhal/STM32/multi/PAL/debug/STM32-PAL (Select ELF file)(OpenOCD, Flash and Run).launch b/testhal/STM32/multi/PAL/debug/STM32-PAL (Select ELF file)(OpenOCD, Flash and Run).launch
index 1e7f3f6e9..a5feeb04d 100644
--- a/testhal/STM32/multi/PAL/debug/STM32-PAL (Select ELF file)(OpenOCD, Flash and Run).launch
+++ b/testhal/STM32/multi/PAL/debug/STM32-PAL (Select ELF file)(OpenOCD, Flash and Run).launch
@@ -36,7 +36,7 @@
<stringAttribute key="org.eclipse.cdt.launch.FORMAT" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&lt;contentList&gt;&lt;content id=&quot;xPSR-(format)&quot; val=&quot;4&quot;/&gt;&lt;/contentList&gt;"/>
<stringAttribute key="org.eclipse.cdt.launch.GLOBAL_VARIABLES" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;globalVariableList/&gt;&#13;&#10;"/>
<stringAttribute key="org.eclipse.cdt.launch.MEMORY_BLOCKS" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;memoryBlockExpressionList&gt;&#13;&#10;&lt;memoryBlockExpressionItem&gt;&#13;&#10;&lt;expression text=&quot;0x40021004&quot;/&gt;&#13;&#10;&lt;/memoryBlockExpressionItem&gt;&#13;&#10;&lt;/memoryBlockExpressionList&gt;&#13;&#10;"/>
-<stringAttribute key="org.eclipse.cdt.launch.PROGRAM_NAME" value="${selected_resource_loc}"/>
+<stringAttribute key="org.eclipse.cdt.launch.PROGRAM_NAME" value="${selected_resource_loc}/ch.elf"/>
<stringAttribute key="org.eclipse.cdt.launch.PROJECT_ATTR" value="STM32-PAL"/>
<booleanAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_AUTO_ATTR" value="false"/>
<stringAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_ID_ATTR" value=""/>
diff --git a/testhal/STM32/multi/PAL/debug/STM32-PAL (Select ELF file)(OpenOCD, Just Run).launch b/testhal/STM32/multi/PAL/debug/STM32-PAL (Select ELF file)(OpenOCD, Just Run).launch
index 4aa924aeb..66eadb429 100644
--- a/testhal/STM32/multi/PAL/debug/STM32-PAL (Select ELF file)(OpenOCD, Just Run).launch
+++ b/testhal/STM32/multi/PAL/debug/STM32-PAL (Select ELF file)(OpenOCD, Just Run).launch
@@ -36,7 +36,7 @@
<stringAttribute key="org.eclipse.cdt.launch.FORMAT" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&lt;contentList&gt;&lt;content id=&quot;xPSR-(format)&quot; val=&quot;4&quot;/&gt;&lt;/contentList&gt;"/>
<stringAttribute key="org.eclipse.cdt.launch.GLOBAL_VARIABLES" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;globalVariableList/&gt;&#13;&#10;"/>
<stringAttribute key="org.eclipse.cdt.launch.MEMORY_BLOCKS" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;&#13;&#10;&lt;memoryBlockExpressionList&gt;&#13;&#10;&lt;memoryBlockExpressionItem&gt;&#13;&#10;&lt;expression text=&quot;0x40021004&quot;/&gt;&#13;&#10;&lt;/memoryBlockExpressionItem&gt;&#13;&#10;&lt;/memoryBlockExpressionList&gt;&#13;&#10;"/>
-<stringAttribute key="org.eclipse.cdt.launch.PROGRAM_NAME" value="${selected_resource_loc}"/>
+<stringAttribute key="org.eclipse.cdt.launch.PROGRAM_NAME" value="${selected_resource_loc}/ch.elf"/>
<stringAttribute key="org.eclipse.cdt.launch.PROJECT_ATTR" value="STM32-PAL"/>
<booleanAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_AUTO_ATTR" value="false"/>
<stringAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_ID_ATTR" value=""/>
diff --git a/testhal/STM32/multi/PAL/Makefile-stm32f051_discovery b/testhal/STM32/multi/PAL/make/stm32f051_discovery
index 7899079c2..c86e143bd 100644
--- a/testhal/STM32/multi/PAL/Makefile-stm32f051_discovery
+++ b/testhal/STM32/multi/PAL/make/stm32f051_discovery
@@ -82,8 +82,8 @@ PROJECT = ch
# Imported source files and paths
CHIBIOS := ../../../..
-CONFDIR := ./cfg-stm32f051_discovery
-BUILDDIR := ./build-stm32f051_discovery
+CONFDIR := ./cfg/stm32f051_discovery
+BUILDDIR := ./build/stm32f051_discovery
DEPDIR := ./.dep-stm32f051_discovery
# Licensing files.
diff --git a/testhal/STM32/multi/PAL/Makefile-stm32f103_olimex b/testhal/STM32/multi/PAL/make/stm32f103_olimex
index 50d81d811..eaad9bd1c 100755..100644
--- a/testhal/STM32/multi/PAL/Makefile-stm32f103_olimex
+++ b/testhal/STM32/multi/PAL/make/stm32f103_olimex
@@ -82,8 +82,8 @@ PROJECT = ch
# Imported source files and paths
CHIBIOS := ../../../..
-CONFDIR := ./cfg-stm32f103_olimex
-BUILDDIR := ./build-stm32f103_olimex
+CONFDIR := ./cfg/stm32f103_olimex
+BUILDDIR := ./build/stm32f103_olimex
DEPDIR := ./.dep-stm32f103_olimex
# Licensing files.
diff --git a/testhal/STM32/multi/PAL/Makefile-stm32f303_discovery b/testhal/STM32/multi/PAL/make/stm32f303_discovery
index 7b466e511..22fcee6f5 100644
--- a/testhal/STM32/multi/PAL/Makefile-stm32f303_discovery
+++ b/testhal/STM32/multi/PAL/make/stm32f303_discovery
@@ -92,8 +92,8 @@ PROJECT = ch
# Imported source files and paths
CHIBIOS := ../../../..
-CONFDIR := ./cfg-stm32f303_discovery
-BUILDDIR := ./build-stm32f303_discovery
+CONFDIR := ./cfg/stm32f303_discovery
+BUILDDIR := ./build/stm32f303_discovery
DEPDIR := ./.dep-stm32f303_discovery
# Licensing files.
diff --git a/testhal/STM32/multi/PAL/Makefile-stm32f373_eval b/testhal/STM32/multi/PAL/make/stm32f373_eval
index 9dc12d850..a642b56ca 100755..100644
--- a/testhal/STM32/multi/PAL/Makefile-stm32f373_eval
+++ b/testhal/STM32/multi/PAL/make/stm32f373_eval
@@ -92,8 +92,8 @@ PROJECT = ch
# Imported source files and paths
CHIBIOS := ../../../..
-CONFDIR := ./cfg-stm32f373_eval
-BUILDDIR := ./build-stm32f373_eval
+CONFDIR := ./cfg/stm32f373_eval
+BUILDDIR := ./build/stm32f373_eval
DEPDIR := ./.dep-stm32f373_eval
# Licensing files.
diff --git a/testhal/STM32/multi/PAL/Makefile-stm32f407_discovery b/testhal/STM32/multi/PAL/make/stm32f407_discovery
index d2e340029..0e5c8c745 100644
--- a/testhal/STM32/multi/PAL/Makefile-stm32f407_discovery
+++ b/testhal/STM32/multi/PAL/make/stm32f407_discovery
@@ -92,8 +92,8 @@ PROJECT = ch
# Imported source files and paths
CHIBIOS := ../../../..
-CONFDIR := ./cfg-stm32f407_discovery
-BUILDDIR := ./build-stm32f407_discovery
+CONFDIR := ./cfg/stm32f407_discovery
+BUILDDIR := ./build/stm32f407_discovery
DEPDIR := ./.dep-stm32f407_discovery
# Licensing files.
diff --git a/testhal/STM32/multi/PAL/Makefile-stm32f429_discovery b/testhal/STM32/multi/PAL/make/stm32f429_discovery
index f596a5929..850334e93 100755..100644
--- a/testhal/STM32/multi/PAL/Makefile-stm32f429_discovery
+++ b/testhal/STM32/multi/PAL/make/stm32f429_discovery
@@ -92,8 +92,8 @@ PROJECT = ch
# Imported source files and paths
CHIBIOS := ../../../..
-CONFDIR := ./cfg-stm32f429_discovery
-BUILDDIR := ./build-stm32f429_discovery
+CONFDIR := ./cfg/stm32f429_discovery
+BUILDDIR := ./build/stm32f429_discovery
DEPDIR := ./.dep-stm32f429_discovery
# Licensing files.
diff --git a/testhal/STM32/multi/PAL/Makefile-stm32f746_discovery b/testhal/STM32/multi/PAL/make/stm32f746_discovery
index d98fb3662..726d7ec02 100755..100644
--- a/testhal/STM32/multi/PAL/Makefile-stm32f746_discovery
+++ b/testhal/STM32/multi/PAL/make/stm32f746_discovery
@@ -92,8 +92,8 @@ PROJECT = ch
# Imported source files and paths
CHIBIOS := ../../../..
-CONFDIR := ./cfg-stm32f746_discovery
-BUILDDIR := ./build-stm32f746_discovery
+CONFDIR := ./cfg/stm32f746_discovery
+BUILDDIR := ./build/stm32f746_discovery
DEPDIR := ./.dep-stm32f746_discovery
# Licensing files.
diff --git a/testhal/STM32/multi/PAL/Makefile-stm32l053_discovery b/testhal/STM32/multi/PAL/make/stm32l053_discovery
index 41f41fe3a..3b9522d9a 100644
--- a/testhal/STM32/multi/PAL/Makefile-stm32l053_discovery
+++ b/testhal/STM32/multi/PAL/make/stm32l053_discovery
@@ -82,8 +82,8 @@ PROJECT = ch
# Imported source files and paths
CHIBIOS := ../../../..
-CONFDIR := ./cfg-stm32l053_discovery
-BUILDDIR := ./build-stm32l053_discovery
+CONFDIR := ./cfg/stm32l053_discovery
+BUILDDIR := ./build/stm32l053_discovery
DEPDIR := ./.dep-stm32l053_discovery
# Licensing files.
diff --git a/testhal/STM32/multi/PAL/Makefile-stm32l151_discovery b/testhal/STM32/multi/PAL/make/stm32l151_discovery
index 8815afada..186043608 100755..100644
--- a/testhal/STM32/multi/PAL/Makefile-stm32l151_discovery
+++ b/testhal/STM32/multi/PAL/make/stm32l151_discovery
@@ -82,8 +82,8 @@ PROJECT = ch
# Imported source files and paths
CHIBIOS := ../../../..
-CONFDIR := ./cfg-stm32l151_discovery
-BUILDDIR := ./build-stm32l151_discovery
+CONFDIR := ./cfg/stm32l151_discovery
+BUILDDIR := ./build/stm32l151_discovery
DEPDIR := ./.dep-stm32l151_discovery
# Licensing files.
diff --git a/testhal/STM32/multi/PAL/Makefile-stm32l476_discovery b/testhal/STM32/multi/PAL/make/stm32l476_discovery
index ff39bce07..99722a0a0 100644
--- a/testhal/STM32/multi/PAL/Makefile-stm32l476_discovery
+++ b/testhal/STM32/multi/PAL/make/stm32l476_discovery
@@ -92,8 +92,8 @@ PROJECT = ch
# Imported source files and paths
CHIBIOS := ../../../..
-CONFDIR := ./cfg-stm32l476_discovery
-BUILDDIR := ./build-stm32l476_discovery
+CONFDIR := ./cfg/stm32l476_discovery
+BUILDDIR := ./build/stm32l476_discovery
DEPDIR := ./.dep-stm32l476_discovery
# Licensing files.