IMPORTANT: Infineon Forums currently doesn’t allow sign-in & registrations to prepare for the upcoming transition. To learn more, check out our announcement.
Results 1 to 1 of 1

Thread: NVIC001 Migration to INTERRUPT App in Dave 4

  1. #1

    NVIC001 Migration to INTERRUPT App in Dave 4

    I am moving a project from Dave 3 to Dave 4 and I am having an issue when remodelling the behaviour of the NVIC001 app of Dave 3 to the INTERRUPT App of Dave 4.
    In Dave 3 the generated source code of the NVIC001 app implemented the IRQ handler and called a user defined function. I have used this functionality to call a method which is part of a library:
    //in NVIC001.c :
    void IRQ_Hdlr_57(void)
       /* <<<DD_NVIC001_non_API_1>>>*/
      /* Calling user defined Event handler*/
    The new INTERRUPT app copies the name of the user defined function and uses it in the context of a macro. Calling a function of a prebuilt library is not possible anymore without using a wrapper routine as the IRQ handler may vary in the several projects which use the library:
    //in interrupt_extern.h :
    #define MyLibraryFunction IRQ_Hdlr_57
    I would like to suggest a modification of the INTERRUPT app so that using a macro for mapping the user interrupt handler is avoided. If the generated source code of NVIC001 is reused, there will be another advantage: the users will get errors during compile time when they forget to implement the user interrupt handler instead of wondering why the misspelled/excluded from build/... function is not entered.
    Last edited by Val-R; May 3rd, 2017 at 04:52 AM.

Tags for this Thread


All content and materials on this site are provided “as is“. Infineon makes no warranties or representations with regard to this content and these materials of any kind, whether express or implied, including without limitation, warranties or representations of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, whether express or implied, is granted by Infineon. Use of the information on this site may require a license from a third party, or a license from Infineon.

Infineon accepts no liability for the content and materials on this site being accurate, complete or up- to-date or for the contents of external links. Infineon distances itself expressly from the contents of the linked pages, over the structure of which Infineon has no control.

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 Usage Terms of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Usage Terms of this site. Infineon reserves 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.