Announcements
IMPORTANT: Cypress Developer Community is transitioning on October 20th. To learn more and be prepared for this change, check out our latest announcement.
cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC Creator & Designer Software

LuBe_4654241
Contributor

Hi,

How can insert user in a driver function ?

I have understood that there was this method:

/* `#START UART_1_SPI_UART_ISR` */

/* `#END` */

But no work, what's the problem ?

Best regards

LuBe

0 Likes
1 Solution
Len_CONSULTRON
Honored Contributor II

LuBe,

Thank you for sharing your project.

I downloaded your project.

I see the confusion.  Cypress did not provide a "#START ... #END" means of inserting user code into the UART_1_SPI_UART_INT.c component code.  (They did in the file UART_1_SCB_IRQ.c).

However they did provide a method of inserting custom user code in the UART_1_SPI_UART_ISR function.  They have a means of inserting an ENTRY and/or EXIT callback.

Here is the entry callback method:

#ifdef UART_1_SPI_UART_ISR_ENTRY_CALLBACK
    UART_1_SPI_UART_ISR_EntryCallback();
#endif /* UART_1_SPI_UART_ISR_ENTRY_CALLBACK */

and the exit callback:

#ifdef UART_1_SPI_UART_ISR_EXIT_CALLBACK
    UART_1_SPI_UART_ISR_EXITCallback();
#endif /* UART_1_SPI_UART_ISR_EXIT_CALLBACK */

As I described in an earlier post, this is a significantly preferred method of inserting custom user code.

Len
"Engineering is an Art. The Art of Compromise."

View solution in original post

0 Likes
8 Replies