1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #9442 from gebart/pr/fxos8700-frdm

boards/frdm: Add bus configuration for onboard FXOS8700CQ sensor
This commit is contained in:
Dylan Laduranty 2018-06-27 22:14:02 +02:00 committed by GitHub
commit ea7044f3d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 0 deletions

View File

@ -54,6 +54,14 @@ extern "C"
#define LED2_TOGGLE (GPIOD->PTOR = LED2_MASK)
/** @} */
/**
* @name FXOS8700CQ 3-axis accelerometer and magnetometer bus configuration
* @{
*/
#define FXOS8700_PARAM_I2C I2C_DEV(0)
#define FXOS8700_PARAM_ADDR 0x1C
/** @} */
/**
* @brief Initialize board specific hardware, including clock, LEDs and std-IO
*/

View File

@ -55,6 +55,14 @@ extern "C"
#define LED2_TOGGLE (GPIOB->PTOR = LED2_MASK)
/** @} */
/**
* @name FXOS8700CQ 3-axis accelerometer and magnetometer bus configuration
* @{
*/
#define FXOS8700_PARAM_I2C I2C_DEV(0)
#define FXOS8700_PARAM_ADDR 0x1E
/** @} */
/**
* @brief Initialize board specific hardware, including clock, LEDs and std-IO
*/

View File

@ -86,6 +86,14 @@ extern "C"
#define FRDM_NOR_SPI_CS SPI_HWCS(0) /**< Flash CS pin */
/** @} */
/**
* @name FXOS8700CQ 3-axis accelerometer and magnetometer bus configuration
* @{
*/
#define FXOS8700_PARAM_I2C I2C_DEV(1)
#define FXOS8700_PARAM_ADDR 0x1F
/** @} */
/**
* @brief Initialize board specific hardware, including clock, LEDs and standard I/O
*/