Hello people from TI.
I´m new to TIVA C. I´m using the TM4C123G_LaunchPad to learn how to program and use the peripherals.
I´m trying to build the exemple where the UART uses interrupts.
//*****************************************************************************
//
// The processor vector table.
//
// This contains a list of the handlers for the various interrupt sources in
// the system. The layout of this list is defined by the hardware; assertion
// of an interrupt causes the processor to start executing directly at the
// address given in the corresponding location in this list.
//
//*****************************************************************************
//
// Set the size of the vector table to the largest number of interrupts of
// any device
//
#undef NUM_INTERRUPTS
#define NUM_INTERRUPTS 155
#if defined(ewarm)
#pragma data_alignment=1024
static __no_init void (*g_pfnRAMVectors[NUM_INTERRUPTS])(void) @ "VTABLE";
#elif defined(sourcerygxx)
static __attribute__((section(".cs3.region-head.ram")))
void (*g_pfnRAMVectors[NUM_INTERRUPTS])(void) __attribute__ ((aligned(1024)));
#elif defined(ccs) || defined(DOXYGEN)
#pragma DATA_ALIGN(g_pfnRAMVectors, 1024)
#pragma DATA_SECTION(g_pfnRAMVectors, ".vtable")
void (*g_pfnRAMVectors[NUM_INTERRUPTS])(void);
#else
static __attribute__((section("vtable")))
void (*g_pfnRAMVectors[NUM_INTERRUPTS])(void) __attribute__((aligned(1024)));
#endif
____________________________________________________________________
interrupt.c
Error[Pe079]: expected a type specifier C:\Users\abc\Desktop\test\driverlib\interrupt.c 185
Error[Pe260]: explicit type is missing ("int" assumed) C:\Users\abc\Desktop\test\driverlib\interrupt.c 185
Error[Pe141]: unnamed prototyped parameters not allowed when body is present C:\Users\abc\Desktop\test\driverlib\interrupt.c 185
Error[Pe130]: expected a "{" C:\Users\abc\Desktop\test\driverlib\interrupt.c 186
Warning[Pe012]: parsing restarts here after previous syntax error C:\Users\abc\Desktop\test\driverlib\interrupt.c 209
Error[Pe020]: identifier "g_pfnRAMVectors" is undefined C:\Users\abc\Desktop\test\driverlib\interrupt.c 289
Error[Pe020]: identifier "g_pfnRAMVectors" is undefined C:\Users\abc\Desktop\test\driverlib\interrupt.c 311
Error[Pe020]: identifier "g_pfnRAMVectors" is undefined C:\Users\abc\Desktop\test\driverlib\interrupt.c 341
Warning[Pe177]: function "__attribute__" was declared but never referenced C:\Users\abc\Desktop\test\driverlib\interrupt.c 185
Error while running C/C++ Compiler
Total number of errors: 7
Total number of warnings: 2
Can anybody help me?
Thanks a lot.