Skip to content

Conversation

@Lavr18
Copy link

@Lavr18 Lavr18 commented Jun 19, 2019

I and other people (e.g here here here) didn't find any i2c driver for the launchpad. Thus, I adopted the sensortag board-i2c library to the launchpad.

What I have done is:

  1. Copied the board-i2c.c/h files from the sensortag to the launchpad directory.
  2. Removed the interface parameter from board_i2c_select() function and removed several lines regarding the pins setup, which are not relevant to the launchpad, because the launchpad only has a single i2c interface.
  3. Registered the board-i2c.c file in the Makefile.launchpad
  4. Modified the board.c:
    a) Included board-i2c.h
    b) Added a call to board_i2c_wakeup() in board_init()
    c) Added a shutdown handler (just as board.c in srf06-cc26x/sensortag) which calls
    board_i2c_shutdown()

The driver was tested on the CC1310.

I was inspired by this thread, where most of the steps I've described are provided.

The last commit about the small syntax fix was to correct my own mistake, so don't pay too much attention to it.

@Lavr18
Copy link
Author

Lavr18 commented Jun 20, 2019

This is weird that the PR did not pass a Travis check. I was able to build the code on my machine without errors and warnings.

@alexrayne
Copy link

there is nothig pass travis since looooong time ago...

alexrayne added a commit to alexrayne/contiki that referenced this pull request Dec 25, 2019
…he launchpad

--HG--
branch : alexrayne_works
alexrayne pushed a commit to alexrayne/contiki that referenced this pull request Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants