1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/driver_itg320x
Leandro Lanzieri 9abf3247c8
tests/driver_{g,h,i,j}*: add Kconfig configuration files
This also adds these applications to the CI tests. The following drivers
have been modelled:

gp2y10xx
grove_ledbar
hd44780
hdc1000
hih6130
hmc5883l
hts221
ili9341
ina2xx
ina3221
io1_xplained
isl29020
isl29125
itg320x
jc42
my9221
2020-11-27 09:20:08 +01:00
..
app.config.test tests/driver_{g,h,i,j}*: add Kconfig configuration files 2020-11-27 09:20:08 +01:00
main.c tests: Cleanup access to internal variables 2020-08-24 09:08:01 +02:00
Makefile tests: add driver for ITG320X 3-axis gyroscope 2020-01-11 08:02:34 +01:00
README.md tests: add driver for ITG320X 3-axis gyroscope 2020-01-11 08:02:34 +01:00

About

This is a manual test application for the InvenSense ITG320X 3-axis gyroscope driver.

Usage

The test application demonstrates the use of the ITG320X. It uses the default configuration parameters:

  • Low pass filter bandwidth (LPF_BW) of 5 Hz (ITG320X_LPF_BW_5)
  • Internal sample rate (ISR) of 1 kHz which results from LPF_BW of 5 Hz
  • Internal sample rate divider (ISR_DIV) of 99 (ITG320X_PARAM_ISR_DIV)
  • Output data rate (ODR) of 10 Hz resulting from ODR = ISR / (ISR_DIV + 1)

The application may use two different approaches to retrieve new data, either

  • periodically fetching the data at a rate lower than the sensor's output data rate (ODR), or
  • fetching the data when the data-ready interrupt is triggered.

To use the latter approach, module itg320x_int has to be enabled and the GPIO to which the sensor's INT output pin is connected has to be defined by #ITG320X_PARAM_INT_PIN, for example:

USEMODULE=itg320x_int CFLAGS="-DITG320X_PARAM_INT_PIN=\(GPIO_PIN\(0,3\)\)" \
make flash -C tests/driver_itg320x BOARD=...