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!
