mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-12 19:10:32 +03:00
PICO: Allow for specific core to be used for DMA interrupts
This commit is contained in:
parent
c7d061041d
commit
6d7a6de3b1
3 changed files with 17 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -64,6 +64,11 @@
|
|||
// #define USE_SPI_DMA_ENABLE_EARLY
|
||||
#define USE_SPI_DMA_ENABLE_LATE
|
||||
|
||||
/* DMA Settings */
|
||||
//#undef USE_DMA
|
||||
#define DMA_IRQ_CORE_NUM 1 // Use core 1 for DMA IRQs
|
||||
#undef USE_DMA_SPEC // not yet required - possibly won't be used at all
|
||||
|
||||
#undef USE_SOFTSERIAL1
|
||||
#undef USE_SOFTSERIAL2
|
||||
|
||||
|
@ -76,7 +81,7 @@
|
|||
|
||||
#undef USE_TIMER
|
||||
#undef USE_RCC
|
||||
#undef USE_CLI
|
||||
|
||||
#undef USE_RX_PWM
|
||||
#undef USE_RX_PPM
|
||||
#undef USE_RX_SPI
|
||||
|
@ -86,6 +91,7 @@
|
|||
#undef USE_SERIAL_4WAY_SK_BOOTLOADER
|
||||
#undef USE_MULTI_GYRO
|
||||
#undef USE_BARO
|
||||
#undef USE_SERIAL_PASSTHROUGH
|
||||
|
||||
#undef USE_RANGEFINDER_HCSR04
|
||||
#undef USE_CRSF
|
||||
|
@ -103,7 +109,7 @@
|
|||
#undef USE_OSD
|
||||
#undef USE_SPEKTRUM
|
||||
#undef USE_SPEKTRUM_BIND
|
||||
#undef USE_MSP
|
||||
|
||||
#undef USE_MSP_UART
|
||||
#undef USE_MSP_DISPLAYPORT
|
||||
#undef USE_GPS
|
||||
|
|
|
@ -108,8 +108,10 @@
|
|||
#undef USE_MSP_UART
|
||||
#undef USE_MSP_DISPLAYPORT
|
||||
|
||||
/* DMA Settings */
|
||||
//#undef USE_DMA
|
||||
#undef USE_DMA_SPEC
|
||||
#define DMA_IRQ_CORE_NUM 1 // Use core 1 for DMA IRQs
|
||||
#undef USE_DMA_SPEC // not yet required - possibly won't be used at all
|
||||
|
||||
#undef USE_DSHOT_TELEMETRY
|
||||
#undef USE_ESC_SENSOR
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue