Jump to content
altineller

Status of Wire.h for TM4C123 in Energia

Recommended Posts

Hello,

What is the status of Wire.h when using energia with the tiva-c board? Since there is the BoardManager in E18, the file layout has changed. Which leads to some confusion.

eagle@daredevil:~$ find . -type f -name "Wire.h"
./.energia15/packages/energia/hardware/msp432/3.8.0/cores/msp432/ti/runtime/wiring/Wire.h
./.energia15/packages/energia/hardware/msp430/1.0.2/libraries/Wire/Wire.h
./.energia15/packages/energia/hardware/tivac/1.0.2/libraries/Wire/Wire.h
./.energia15/packages/energia/hardware/msp432r/5.6.0/cores/msp432r/ti/runtime/wiring/Wire.h
./bin/energia-1.6.10E18/hardware/energia/msp430/libraries/Wire/Wire.h
./bin/energia-1.6.10E18/hardware/energia/msp430/cores/msp430/Wire.h

So I think when using energia with tivac, it will use the .energia15/packages/energia/hardware/tivac/1.0.2/libraries/Wire/Wire.h file that is in the hidden .energia directory right?

Then I went ahead and edited the Wire.cpp file in the tivac/1.0.2 dir.

 

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <inttypes.h>
#include "wiring_private.h"
#include "inc/hw_memmap.h"
#include "inc/hw_types.h"
#include "inc/hw_ints.h"
#include "inc/hw_i2c.h"
#include "driverlib/gpio.h"
#include "driverlib/debug.h"
#include "driverlib/interrupt.h"
#include "driverlib/rom.h"
#include "driverlib/rom_map.h"
#include "driverlib/pin_map.h"
#include "driverlib/sysctl.h"
#include "driverlib/i2c.h"
#include "Wire.h"

Here is a list of include files from Wire.cpp.

So here is my question: is this Wire.cpp implementation is for TM4C? is it using or based on the TivaWare Peripheal library?

I intend to make some modifications for it, for example using 2 i2c ports at the same time. So I need to start at the correct place.

Any ideas / help greatly reccomended.

Best regards,

CA

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...