Skip to content
Snippets Groups Projects
Commit e8d6cf5a authored by Cristian Maglie's avatar Cristian Maglie
Browse files

Merge branch 'wire-slave-address-exact-match' of https://github.com/sandeepmistry/ArduinoCore-samd

parents 155f2593 2a37de98
No related branches found
No related tags found
No related merge requests found
......@@ -409,7 +409,7 @@ void SERCOM::initSlaveWIRE( uint8_t ucAddress )
sercom->I2CS.CTRLA.bit.MODE = I2C_SLAVE_OPERATION ;
sercom->I2CS.ADDR.reg = SERCOM_I2CS_ADDR_ADDR( ucAddress & 0x7Ful ) | // 0x7F, select only 7 bits
SERCOM_I2CS_ADDR_ADDRMASK( 0x3FFul ) ; // 0x3FF all bits set
SERCOM_I2CS_ADDR_ADDRMASK( 0x00ul ) ; // 0x00, only match exact address
// Set the interrupt register
sercom->I2CS.INTENSET.reg = SERCOM_I2CS_INTENSET_PREC | // Stop
......
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