Skip to content

How to use local interrupt? #238

Answered by hughbreslin
Usutatsu asked this question in How to
Discussion options

You must be logged in to vote

Hi @Usutatsu I'm a bit confused by "not using CLINT" - the CLINT is used for local interrupt generation so you can't really bypass it for this use case. You could use the PLIC or a GPIO for interrupts instead of the CLINT but these are global interrupts not local.

You are correct in thinking you can use the MSS_INT_FTM signals - for an example of this have a look at this section of our GPIO interrupt example which shows the MSS_INT_FTM (in this case called FABRIC_F2H_...) driving an interrupt. You will need to configure the PLIC for this to work.

If you want to use the local interrupts on the hart (which does use the CLINT) you can use the __enable_local_irq function that is shown here. J…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@hughbreslin
Comment options

@Usutatsu
Comment options

@hughbreslin
Comment options

@Usutatsu
Comment options

Answer selected by hughbreslin
Comment options

You must be logged in to vote
1 reply
@Usutatsu
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
How to
Labels
None yet
2 participants