update Makefiles to use included submodules for STM32 platform files;

pull/2/head
Bryan Biedenkapp 4 years ago
parent f1c69a8eb4
commit b2f643d1da

6
.gitmodules vendored

@ -0,0 +1,6 @@
[submodule "STM32F10X_Platform"]
path = STM32F10X_Platform
url = https://github.com/DVMProject/STM32F10X_Platform.git
[submodule "STM32F4XX_Platform"]
path = STM32F4XX_Platform
url = https://github.com/DVMProject/STM32F4XX_Platform.git

@ -1,6 +1,6 @@
# STM32 library paths # STM32 library paths
F1_LIB_PATH=/opt/tools/STM32F10X_Lib F1_LIB_PATH=./STM32F10X_Platform
F4_LIB_PATH=/opt/tools/STM32F4XX_Lib F4_LIB_PATH=./STM32F4XX_Platform
# MCU external clock frequency (Hz) # MCU external clock frequency (Hz)
CLK_PI_F4=12000000 CLK_PI_F4=12000000

@ -11,13 +11,7 @@ Please see the various Makefile's included in the project for more information.
* Makefile.STM32FX - This makefile is used for targeting a generic STM32F103 with an ADF7021 RF SoC device. * Makefile.STM32FX - This makefile is used for targeting a generic STM32F103 with an ADF7021 RF SoC device.
* For STM32F103 using Ubuntu OS install the standard ARM embedded toolchain (typically arm-gcc-none-eabi). * For STM32F103 using Ubuntu OS install the standard ARM embedded toolchain (typically arm-gcc-none-eabi).
1. Create a directory under "/opt" called "tools" and change to the directory: - Make sure to clone this repository with the ```--recursive``` option, otherwise the STM32 platform files will be missing!
```
mkdir -p /opt/tools
cd /opt/tools
```
2. Checkout ```https://github.com/juribeparada/STM32F10X_Lib``` to /opt/tools:
```git clone https://github.com/juribeparada/STM32F10X_Lib```
Use the ```make``` command to build the firmware, choosing the appropriate makefile with the -F switch. Use the ```make``` command to build the firmware, choosing the appropriate makefile with the -F switch.

@ -0,0 +1 @@
Subproject commit 527fee72ae2291486304380cb812c48f36122c32

@ -0,0 +1 @@
Subproject commit b8b3d5380fba8beaa9afe79917ac0dda2a8e7a86
Loading…
Cancel
Save

Powered by TurnKey Linux.