cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC Creator & Designer Software

Contributor

I want to use a version control system to manage my project. Right now it's pretty hard, as my source code ends up mixed in with all kinds of autogenerated code that I don't care about and shouldn't check in --- some of the source code is actually embedded inside autogenerated code that I don't care about etc. I really don't like having my precious content in a directory called Generated_Source.

Does anyone have any suggestions for whether it's possible to rearrange my project to be a bit easier to manage?

Most of the autogenerated source is library code that I will never have to modify, and so don't need to worry about. So far the only things I've found I need to modify are interrupt handlers where I need to insert my own code into the `Foo_Interrupt()` routine. Is there any way I have this routine in my main source code? If so, I wouldn't need to modify anything in Generated_Source.

The ideal solution, of course, is to put everything that's produced by the compiler in an obj directory, but I suspect that's not possible...

0 Likes
Reply
1 Solution
Honored Contributor II

Cypress also added callback capabilities to some places / components, so there should not be any need to edit the generated code anymore.

View solution in original post

0 Likes
Reply
4 Replies
Honored Contributor II

You can define the interrupt handler in your own code, and then use ISR_StartEx(&handleInterrupt) to assign this handler to your component. That way you don't need to modify the generated code at all.

Contributor

D'oh --- I'd forgotten I can do that.

Does this technique apply to all the other autogenerated code as well? Is there every any necessity to edit it?

0 Likes
Reply
Honored Contributor II

Cypress also added callback capabilities to some places / components, so there should not be any need to edit the generated code anymore.

View solution in original post

0 Likes
Reply
Contributor

Awesome --- thanks.

0 Likes
Reply