Part Number:CC2530
Hello,
I have ported ZLL t0 Z-Stack 3.0. Here I have tried to keep most of the files as it is.
I have relaced timer file from Z-Stack Lighting 1.0.2\Components\hal\target\CC2530PMP4712 to my HAL and have initialized the timer1 HalTimer1Init(0); in SampleApp.c file
Also I have updated the Timer Initialization in hal_board_cfg file as follows:
#define INIT_PWM_PINS() \
{ \
PERCFG &= ~(0x40); /* bit 6 = 0 */ \
P0SEL |= ( 0x08 | 0x10 | 0x20 | 0x40); /* P0.3:6 */ \
P0DIR |= ( 0x08 | 0x10 | 0x20 | 0x40); /* P0.3:6 */ \
}
#define GREEN_LED HAL_T1_CH3
#define RED_LED HAL_T1_CH1
#define BLUE_LED HAL_T1_CH2
#define WHITE_LED HAL_T1_CH4
#define ENABLE_LAMP P0SEL |= ( 0x08 | 0x10 | 0x20 | 0x40); /* P0.3:6 */\
#define DISABLE_LAMP P0SEL &= ~( 0x08 | 0x10 | 0x20 | 0x40); /* P0.3:6 */\
P0 &= ~( 0x08 | 0x10 | 0x20 | 0x40); /* P0.3:6 */
Is there anything else needed to enable timer?