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.

how to using PWM in zstack 1.2.2a?

Other Parts Discussed in Thread: TIMAC, Z-STACK

Hi  all

      i found  there is some  define  ( HAL_PWM ) in the samplelight   case!

     

#if (defined HAL_BOARD_ZLIGHT) || (defined HAL_PWM)
  HalTimer1Init( 0 );
  halTimer1SetChannelDuty( WHITE_LED, 0 );
  halTimer1SetChannelDuty( RED_LED, 0 );
  halTimer1SetChannelDuty( BLUE_LED, 0 );
  halTimer1SetChannelDuty( GREEN_LED, 0 );
...
#endif

     but when  i go to the function define halTimer1SetChannelDuty ()   in  hal_timer.c

     there  is  a note :

  

/*********************************************************************
 NOTE: Z-Stack and TIMAC no longer use CC2530 Timer 1, Timer 3, and 
       Timer 4. The supporting timer driver module is removed and left 
       for the users to implement their own application timer 
       functions.
*********************************************************************/

      so does it mean although i have define HAL_PWM , it doesn't work !???

     How could  i  set a PWM in application?  is  there any more API function for user?

BR!