stm32/spi: Enable SPI IRQs and add IRQHandlers for H7 MCUs.

The H7 HAL uses SPI IRQs when the SPI is running in DMA mode.
This commit is contained in:
iabdalkader
2019-05-13 19:33:22 +02:00
committed by Damien George
parent 123c065131
commit 07af74daef
2 changed files with 44 additions and 0 deletions

View File

@@ -144,6 +144,8 @@ MP_DECLARE_CONST_FUN_OBJ_0(pyb_irq_stats_obj);
#define IRQ_PRI_CAN NVIC_EncodePriority(NVIC_PRIORITYGROUP_4, 7, 0)
#define IRQ_PRI_SPI NVIC_EncodePriority(NVIC_PRIORITYGROUP_4, 8, 0)
// Interrupt priority for non-special timers.
#define IRQ_PRI_TIMX NVIC_EncodePriority(NVIC_PRIORITYGROUP_4, 13, 0)