aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2019-01-31 11:40:34 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2019-01-31 11:40:34 +0200
commit1dcf48d11246dcc69ca28dbb345cb53b12b7d7de (patch)
treebf38ebeb633468f1d80ee208701fbe43720c720c /Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c
parent59fee3a258ff15567d21021b661f27d0a6958f8c (diff)
parentbf69a053dcec41d2a38ea63d5e0cb10453190136 (diff)
downloadTango-1dcf48d11246dcc69ca28dbb345cb53b12b7d7de.tar.gz
Tango-1dcf48d11246dcc69ca28dbb345cb53b12b7d7de.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.c34
1 files changed, 17 insertions, 17 deletions
diff --git a/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c b/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c
index 59591769b..01b0948e5 100644
--- a/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c
+++ b/Software/Embedded_SW/Embedded/Modules/Control/MillisecTask.c
@@ -159,7 +159,7 @@ void MillisecStart(void)
void OneMilliSecondMillisecInterrupt(UArg arg0)
{
- MillisecMessageStruc Message;
+ MillisecMessageStruc MillisecMessage;
uint32_t Tenmsec_millisecondCounter = 0;
ROM_IntMasterDisable();
ROM_TimerIntClear(Millisec_timerBase, TIMER_TIMA_TIMEOUT); // Clear the timer interrupt
@@ -178,19 +178,19 @@ void OneMilliSecondMillisecInterrupt(UArg arg0)
Tenmsec_millisecondCounter = msec_millisecondCounter;
}
//send message to the Millisec task
- Message.messageId = OneMillisec;
- Message.tick = msec_millisecondCounter++;
- Message.msglen = sizeof(MillisecMessageStruc);
+ MillisecMessage.messageId = OneMillisec;
+ MillisecMessage.tick = msec_millisecondCounter++;
+ MillisecMessage.msglen = sizeof(MillisecMessageStruc);
if (MillisecMsgQ != NULL)
- Mailbox_post(MillisecMsgQ , &Message, BIOS_NO_WAIT);
+ Mailbox_post(MillisecMsgQ , &MillisecMessage, BIOS_NO_WAIT);
if (Tenmsec_millisecondCounter)
{
- Message.messageId = OneMillisec;
- Message.tick = Tenmsec_millisecondCounter;
- Message.msglen = sizeof(MillisecMessageStruc);
+ MillisecMessage.messageId = OneMillisec;
+ MillisecMessage.tick = Tenmsec_millisecondCounter;
+ MillisecMessage.msglen = sizeof(MillisecMessageStruc);
if (TenMillisecMsgQ != NULL)
- Mailbox_post(TenMillisecMsgQ , &Message, BIOS_NO_WAIT);
+ Mailbox_post(TenMillisecMsgQ , &MillisecMessage, BIOS_NO_WAIT);
}
//
@@ -507,7 +507,7 @@ uint32_t MillisecLowLoop(uint32_t tick)
******************************************************************************/
void MillisecTask(UArg arg0, UArg arg1)
{
- MillisecMessageStruc Message;
+ MillisecMessageStruc MillisecMessage;
//char str[60];
//uint16_t length;
//Clock_setTimeout(HostKAClock, 1000);
@@ -516,11 +516,11 @@ void MillisecTask(UArg arg0, UArg arg1)
Millisecond_Task_Handle = Task_self();
while(1)
{
- Mailbox_pend(MillisecMsgQ , &Message, BIOS_WAIT_FOREVER);
- switch (Message.messageId)
+ Mailbox_pend(MillisecMsgQ , &MillisecMessage, BIOS_WAIT_FOREVER);
+ switch (MillisecMessage.messageId)
{
case OneMillisec:
- MillisecLoop(Message.tick);
+ MillisecLoop(MillisecMessage.tick);
break;
default:
break;
@@ -534,7 +534,7 @@ void MillisecTask(UArg arg0, UArg arg1)
******************************************************************************/
void MillisecLowTask(UArg arg0, UArg arg1)
{
- MillisecMessageStruc Message;
+ MillisecMessageStruc MillisecLowMessage;
//char str[60];
//uint16_t length;
//Clock_setTimeout(HostKAClock, 1000);
@@ -543,11 +543,11 @@ void MillisecLowTask(UArg arg0, UArg arg1)
//Millisecond_Task_Handle = Task_self();
while(1)
{
- Mailbox_pend(TenMillisecMsgQ , &Message, BIOS_WAIT_FOREVER);
- switch (Message.messageId)
+ Mailbox_pend(TenMillisecMsgQ , &MillisecLowMessage, BIOS_WAIT_FOREVER);
+ switch (MillisecLowMessage.messageId)
{
case OneMillisec:
- MillisecLowLoop(Message.tick);
+ MillisecLowLoop(MillisecLowMessage.tick);
break;
default:
break;