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:
commit
ea7044f3d2
@ -54,6 +54,14 @@ extern "C"
|
|||||||
#define LED2_TOGGLE (GPIOD->PTOR = LED2_MASK)
|
#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
|
* @brief Initialize board specific hardware, including clock, LEDs and std-IO
|
||||||
*/
|
*/
|
||||||
|
@ -55,6 +55,14 @@ extern "C"
|
|||||||
#define LED2_TOGGLE (GPIOB->PTOR = LED2_MASK)
|
#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
|
* @brief Initialize board specific hardware, including clock, LEDs and std-IO
|
||||||
*/
|
*/
|
||||||
|
@ -86,6 +86,14 @@ extern "C"
|
|||||||
#define FRDM_NOR_SPI_CS SPI_HWCS(0) /**< Flash CS pin */
|
#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
|
* @brief Initialize board specific hardware, including clock, LEDs and standard I/O
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user