Other Parts Discussed in Thread: ENERGIA, EK-TM4C1294XL
Hello,
I'm trying to use Energia and TivaWare library to program a TM4C1294NCPDT. My TivaWare version is: TivaWare_C_Series-2.1.4.178.
I was trying to use the IntEnable() function to enable interrupts on the timeout of TIMER0A.
#include <adc.h>
#include <aes.h>
#include <can.h>
#include <comp.h>
#include <cpu.h>
#include <crc.h>
#include <debug.h>
#include <des.h>
#include <eeprom.h>
#include <emac.h>
#include <epi.h>
#include <flash.h>
#include <fpu.h>
#include <gpio.h>
#include <hibernate.h>
#include <i2c.h>
#include <interrupt.h>
#include <lcd.h>
#include <mpu.h>
#include <onewire.h>
#include <pin_map.h>
#include <pwm.h>
#include <qei.h>
#include <rom.h>
#include <rom_map.h>
#include <rtos_bindings.h>
#include <shamd5.h>
#include <ssi.h>
#include <sw_crc.h>
#include <sysctl.h>
#include <sysexc.h>
#include <systick.h>
#include <timer.h>
#include <uart.h>
#include <udma.h>
#include <usb.h>
#include <watchdog.h>
#define PART_TM4C1294NCPDT
int speedFactor = 0;
void setup() {
TimerConfigure(TIMER0_BASE,(TIMER_CFG_SPLIT_PAIR | TIMER_CFG_A_PERIODIC));
TimerPrescaleSet(TIMER0_BASE, TIMER_A, 1);//Prescaler of 1/2.
TimerLoadSet(TIMER0_BASE, TIMER_A, (30720>>speedFactor));
//Timer Counts down from load value
/*Enable Interrupts, and register the interrupt handler*/
//Enable processor interrupts
IntMasterEnable();
//Interrupt on the timeout of Timer0A
TimerIntEnable(TIMER0_BASE, TIMER_TIMA_TIMEOUT);
//Enable the Timer0A interrupt on the processor
IntEnable(INT_TIMER0A);
/*Register a Timer Interrupt Handler: the function to be executed when the timer
times out.*/
TimerIntRegister(TIMER0_BASE,TIMER_A, Timer0AIntHandler);
}
When I run this I get the error: 'INT_TIMER0A' was not declared in this scope.
I read through the TivaWare guide and it says these INT_* values are defined based on the part being used, similarly to the GPIO pins. After looking through the header files, I couldn't find definitions for INT_* values in the interrupt.h file or anywhere else. Am I missing an interrupt map header file?