добавлены параметры упп в модель симулинк
This commit is contained in:
@@ -108,7 +108,7 @@ void MCU_writeOutputs(SimStruct* S)
|
||||
/* Get S-Function descrete array */
|
||||
real_T* Out_Buff = ssGetDiscStates(S);
|
||||
|
||||
//Simulate_GPIO_BSRR();
|
||||
Simulate_GPIO_BSRR();
|
||||
WriteFromSFunc(Out_Buff);
|
||||
}
|
||||
//-----------------CONTROLLER SIMULATE FUNCTIONS---------------//
|
||||
@@ -169,9 +169,13 @@ void SIM_Initialize_Simulation(void)
|
||||
*/
|
||||
void SIM_deInitialize_Simulation(void)
|
||||
{
|
||||
//#ifdef DEINITIALIZE_AFTER_SIM
|
||||
#include "upp.h"
|
||||
memset(&Upp, 0, sizeof(Upp));
|
||||
// simulate structures of peripheral deinitialization
|
||||
deInitialize_Periph_Sim();
|
||||
// mcu peripheral memory deinitialization
|
||||
deInitialize_MCU();
|
||||
//#endif
|
||||
}
|
||||
//-------------------------------------------------------------//
|
||||
|
||||
Reference in New Issue
Block a user