Skip to content
Snippets Groups Projects
Unverified Commit 126f232c authored by Joakim Nohlgård's avatar Joakim Nohlgård Committed by GitHub
Browse files

Merge pull request #10394 from aabadie/pr/boards/frdm-kw41z-update-i2c

boards/frdm-kw41z: update i2c configuration
parents c5ebf60b fb5aed46
No related branches found
No related tags found
No related merge requests found
...@@ -88,7 +88,7 @@ extern "C" ...@@ -88,7 +88,7 @@ extern "C"
* @name FXOS8700CQ 3-axis accelerometer and magnetometer bus configuration * @name FXOS8700CQ 3-axis accelerometer and magnetometer bus configuration
* @{ * @{
*/ */
#define FXOS8700_PARAM_I2C I2C_DEV(1) #define FXOS8700_PARAM_I2C I2C_DEV(0)
#define FXOS8700_PARAM_ADDR 0x1F #define FXOS8700_PARAM_ADDR 0x1F
/** @} */ /** @} */
......
...@@ -245,16 +245,6 @@ static const spi_conf_t spi_config[] = { ...@@ -245,16 +245,6 @@ static const spi_conf_t spi_config[] = {
* @{ * @{
*/ */
static const i2c_conf_t i2c_config[] = { static const i2c_conf_t i2c_config[] = {
{
.i2c = I2C0,
.scl_pin = GPIO_PIN(PORT_B, 0),
.sda_pin = GPIO_PIN(PORT_B, 1),
.freq = CLOCK_BUSCLOCK,
.speed = I2C_SPEED_FAST,
.irqn = I2C0_IRQn,
.scl_pcr = (PORT_PCR_MUX(3)),
.sda_pcr = (PORT_PCR_MUX(3)),
},
{ {
.i2c = I2C1, .i2c = I2C1,
.scl_pin = GPIO_PIN(PORT_C, 2), .scl_pin = GPIO_PIN(PORT_C, 2),
...@@ -267,8 +257,7 @@ static const i2c_conf_t i2c_config[] = { ...@@ -267,8 +257,7 @@ static const i2c_conf_t i2c_config[] = {
}, },
}; };
#define I2C_NUMOF (sizeof(i2c_config) / sizeof(i2c_config[0])) #define I2C_NUMOF (sizeof(i2c_config) / sizeof(i2c_config[0]))
#define I2C_0_ISR (isr_i2c0) #define I2C_0_ISR (isr_i2c1)
#define I2C_1_ISR (isr_i2c1)
/** @} */ /** @} */
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment