Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use CY_SYSINT_INTRSRC_MUXIRQ_SHIFT instead of 16 #1

Open
rvxfahim opened this issue Apr 10, 2024 · 0 comments
Open

use CY_SYSINT_INTRSRC_MUXIRQ_SHIFT instead of 16 #1

rvxfahim opened this issue Apr 10, 2024 · 0 comments

Comments

@rvxfahim
Copy link

just a suggestion for users working CYT2B75CAS (CM4 and CM0) core.

const cy_stc_sysint_t IRQ_CFG_PERIPHERAL =
{
    .intrSrc  = ((NvicMux5_IRQn << 16) | tcpwm_0_interrupts_0_IRQn),
    // .intrSrc = tcpwm_0_interrupts_0_IRQn,
    .intrPriority = 3UL
};

trying to take this example will not work on cm4 core and its better to replace the magic number "16" with "CY_SYSINT_INTRSRC_MUXIRQ_SHIFT"

I had to spend 6 hours to find out why my interrupt was not firing.

Request to Infineon please provide some examples/ modify existing examples to be compatible with CYT2B7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant