Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

driver/mpu9x50: make mpu9150 more generic #12103

Merged
merged 2 commits into from
Oct 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions boards/msbiot/doc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,18 +160,18 @@ Due to licensing issues, the current MPU-9150 driver implementation for RIOT
is not based on Invensense's 'Motion Driver' library and offers only a limited
set of features. Nonetheless, the RIOT driver allows to configure and read
values from all three sensors of the device. For an overview on the supported
features, you can check the driver's documentation in @ref drivers_mpu9150.
features, you can check the driver's documentation in @ref drivers_mpu9x50.

A sample RIOT application for the MPU-9150 that utilizes the driver can be
found [here](https://github.com/RIOT-OS/RIOT/tree/master/tests/driver_mpu9150).
found [here](https://github.com/RIOT-OS/RIOT/tree/master/tests/driver_mpu9x50).

| Product | MPU-9150 |
|:--------------------- |:------------------------------------------------------------------------------------------------- |
| Type | Nine-Axis MotionTracking Device (Gyro, Accel and Compass) |
| Vendor | Invensense |
| Product Specification | [Product Specification](http://www.invensense.com/mems/gyro/documents/PS-MPU-9150A-00v4_3.pdf) |
| Register Map | [Register Map](http://www.invensense.com/mems/gyro/documents/RM-MPU-9150A-00v4_2.pdf) |
| Driver | @ref drivers_mpu9150 |
| Driver | @ref drivers_mpu9x50 |
| I²C Device | I2C1 (Mapped to I2C_0 in RIOT) |
| SCL | PB6 |
| SDA | PB7 |
Expand Down
3 changes: 2 additions & 1 deletion drivers/Makefile.dep
Original file line number Diff line number Diff line change
Expand Up @@ -322,9 +322,10 @@ ifneq (,$(filter mpl3115a2,$(USEMODULE)))
FEATURES_REQUIRED += periph_i2c
endif

ifneq (,$(filter mpu9150,$(USEMODULE)))
ifneq (,$(filter mpu9%50,$(USEMODULE)))
FEATURES_REQUIRED += periph_i2c
USEMODULE += xtimer
USEMODULE += mpu9x50
endif

ifneq (,$(filter mq3,$(USEMODULE)))
Expand Down
4 changes: 2 additions & 2 deletions drivers/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ ifneq (,$(filter mpl3115a2,$(USEMODULE)))
USEMODULE_INCLUDES += $(RIOTBASE)/drivers/mpl3115a2/include
endif

ifneq (,$(filter mpu9150,$(USEMODULE)))
USEMODULE_INCLUDES += $(RIOTBASE)/drivers/mpu9150/include
ifneq (,$(filter mpu9x50,$(USEMODULE)))
USEMODULE_INCLUDES += $(RIOTBASE)/drivers/mpu9x50/include
endif

ifneq (,$(filter mrf24j40,$(USEMODULE)))
Expand Down
Loading