This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] CCS/TMDSCNCD28335:打印 OSTime

Guru**** 1979755 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/740053/ccs-tmdscncd28335-print-ostime

器件型号:TMDSCNCD28335

工具/软件:Code Composer Studio

设备:F28335 contorolCRAD 和实验板套件- Delfino F28335。
移植了 uCOS-II
我使用 OSTimeGet ()函数获取 OSTime。
但任务1 每次返回"0"、而任务2 不起作用。
问题是什么?
如何解决此问题?

静态空 App_Task1 (空*p_arg)
{  
   (空)&p_arg;
   INT32U t;

   while (DEF_true){

     T = OSTimeGet ();

     printf ("Task1");
     printf ("OSTime=%lu\n"t);
     OSTimeDly (50);
  }


静态空 App_Task2 (空*p_arg)
{  
   (空)&p_arg;
   INT32U t;

   while (DEF_true){

   T = OSTimeGet ();


   printf ("Task2 \n");
   printf ("OSTime=%lu\n"t);
   OSTimeDly (100);


   }

================================================================

控制台:

任务1 OSTime=0

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    Jinho、

    OSTimeGet 函数不属于 TI 发布的任何库。 此函数也不属于 TI RTOS。 所以、我们真的无法回答这个问题。

    此致、
    曼诺伊
x 出现错误。请重试或与管理员联系。