Всякие фиксы модели и заготовки для АЦП
И почему то все равно MATLAB намертво блокирует mingw64.... Приходится перезапускать матлаб для перекомпиляции
This commit is contained in:
@@ -60,16 +60,15 @@ void Initialize_Periph_Sim(void);
|
||||
|
||||
#include "stm32_matlab_rcc.h"
|
||||
#include "stm32_matlab_gpio.h"
|
||||
#include "stm32_matlab_dma.h"
|
||||
|
||||
//-----------------------------------------------------------------------//
|
||||
/*-------------------------------TIMERS----------------------------------*/
|
||||
//#if defined(USE_TIM1) || defined(USE_TIM2) || defined(USE_TIM3) || defined(USE_TIM4) || defined(USE_TIM5) || \
|
||||
// defined(USE_TIM6) || defined(USE_TIM7) || defined(USE_TIM8) || defined(USE_TIM9) || defined(USE_TIM10) || \
|
||||
// defined(USE_TIM11) || defined(USE_TIM12) || defined(USE_TIM13) || defined(USE_TIM14)
|
||||
#include "stm32_matlab_tim.h"
|
||||
|
||||
// CODE
|
||||
void Init_TIM_SIM(void);
|
||||
#if defined(USE_TIM1) || defined(USE_TIM2) || defined(USE_TIM3) || defined(USE_TIM4) || defined(USE_TIM5) || \
|
||||
defined(USE_TIM6) || defined(USE_TIM7) || defined(USE_TIM8) || defined(USE_TIM9) || defined(USE_TIM10) || \
|
||||
defined(USE_TIM11) || defined(USE_TIM12) || defined(USE_TIM13) || defined(USE_TIM14)
|
||||
#include "stm32_matlab_tim.h"
|
||||
|
||||
#ifdef USE_TIM1
|
||||
extern struct TIM_Sim tim1s;
|
||||
@@ -113,13 +112,22 @@ extern struct TIM_Sim tim13s;
|
||||
#ifdef USE_TIM14
|
||||
extern struct TIM_Sim tim14s;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef TIM_ENABLE
|
||||
static void Simulate_TIMs() {}
|
||||
static void TIM_SIM_DEINIT() {}
|
||||
#endif
|
||||
/*-------------------------------TIMERS----------------------------------*/
|
||||
//-----------------------------------------------------------------------//
|
||||
|
||||
//-----------------------------------------------------------------------//
|
||||
/*---------------------------------ADC-----------------------------------*/
|
||||
void Init_ADC_SIM(void);
|
||||
#if defined(USE_ADC1) || defined(USE_ADC2) || defined(USE_ADC3)
|
||||
#include "stm32_matlab_adc.h"
|
||||
|
||||
|
||||
#ifdef USE_ADC1
|
||||
extern struct ADC_Sim adc1s;
|
||||
#endif
|
||||
@@ -129,7 +137,12 @@ extern struct ADC_Sim adc2s;
|
||||
#ifdef USE_ADC3
|
||||
extern struct ADC_Sim adc3s;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef ADC_ENABLE
|
||||
static void Simulate_ADCs() {}
|
||||
static void ADC_SIM_DEINIT() {}
|
||||
#endif
|
||||
/*---------------------------------ADC-----------------------------------*/
|
||||
//-----------------------------------------------------------------------//
|
||||
|
||||
|
||||
Reference in New Issue
Block a user