1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-13 11:29:58 +03:00

PICO: Allow for specific core to be used for DMA interrupts

This commit is contained in:
blckmn 2025-06-12 05:28:53 +10:00
parent c7d061041d
commit 6d7a6de3b1
3 changed files with 17 additions and 3 deletions

View file

@ -103,8 +103,14 @@ void dmaSetHandler(dmaIdentifier_e identifier, dmaCallbackHandlerFuncPtr callbac
- CORE 0 uses DMA_IRQ_0
- CORE 1 uses DMA_IRQ_1
If we specify a core to be used for interrupts we will use the corresponding DMA IRQ.
*/
#ifdef DMA_IRQ_CORE_NUM
uint8_t core = DMA_IRQ_CORE_NUM;
#else
// Get the current core number
uint8_t core = get_core_num();
#endif
if (core) {
// Core 1 uses DMA IRQ1