aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2020-04-02 10:15:32 +0300
committerShlomo Hecht <shlomo@twine-s.com>2020-04-02 10:15:32 +0300
commitf051c52a15f629c8fbea0038a1df4831e56101cf (patch)
treebf319615e3aa5a69a702a7ac662614c73f64b5a0 /Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c
parentada2ce25bd36b6f7b3c8aa01039cc9611b22e55c (diff)
parent44c91de2b71d128d9b47e240ee6f4e58b6b8544e (diff)
downloadTango-f051c52a15f629c8fbea0038a1df4831e56101cf.tar.gz
Tango-f051c52a15f629c8fbea0038a1df4831e56101cf.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_git/Tango
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c')
-rw-r--r--Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c b/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c
index 0e95f4053..a5421e60a 100644
--- a/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c
+++ b/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c
@@ -118,7 +118,6 @@ static GateMutex_Handle gateMillisecDB;
uint32_t Millisec_timerBase = TIMER1_BASE; //Timer handle
/******************** Functions ********************************************/
-void CalculateVOCAlarms(void);
//**********************************************************************
/******************** CODE ********************************************/
//**********************************************************************
@@ -151,7 +150,7 @@ void MillisecInit(void)
System_abort("Could not create USB Wait gate");
}
- ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_TIMER0);
+ ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_TIMER1);
ROM_TimerConfigure(Millisec_timerBase, TIMER_CFG_PERIODIC); // 32 bits Timer
//TimerIntRegister(Millisec_timerBase, TIMER_A, Timer0Isr); // Registering isr
ROM_TimerEnable(Millisec_timerBase, TIMER_A);
@@ -637,7 +636,9 @@ uint32_t MillisecLowLoop(uint32_t tick)
if (Hundred_msTick)
{
Speed_Data = Calculate_Speed_Sensor_Velocity();
+#ifndef EVALUATION_BOARD
Read_Buttons_Reg();
+#endif
//Ink_Cart_Led();
///////////////////////////////////////////////////////////////////
@@ -749,7 +750,8 @@ uint32_t MillisecLowLoop(uint32_t tick)
MotorGetStatusFromFPGA(Motor_i);
}*/
midtankDisplay = 1-midtankDisplay;
- Gas_PPM_Info = Calculate_Gas_Power_Consumption();
+ if (WHS_Type == WHS_TYPE_UNKNOWN)
+ Gas_PPM_Info = Calculate_Gas_Power_Consumption();
//Trigger_WHS_MAX11614_Read_allADC();
#ifdef CONTROL_DEBUG
ResetControlTime();