Tool/software: TI-RTOS
Dear support,
I woulfd like to add PWM Interrupt to pwmled_EK_TM4C129EXL_TI example.
Added to cfg file:
var m3Hwi0Params = new m3Hwi.Params();
m3Hwi0Params.instance.name = "PWM_Generator_0";
m3Hwi0Params.priority = 0;
Program.global.PWM_Generator_0 = m3Hwi.create(26, "&hwi0_isr", m3Hwi0Params);
added in the pwmled.c:
void hwi0_isr(UArg arg)
{GPIO_toggle(Board_LED1);}
But when I added :
PWMIntEnable(PWM_BASE, PWM_GEN_0); - get error that
PWM_BASE and PWM_GEN_0 undefined, but they exist is hw_memmap.h that include in the project:
#include "inc/hw_memmap.h"
Could you pls help me with it? where is the problem here?
Thanks,Sabina