Commit ff441d3d authored by Sandeep Mistry's avatar Sandeep Mistry

Use TWI1 to avoid conflict with SPI0

parent 9375fec3
......@@ -271,11 +271,11 @@ void TwoWire::onService(void)
{
}
TwoWire Wire(NRF_TWI0, SPI0_TWI0_IRQn, PIN_WIRE_SDA, PIN_WIRE_SCL);
TwoWire Wire(NRF_TWI1, SPI1_TWI1_IRQn, PIN_WIRE_SDA, PIN_WIRE_SCL);
extern "C"
{
void SPI0_TWI0_IRQHandler(void)
void SPI1_TWI1_IRQHandler(void)
{
Wire.onService();
}
......
......@@ -345,11 +345,11 @@ void TwoWire::onService(void)
}
}
TwoWire Wire(NRF_TWIM0, NRF_TWIS0, SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQn, PIN_WIRE_SDA, PIN_WIRE_SCL);
TwoWire Wire(NRF_TWIM1, NRF_TWIS1, SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQn, PIN_WIRE_SDA, PIN_WIRE_SCL);
extern "C"
{
void SPIM0_SPIS0_TWIM0_TWIS0_SPI0_TWI0_IRQHandler(void)
void SPIM1_SPIS1_TWIM1_TWIS1_SPI1_TWI1_IRQHandler(void)
{
Wire.onService();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment