-
Notifications
You must be signed in to change notification settings - Fork 14
Remove sw isr table #237
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
base: main
Are you sure you want to change the base?
Remove sw isr table #237
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -19,6 +19,14 @@ void relocate_vector_table(void) | |||||||||||||||||||||||||||||
/* Empty, but needed */ | ||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
#ifdef CONFIG_NRF5_SDK_IRQ_CONNECT_GPIOTE | ||||||||||||||||||||||||||||||
ISR_DIRECT_DECLARE(gpiote0_isr) | ||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @bjarki-andreasen Why is this needed instead of providing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because the macro ISR_DIRECT_DECLARE() adds required header and footer to the function, its not as simple as a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. SoftDevice interrupt forwarding is missing ISR_DIRECT_DECLARE(). Is that different or is this required there as well? See sdk-nrf-bm/subsys/softdevice_handler/irq_connect.c Lines 42 to 48 in afea614
sdk-nrf-bm/subsys/softdevice_handler/irq_connect.c Lines 73 to 79 in afea614
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If |
||||||||||||||||||||||||||||||
{ | ||||||||||||||||||||||||||||||
nrfx_gpiote_0_irq_handler(); | ||||||||||||||||||||||||||||||
return 0; | ||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||
#endif | ||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
static int irq_init(void) | ||||||||||||||||||||||||||||||
{ | ||||||||||||||||||||||||||||||
int err; | ||||||||||||||||||||||||||||||
|
@@ -27,7 +35,7 @@ static int irq_init(void) | |||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
/** TODO: rework */ | ||||||||||||||||||||||||||||||
#ifdef CONFIG_NRF5_SDK_IRQ_CONNECT_GPIOTE | ||||||||||||||||||||||||||||||
IRQ_CONNECT(GPIOTE_IRQn, 5, nrfx_isr, nrfx_gpiote_0_irq_handler, 0); | ||||||||||||||||||||||||||||||
IRQ_DIRECT_CONNECT(GPIOTE_IRQn, 5, gpiote0_isr, 0); | ||||||||||||||||||||||||||||||
#endif | ||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||
err = sd_softdevice_vector_table_base_set(VECTOR_ADDRESS); | ||||||||||||||||||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commit needs
<blah>: <blah>
format