Other Parts Discussed in Thread: HALCOGEN
Tool/software: Code Composer Studio
Dear All,
I want to use gio interrupt feature of TMS57004. Hence I have done the following configuration in halcogen.
1. Enable gio driver
2. In Pin MUX activated gio PortA
3. In gio, I set bit 7 in input and enable VIM low priority, falling edge.
4. In VIM Enable channel 9 Gio int A.
and generated code.
In sys_main I have written the following code:
#include<stdio.h>
#include "sys_common.h"
#include "gio.h"
#include "system.h"
int main(void)
{
/* USER CODE BEGIN (3) */
gioInit();
printf("Start\n");
vimInit();
gioSetDirection(gioPORTA,0x00);
gioEnableNotification(gioPORTA,7);
_enable_IRQ();
while(1);
/* USER CODE END */
return 0;
}
void gioLowLevelInterrupt(void) {
printf("Button pressed\n");
}
But I am not getting any response when I presses the button.
I am attaching my files for your reference.
Please help me in resolving the issue.
Regards,
Gunit