lilyhack 3 Posted August 3, 2016 Share Posted August 3, 2016 Can we use Tivaware with Energia? On a Mac? All the downloadable TivaWare libraries I see here are .exe files. Did anyone try it? Quote Link to post Share on other sites
Rickta59 589 Posted August 4, 2016 Share Posted August 4, 2016 unzip tivawaredownload.exe Quote Link to post Share on other sites
energia 485 Posted August 4, 2016 Share Posted August 4, 2016 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 Quote Link to post Share on other sites
lilyhack 3 Posted August 4, 2016 Author Share Posted August 4, 2016 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? Quote Link to post Share on other sites
spirilis 1,265 Posted August 4, 2016 Share Posted August 4, 2016 @@Robert I am planning to use ADC functionalities. Is that part of driverlib? Yes it should be. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.