- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ive been using the auto generated ISR's and am trying to use the Custom ISR's using the CY_ISR_PROTO() approach.
The compiler keeps telling me that " isr_1_StartEx(whatever)" is a undeclared identifier "whatever"
Any Ideas? Im sure it is something simple......
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This discusses PROTO implementation -
http://www.cypress.com/?rID=38267 AN54460 - PSoC® 3, PSoC 4, and PSoC 5LP Interrupts
Alternatively post your project for forum to look at -
“File” Creator
“Create Workspace Bundle”
Use Firefox or IE, not chrome to post.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The CY_ISR_PROTO(Handler) macro only declares your interrupt handler, later on you have to DEFINE it with
CY_ISR(Handler)
{
// Handler Body
}
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks guys.
I found the original problem. needed to link the files.
However there is another problem. Here is a simple program using 2 timers to flash 2 led's using interrupts. Only one will flash even thou the code is exactly the same for each one. Ive had this problem before using multiple interrupts so I usually just poll.
This is on the CY8CKIT-050 kit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Change this -
isr_1_StartEx(light);
isr_1_StartEx(light2);
to this -
isr_1_StartEx(light);
isr_2_StartEx(light2);
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Dana. Yes, found it myself just as soon as I posted...
Thanks