Hi all,
I am trying to get GPIO_0 interrupt working on my EVM6678L board.
I am using the DSP_GPIO_00 pin on the EVM 80-pin test header (pin 50) to interrupt Core 0 GPIO 0...NOTHING happenning when I toggle the pin?
I started with MCSDK "ledplay" example that uses task to play the leds...Here is my code:
PS: I also tried different GPIO and "HWI" under "Target Specific Support"/"C66" but nothing worked...
I used XGCONF to configure the HWI "static" as follows:
--------------------------------------------------------------------------------------------------
var ti_sysbios_hal_Hwi = xdc.useModule('ti.sysbios.hal.Hwi');
var instti_sysbios_hal_Hwi0Params0 = new ti_sysbios_hal_Hwi.Params();
instti_sysbios_hal_Hwi0Params0.enableInt = true;
instti_sysbios_hal_Hwi0Params0.eventId = 90;
instti_sysbios_hal_Hwi0Params0.priority = 5;
Program.global.HWI_GPIOn = ti_sysbios_hal_Hwi.create(5, "&hwiGPIOnFunc", instti_sysbios_hal_Hwi0Params0);
--------------------------------------------------------------------------------------------------------------------------------------------------------
and this is my C code :
--------------------------------------------------------
Void hwiGPIOnFunc(
UArg arg)
{
platform_infop_info;
uint32_t
led_no = 0;
// this runs when interrupt #5 goes off
platform_write("Murad entered HWI\n");
/*
while(1) {
platform_led(led_no, PLATFORM_LED_ON, PLATFORM_USER_LED_CLASS);
platform_delay(30000);
platform_led(led_no, PLATFORM_LED_OFF, PLATFORM_USER_LED_CLASS);
led_no = (++led_no) % p_info.led[PLATFORM_USER_LED_CLASS].count;
}
*/
}
-------------------------------------------------------------------
What am I missing?
Thanks in advance