Skip to content

Commit

Permalink
moved checked in drivers to submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-vg committed May 29, 2024
1 parent 946e424 commit c5eecfd
Show file tree
Hide file tree
Showing 14 changed files with 32 additions and 18,158 deletions.
10 changes: 8 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
[submodule "lib/stm32-lsm6dso"]
path = lib/stm32-lsm6dso
[submodule "lib/bmi160-api"]
path = lib/bmi160-api
url = https://github.com/boschsensortec/BMI160_SensorAPI.git
[submodule "lib/lsm6dso-api"]
path = lib/lsm6dso-api
url = https://github.com/STMicroelectronics/stm32-lsm6dso.git
[submodule "lib/lsm6ds3tr-api"]
path = lib/lsm6ds3tr-api
url = https://github.com/STMicroelectronics/lsm6ds3tr-c-pid.git
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ Using it is really simple:

See early prototype [in action](https://www.youtube.com/watch?v=DdxAmmsYfMA).

## How?

* Clone this repository with `git clone --recurse-submodules` to include the driver implementations.
* Build the project using `ufbt`

## Hardware

The custom module is using Bosch BMI160 accelerometer/gyroscope chip connected via I2C.
Expand Down
15 changes: 14 additions & 1 deletion application.fam
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,20 @@ App(
sources=["*.c", "*.cc"],
fap_private_libs=[
Lib(
name="stm32-lsm6dso",
name="bmi160-api",
cflags=["-Wno-error"],
sources=[
"bmi160.c",
"bmi160.h",
"bmi160_defs.h",
],
),
Lib(
name="lsm6ds3tr-api",
cflags=["-Wno-error"],
),
Lib(
name="lsm6dso-api",
cflags=["-Wno-error"],
),
],
Expand Down
1 change: 1 addition & 0 deletions lib/bmi160-api
Submodule bmi160-api added at a15536
1 change: 1 addition & 0 deletions lib/lsm6ds3tr-api
Submodule lsm6ds3tr-api added at 6344d2
Loading

0 comments on commit c5eecfd

Please sign in to comment.