代码拉取完成,页面将自动刷新
/**
******************************************************************************
* STM32L4 Bootloader
******************************************************************************
* @author Akos Pasztor
* @file stm32l4xx_it.c
* @brief Interrupt Service Routines
* This file contains the exception and peripheral interrupt handlers.
*
*
******************************************************************************
* Copyright (c) 2018 Akos Pasztor. https://akospasztor.com
******************************************************************************
**/
/* Includes ------------------------------------------------------------------*/
#include "stm32l4xx_hal.h"
#include "stm32l4xx_it.h"
/* External variables --------------------------------------------------------*/
extern SD_HandleTypeDef hsd1;
/******************************************************************************/
/* Cortex-M4 Processor Interruption and Exception Handlers */
/******************************************************************************/
/**
* @brief This function handles Non maskable interrupt.
*/
void NMI_Handler(void)
{
}
/**
* @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 Prefetch 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();
HAL_SYSTICK_IRQHandler();
}
/******************************************************************************/
/* STM32L4xx Peripheral Interrupt Handlers */
/******************************************************************************/
/**
* @brief DMA2 Channel5 ISR
* @note SDMMC DMA Tx, Rx
*/
void DMA2_Channel5_IRQHandler(void)
{
if((hsd1.Context == (SD_CONTEXT_DMA | SD_CONTEXT_READ_SINGLE_BLOCK)) ||
(hsd1.Context == (SD_CONTEXT_DMA | SD_CONTEXT_READ_MULTIPLE_BLOCK)))
{
HAL_DMA_IRQHandler(hsd1.hdmarx);
}
else if((hsd1.Context == (SD_CONTEXT_DMA | SD_CONTEXT_WRITE_SINGLE_BLOCK)) ||
(hsd1.Context == (SD_CONTEXT_DMA | SD_CONTEXT_WRITE_MULTIPLE_BLOCK)))
{
HAL_DMA_IRQHandler(hsd1.hdmatx);
}
}
/**
* @brief SDMMC ISR
*/
void SDMMC1_IRQHandler(void)
{
HAL_SD_IRQHandler(&hsd1);
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。