Replace libs by gitmodule

This commit is contained in:
JackCarterSmith 2025-05-05 20:58:03 +02:00
parent 200d1868f2
commit 53114bfd16
Signed by: JackCarterSmith
GPG Key ID: 832E52F4E23F8F24
7 changed files with 24 additions and 4 deletions

9
.gitmodules vendored Normal file
View File

@ -0,0 +1,9 @@
[submodule "Drivers/STM32F1xx_HAL_Driver"]
path = Drivers/STM32F1xx_HAL_Driver
url = https://github.com/STMicroelectronics/stm32f1xx-hal-driver.git
[submodule "Drivers/CMSIS"]
path = Drivers/CMSIS
url = https://github.com/STMicroelectronics/cmsis-core.git
[submodule "Drivers/CMSIS_Device_ST_STM32F1xx"]
path = Drivers/CMSIS_Device_ST_STM32F1xx
url = https://github.com/STMicroelectronics/cmsis-device-f1.git

1
Drivers/CMSIS Submodule

@ -0,0 +1 @@
Subproject commit f37cfcee997e714b0fad374a328c41df64f99acb

@ -0,0 +1 @@
Subproject commit c8e9a4a4f16b6d2cb2a2083cbe5161025280fb22

@ -0,0 +1 @@
Subproject commit 38d14024a9d3f6802506c3ec7a4308563760e54e

View File

@ -131,7 +131,7 @@ C_INCLUDES = \
-ICore/Inc \
-IDrivers/STM32F1xx_HAL_Driver/Inc \
-IDrivers/STM32F1xx_HAL_Driver/Inc/Legacy \
-IDrivers/CMSIS/Device/ST/STM32F1xx/Include \
-IDrivers/CMSIS_Device_ST_STM32F1xx/Include \
-IDrivers/CMSIS/Include

View File

@ -3,13 +3,21 @@
This is my personnal rewrite of the [original](https://github.com/clockworkpi/PicoCalc/tree/master/Code/picocalc_keyboard)
PicoCalc STM32F103R8T6 firmware.
The main differences with the original are followings:
## Features differences
The main differences with the original firmware are the followings:
- drastic reduction in the STM32's electricity consumption when running (~3.5 mA),
- removed stm32duino dependencies (use STM32HAL instead, maybe I'll switch to libopencm3 someday...),
- clean up (in progress) to reduce binary size (~25 KB) and allow more features to be implemented,
- removed stm32duino dependencies (use STM32HAL instead, maybe I'll switch to libopencm3 someday...),
- added configuration saving solution (using internal flash, including backlight option),
- rewriten or added some debug UART interface message,
- lighten AXP2101 PMIC driver.
This source code can be compiled using ARM gcc toolchain (using v13) and make program.
## Compile
This source code can be compiled using ARM gcc toolchain (using v13) in path and using make program.
## Credits
- STM32-HAL: [link](https://github.com/STMicroelectronics/stm32f1xx-hal-driver)
- STM32-CMSIS: [link](https://github.com/STMicroelectronics/cmsis-device-f1)
- X-PowersLib: [link](https://github.com/lewisxhe/XPowersLib)
- Emulated EEPROM: [link](https://github.com/ScorpionX5/STM32F1XX-EEPROM-Emulation-Library/tree/master/V2.0)