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.

CC3200 TI-RTOS Timer创建失败

Other Parts Discussed in Thread: CC3200, SYSBIOS, CC3200SDK

各位大神们,大家好:

        本小白最近在学习TI-RTOS,用的是CC3200,在创建Timer时,总是提示创建Timer失败,代码如下:

      #include <ti/sysbios/hal/Timer.h>

      Timer_Params timerParams

      Timer_Handle myTimer;
      Error_Block eb1;
      Error_init(&eb1);

      Timer_Params_init(&timerParams);
      timerParams.period = 2000000;
      timerParams.periodType = Timer_PeriodType_MICROSECS;
      timerParams.startMode = Timer_StartMode_USER;

      myTimer = Timer_create(Timer_ANY, myIsr, &timerParams, &eb1);
      if (myTimer == NULL) {
          Message("Timer create failed");
      }

      然后console就会输出Timer create failed,请问是为什么啊?是需要初始化什么的吗?我在user guide上也没有找到初始化相关。

      Thanks!