Skip to content

Wire Slave #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 18, 2015
Merged

Wire Slave #46

merged 3 commits into from
Nov 18, 2015

Conversation

sandeepmistry
Copy link
Contributor

Some changes to get Wire slave working, including:

  • calling pinPeripheral in begin to setup SDA and SCL pins like the master begin
  • enabling the stop condition interrupt (SERCOM_I2CS_INTENSET_PREC)
  • ACK'ing or NACK'ing in the ISR and sending the appropriate command bits to clear the flags

Note: there is still an issue with repeated starts, the timeout is not working, so if a repeated start is received without a subsequent stop or another repeated start, the receive callback is not called currently.

@cmaglie
Copy link
Member

cmaglie commented Oct 23, 2015

@ArduinoBot build this please

@ArduinoBot
Copy link

✅ Build completed.

⬇️ Build URL: http://downloads.arduino.cc/PR/samd/package_samd-b40_index.json

ℹ️ To test this build:

  1. Open the Preferences of the Arduino IDE.
  2. Add the Build URL above in the Additional Boards Manager URLs field, and click OK.
  3. Open the Boards Manager (menu Tools->Board->Board Manager...)
  4. Install Arduino SAMD core - Pull Request Wire Slave #46
  5. Select one of the boards under SAMD Pull Request Wire Slave #46 in Tools->Board menu
  6. Compile/Upload as usual

@cmaglie cmaglie added this to the Release 1.6.3 milestone Nov 4, 2015
@cmaglie cmaglie merged commit 9a7f2be into arduino:master Nov 18, 2015
@sandeepmistry sandeepmistry deleted the Wire-slave branch April 19, 2016 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants