From 949584e277e30e3f450a7d6d14201599686d97bc Mon Sep 17 00:00:00 2001 From: Shlomo Hecht Date: Thu, 25 Oct 2018 11:18:00 +0300 Subject: minor changes --- .../Embedded/Modules/Control/MillisecTask.c | 75 ---------------------- .../Embedded/Modules/Control/MillisecTask.h | 1 - .../Embedded/Modules/Heaters/Heaters_print.c | 2 +- .../Embedded/Modules/Thread/Thread_Winder.c | 7 +- 4 files changed, 2 insertions(+), 83 deletions(-) (limited to 'Software/Embedded_SW/Embedded/Modules') diff --git a/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c b/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c index 4ff47b56c..f9ba6f46b 100644 --- a/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c +++ b/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c @@ -68,21 +68,6 @@ typedef struct MillisecMessage{ uint32_t tick; uint8_t messageData[20]; }MillisecMessageStruc; -typedef enum -{ - ScrewMessage, - //ScrewCalculateTemperature, -}ScrewMessages; - -typedef struct ScrewMessage{ - uint16_t messageId; - uint16_t msglen; - uint32_t tick; - // uint32_t SensorId; - // uint32_t Data; -}ScrewMessageStruc; -Task_Handle Screw_Task_Handle; -Mailbox_Handle ScrewMsgQ = NULL; //uint32_t ADC_Data[MAX_ADC_DEVICES] = {0}; //uint32_t TemperatureSensor_Data[MAX_TEMPERATURE_SENSOR_ID] = {0}; @@ -128,8 +113,6 @@ void MillisecInit(void) Error_init(&eb); MillisecMsgQ = Mailbox_create(sizeof(MillisecMessageStruc), 5, NULL,&eb); - ScrewMsgQ = Mailbox_create(sizeof(ScrewMessageStruc), 5, NULL,&eb); - for (i=0;i - #include "StateMachines/Printing/PrintingSTM.h" #include "Modules/Control/Control.h" #include "Modules/Control/MillisecTask.h" @@ -23,8 +21,6 @@ #include "drivers/FPGA/FPGA_SPI_Comm.h" #include "drivers/FPGA/FPGA_GPIO/FPGA_GPIO.h" - - bool Winder_ScrewHoming = false; //bool Winder_Active = false; @@ -132,7 +128,7 @@ uint32_t Winder_ScrewAtOffsetCallback(uint32_t deviceID, uint32_t BusyFlag) ScrewNumberOfSteps = 0; DirectionChangeCounter = 0; REPORT_MSG(BusyFlag, "Winder_ScrewAtOffsetCallback"); - //Screw_Interrupt(true,ScrewFreeInterrupt); + PrepareReady(Module_Winder, ModuleDone); return OK; } @@ -342,7 +338,6 @@ uint32_t Winder_End(void) RemoveControlCallback(ScrewControlId,ScrewDirectionChange); CurrentControlledSpeed[SCREW_MOTOR] = 0; pend = MillisecFlushMsgQ(HARDWARE_MOTOR_TYPE__MOTO_SCREW); - //Screw_Interrupt(false,NULL); return MotorStop (HARDWARE_MOTOR_TYPE__MOTO_SCREW,Hard_Hiz); } void Winder_ScrewHomeLimitSwitchInterrupt(void) -- cgit v1.3.1