You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
88 lines
1.4 KiB
88 lines
1.4 KiB
#include <stdio.h>
|
|
|
|
#include "main.h"
|
|
#include "stm32h7xx_it.h"
|
|
|
|
extern SAI_HandleTypeDef hSAI;
|
|
|
|
/**
|
|
* @brief This function handles Non maskable interrupt.
|
|
*/
|
|
void NMI_Handler(void) {
|
|
while (1) {
|
|
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @brief This function handles Hard fault interrupt.
|
|
*/
|
|
void HardFault_Handler(void) {
|
|
while (1) {
|
|
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @brief This function handles Memory management fault.
|
|
*/
|
|
void MemManage_Handler(void) {
|
|
while (1) {
|
|
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @brief This function handles Pre-fetch fault, memory access fault.
|
|
*/
|
|
void BusFault_Handler(void) {
|
|
while (1) {
|
|
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @brief This function handles Undefined instruction or illegal state.
|
|
*/
|
|
void UsageFault_Handler(void) {
|
|
while(1) {
|
|
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @brief This function handles System service call via SWI instruction.
|
|
*/
|
|
void SVC_Handler(void) {
|
|
|
|
}
|
|
|
|
/**
|
|
* @brief This function handles Debug monitor.
|
|
*/
|
|
void DebugMon_Handler(void) {
|
|
|
|
}
|
|
|
|
/**
|
|
* @brief This function handles Pendable request for system service.
|
|
*/
|
|
void PendSV_Handler(void) {
|
|
|
|
}
|
|
|
|
/**
|
|
* @brief This function handles System tick timer.
|
|
*/
|
|
void SysTick_Handler(void) {
|
|
HAL_IncTick();
|
|
}
|
|
|
|
/**
|
|
* @brief This function handles SAI DMA interrupt request.
|
|
* @param None
|
|
* @retval None
|
|
*/
|
|
void DMA2_Stream6_IRQHandler(void) {
|
|
HAL_DMA_IRQHandler(hSAI.hdmatx);
|
|
}
|
|
|