aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/Control
diff options
context:
space:
mode:
authorShlomo Hecht <shlomo@twine-s.com>2019-02-20 08:54:25 +0200
committerShlomo Hecht <shlomo@twine-s.com>2019-02-20 08:54:25 +0200
commit38009a30108ff250ac4884bf85a89014db27b3bd (patch)
tree7cafe161d1f11d78ab63e53cf09b6f2214536a9d /Software/Embedded_SW/Embedded/Modules/Control
parent261fea4b9974c2ebee88da009346ba88bc7e48dd (diff)
downloadTango-38009a30108ff250ac4884bf85a89014db27b3bd.tar.gz
Tango-38009a30108ff250ac4884bf85a89014db27b3bd.zip
small changes for future work
Diffstat (limited to 'Software/Embedded_SW/Embedded/Modules/Control')
-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 e8a60a8c4..5943c11c5 100644
--- a/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c
+++ b/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c
@@ -147,15 +147,17 @@ void MillisecStop(void)
MillisecRestart = false;
ADCAcquireStop();
}
-
+#define HIGH_TASK_FREQUENCY 120000
void MillisecStart(void)
{
MillisecRestart = true;
- ROM_TimerLoadSet(Millisec_timerBase, TIMER_A,120000/*one millisecond*/);
+
+ ROM_TimerLoadSet(Millisec_timerBase, TIMER_A,HIGH_TASK_FREQUENCY);
ROM_TimerEnable(Millisec_timerBase, TIMER_A);
ROM_IntEnable(INT_TIMER1A);
ROM_TimerIntEnable(Millisec_timerBase, TIMER_TIMA_TIMEOUT);
ADCAcquireStart(0,1);
+
}
void OneMilliSecondMillisecInterrupt(UArg arg0)
@@ -166,7 +168,7 @@ void OneMilliSecondMillisecInterrupt(UArg arg0)
ROM_TimerIntClear(Millisec_timerBase, TIMER_TIMA_TIMEOUT); // Clear the timer interrupt
if (MillisecRestart == true)
{
- ROM_TimerLoadSet(Millisec_timerBase, TIMER_A,120000/*one millisecond*/);
+ ROM_TimerLoadSet(Millisec_timerBase, TIMER_A,HIGH_TASK_FREQUENCY);
}
else
{