This commit is contained in:
Robin Müller 2021-07-12 23:40:26 +02:00
parent 9d456287ae
commit b698da3df1
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814
2 changed files with 12 additions and 1 deletions

View File

@ -32,7 +32,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
find_package(CMSIS COMPONENTS STM32H743ZI STM32H7_M7 RTOS REQUIRED)
find_package(FreeRTOS COMPONENTS STM32H7 ARM_CM7 REQUIRED)
find_package(HAL COMPONENTS STM32H7M7 STM32H743ZI RCC GPIO CORTEX REQUIRED)
find_package(HAL COMPONENTS STM32H7M7 STM32H743ZI RCC GPIO UART TIM CORTEX ETH REQUIRED)
set(TGT_BSP "arm/stm32h743zi-nucleo")
set(FREERTOS_NAMESPACE FreeRTOS::STM32::H7::M7)
@ -108,8 +108,13 @@ target_link_libraries(${TARGET_NAME} PRIVATE
${FREERTOS_NAMESPACE}::Heap::4
${FREERTOS_NAMESPACE}::ARM_CM7
HAL::STM32::H7::M7::RCC
HAL::STM32::H7::M7::RCCEx
HAL::STM32::H7::M7::GPIO
HAL::STM32::H7::M7::UART
HAL::STM32::H7::M7::CORTEX
HAL::STM32::H7::M7::TIM
HAL::STM32::H7::M7::TIMEx
HAL::STM32::H7::M7::ETH
CMSIS::STM32::H743ZI::M7
CMSIS::STM32::H7::M7::RTOS
STM32::NoSys

View File

@ -34,6 +34,7 @@
*/
/* Includes ------------------------------------------------------------------*/
#include "OBSWConfig.h"
#include "stm32h7xx_it.h"
#include "cmsis_os.h"
@ -43,7 +44,10 @@
/* Private define ------------------------------------------------------------*/
/* Private macro -------------------------------------------------------------*/
/* Private variables ---------------------------------------------------------*/
#if OBSW_ADD_LWIP_COMPONENTS == 1
extern ETH_HandleTypeDef EthHandle;
#endif
/* Private function prototypes -----------------------------------------------*/
void ETH_IRQHandler(void);
/* Private functions ---------------------------------------------------------*/
@ -147,7 +151,9 @@ void SysTick_Handler(void)
*/
void ETH_IRQHandler(void)
{
#if OBSW_ADD_LWIP_COMPONENTS == 1
HAL_ETH_IRQHandler(&EthHandle);
#endif
}