Does anyone have any suggestions on how to setup I2C on the 2650 Launchpad for contiki, the SDA and SCL pins are constant high.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Does anyone have any suggestions on how to setup I2C on the 2650 Launchpad for contiki, the SDA and SCL pins are constant high.
Hi Matt,
Are you using Contiki or Contiki-NG?
Either way, I can see to possible solutions:
Regarding solution #2, after quickly skimming over the existing I2C driver implementation, I don't see why it shouldn't work to simply copy/paste and modify the existing board file for the launchpad platform.
Do note however this is something you'd have to try and test for yourself. I think you'd get much more direct help by asking the Contiki community on this.
What I can identify (without trying myself) from what needs to be done to get I2C up and running on the launchpad is the following:
Again, you are sort of on your own on this. If you do get it working by using solution #2, consider making a pull-request to the Contiki repository.
When using UART, have you made sure to register an input function to the UART driver?
e.g.
// Enable UART input by registering an input callback function // serial_line_input_byte() is a pre-defined callback function from "dev/serial-line.h" cc26xx_uart_set_input(serial_line_input_byte); // Disable UART input by unregistering the input callback function cc26xx_uart_set_input(NULL);