From ac176ba544f9936f4d4e1fb3ceb8762d21c86b11 Mon Sep 17 00:00:00 2001 From: Avi Levkovich Date: Tue, 8 May 2018 13:32:45 +0300 Subject: Add define to FPGA_GetBusy in milisec task --- Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Software/Embedded_SW/Embedded/Modules/Control') diff --git a/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c b/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c index 8f45ac9ab..450bd46ce 100644 --- a/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c +++ b/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c @@ -224,7 +224,10 @@ uint32_t MillisecLoop(uint32_t tick) Onesecond_Tick = (tick%eOneSecond == 0) ?true:false; //gather Motor data from FPGA - FPGA_GetBusy(); //load the busy motor information to all motors + #ifndef EVALUATION_BOARD + FPGA_GetBusy(); //load the busy motor information to all motors + #endif + for (Motor_i = 0;Motor_i < NUM_OF_MOTORS;Motor_i++) { if (MotorDriverResponse[Motor_i].Busy == true) -- cgit v1.3.1