Jump to content
43oh

TivaWare library with Energia on Mac


Recommended Posts

If you are looking at using TivaWare driverlib API call then no need to install TivaWare since driverlib is already installed. You can simply include the headers for the functions you want to use and call the API's. Note that the current release has an outdated driverlib installation which will be updated in the near future. Regardless, you can use this driverlib to get started without issues.

 

e.g.:

#include <stdint.h>
#include <stdbool.h>
#include "driverlib/gpio.h"
#include "inc/hw_gpio.h"

void setup()
{
  // put your setup code here, to run once:
  GPIOPinTypeGPIOOutput(GPIO_PORTF_BASE, GPIO_PIN_1);
}

void loop()
{
  // put your main code here, to run repeatedly:
  GPIOPinWrite(GPIO_PORTF_BASE, GPIO_PIN_1, GPIO_PIN_1);
  delay(100);
  GPIOPinWrite(GPIO_PORTF_BASE, GPIO_PIN_1, 0);
  delay(100);
}

Robert

Link to post
Share on other sites

If you are looking at using TivaWare driverlib API call then no need to install TivaWare since driverlib is already installed. You can simply include the headers for the functions you want to use and call the API's. Note that the current release has an outdated driverlib installation which will be updated in the near future. Regardless, you can use this driverlib to get started without issues.

 

e.g.:

#include <stdint.h>
#include <stdbool.h>
#include "driverlib/gpio.h"
#include "inc/hw_gpio.h"

void setup()
{
  // put your setup code here, to run once:
  GPIOPinTypeGPIOOutput(GPIO_PORTF_BASE, GPIO_PIN_1);
}

void loop()
{
  // put your main code here, to run repeatedly:
  GPIOPinWrite(GPIO_PORTF_BASE, GPIO_PIN_1, GPIO_PIN_1);
  delay(100);
  GPIOPinWrite(GPIO_PORTF_BASE, GPIO_PIN_1, 0);
  delay(100);
}

Robert

 

@@Robert

I am planning to use ADC functionalities. Is that part of driverlib?

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...