Добавлена простенькая симуляция АЦП в сканирующем режиме.
Но надо отлаживать и сравнивать с работой реального (в плане разных режимов работы, доделать прерывания/дма, флаги и так далее)
This commit is contained in:
@@ -54,13 +54,13 @@
|
||||
//-----------------------------------------------------------------------//
|
||||
/*------------------------------FUNCTIONS--------------------------------*/
|
||||
void deInitialize_Periph_Sim(void);
|
||||
void Simulate_Periph_Sim(void);
|
||||
void deInitialize_MCU(void);
|
||||
void Initialize_Periph_Sim(void);
|
||||
|
||||
#include "stm32_matlab_rcc.h"
|
||||
#include "stm32_matlab_gpio.h"
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------//
|
||||
/*-------------------------------TIMERS----------------------------------*/
|
||||
//#if defined(USE_TIM1) || defined(USE_TIM2) || defined(USE_TIM3) || defined(USE_TIM4) || defined(USE_TIM5) || \
|
||||
@@ -116,4 +116,22 @@ extern struct TIM_Sim tim14s;
|
||||
/*-------------------------------TIMERS----------------------------------*/
|
||||
//-----------------------------------------------------------------------//
|
||||
|
||||
//-----------------------------------------------------------------------//
|
||||
/*---------------------------------ADC-----------------------------------*/
|
||||
#include "stm32_matlab_adc.h"
|
||||
|
||||
#ifdef USE_ADC1
|
||||
extern struct ADC_Sim adc1s;
|
||||
#endif
|
||||
#ifdef USE_ADC2
|
||||
extern struct ADC_Sim adc2s;
|
||||
#endif
|
||||
#ifdef USE_ADC3
|
||||
extern struct ADC_Sim adc3s;
|
||||
#endif
|
||||
|
||||
/*---------------------------------ADC-----------------------------------*/
|
||||
//-----------------------------------------------------------------------//
|
||||
|
||||
|
||||
#endif // _MATLAB_SETUP_H_
|
||||
|
||||
Reference in New Issue
Block a user