matlab_stm_emulate/app_wrapper/app_wrapper.c

26 lines
652 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#include "mcu_wrapper_conf.h"
#include "app_wrapper.h"
/**
* @brief Функция для симуляции шага приложения МК
* @details Используется в случае симуляции без отдельного потока для main().
*/
void app_step(void)
{
// USER APP STEP START
uwTick = hmcu.SystemClock / (MCU_CORE_CLOCK / 1000);
upp_main();
// USER APP STEP END
}
// DUMMY START
// Заглушки для различных функций и переменных
uint32_t HAL_RCCEx_GetPeriphCLKFreq(uint32_t PeriphClk) {}
void SystemClock_Config(void) {}
void Error_Handler(void) {}
// DUMMY END