Forums

GPIO interrupts: still no fun

Started by drmapl January 22, 2003
Hi code wizards (or warriors),
I still haven't got my GPIO interrupt sorted using the 56F805EVM
board and CW. I use the code below but I must miss something as it is
not doing what I expect. I expect it to end up in the routine dirISR
but it never gets there. I have tried using the software interrupt
but got the same sad result.

Any help would be appreciated.

Many thanks,
Manfred

gpioPortB = open(BSP_DEVICE_NAME_GPIO_B, NULL);

archInstallISR(&(pArchInterrupts->MpioB), dirISR);

ioctl(gpioPortB, GPIO_SETAS_GPIO, gpioPin(B,4));
ioctl(gpioPortB, GPIO_SETAS_INPUT, gpioPin(B,4));
ioctl(gpioPortB, GPIO_INTERRUPT_ENABLE, gpioPin(B,4));




RE: [motoroladsp] GPIO interrupts: still no fun

Did you try going to appconfig.h and raising the interrupt priority level above 0???

Jerry.

-----Original Message-----
From: drmapl <m...@irl.cri.nz> [mailto:m...@irl.cri.nz]
Sent: Tuesday, January 21, 2003 7:32 PM
To: m...@yahoogroups.com
Subject: [motoroladsp] GPIO interrupts: still no fun


Hi code wizards (or warriors),
I still haven't got my GPIO interrupt sorted using the 56F805EVM
board and CW. I use the code below but I must miss something as it is
not doing what I expect. I expect it to end up in the routine dirISR
but it never gets there. I have tried using the software interrupt
but got the same sad result.

Any help would be appreciated.

Many thanks,
Manfred

gpioPortB = open(BSP_DEVICE_NAME_GPIO_B, NULL);

archInstallISR(&(pArchInterrupts->MpioB), dirISR);

ioctl(gpioPortB, GPIO_SETAS_GPIO, gpioPin(B,4));
ioctl(gpioPortB, GPIO_SETAS_INPUT, gpioPin(B,4));
ioctl(gpioPortB, GPIO_INTERRUPT_ENABLE, gpioPin(B,4));

_____________________________________
Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer.  You need to do a "reply all" if you want your answer to be distributed to the entire group.

_____________________________________
About this discussion group:

To Join:  m...@yahoogroups.com

To Post:  m...@yahoogroups.com

To Leave: m...@yahoogroups.com

Archives: http://www.yahoogroups.com/group/motoroladsp

More Groups: http://www.dsprelated.com/groups.php3
 

" TARGET="_blank">http://docs.yahoo.com/info/terms/



________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information visit http://www.messagelabs.com
________________________________________________________________________


________________________________________________________________________
This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information visit http://www.messagelabs.com
________________________________________________________________________