Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > PSoC® 5 > ISR Outside of the generated source

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



ISR Outside of the generated source
Moderator:
ANCY

Post Reply
Follow this topic



ISR Outside of the generated source

MattCoughlin posted on 09 Aug 2012 11:21 AM PST
Senior Member
17 Forum Posts

I have 2 interrupts which each have their own ISR's. I wrote the ISR's in the spaces given in the generated source files, but I'd like a way to put the ISR's into my own source files. I delete the generated source before putting the project into source control, which gets rid of my custom routines. Is there a way I can keep the interrupts I have, and put their routines somewhere other than their respective c files?

 

Thank you




Re: ISR Outside of the generated source

Bob Marlowe posted on 09 Aug 2012 12:43 PM PST
Top Contributor
1768 Forum Posts

That is easily to be done and besides it is my own favorite way ising ISRs.

Drop and wire an Isr-component onto your schematic

There are two macros CY_ISR_PROTO(YourIsr); that declares YourIsr to be an interrupt handler prototype definition

and CY_ISR(YourIsr) that declares the handler.

Isr_StartEx(YourIsr); // This will start the interrupt handler.

You'll find (short) descriptions of the macros in the "System Reference Guide" which you may find from the "Help"-menu in Creator.

Bob



Re: ISR Outside of the generated source

srim posted on 10 Aug 2012 10:09 PM PST
Cypress Employee
121 Forum Posts

 More information on used defined ISR's can be found in Appnote AN54460






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20