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 can I control the LEDs on CC2650 in IAR?

I'm developing a project about sensor, using IAR and sensor controller studio.The SCS provides several examples. The "led blinker" runs well and the LEDs react as expected. But though the other examples try to light the LEDs as well, none of them work. For example, in "adc window monitor", the code in IAR about the LEDs is

void taskAlertCallback(void) {

// Clear the ALERT interrupt source
scifClearAlertIntSource();

// Indicate high or low with a short blink
if (scifTaskData.adcWindowMonitor.output.adcValue > 600) {
HWREG(GPIO_BASE + GPIO_O_DOUTSET31_0) = BV(IOID_LED_2);
HWREG(GPIO_BASE + GPIO_O_DOUTCLR31_0) = BV(IOID_LED_2);
} else {
HWREG(GPIO_BASE + GPIO_O_DOUTSET31_0) = BV(IOID_LED_1);
HWREG(GPIO_BASE + GPIO_O_DOUTCLR31_0) = BV(IOID_LED_1);
}

// Acknowledge the alert event
scifAckAlertEvents();

} // taskAlertCallback

I expect the LED_1 to be lit when the adc value is more than 600, and LED_2 otherwise. But nothing happened while debugging. When I debugged it in sensor controller studio, the adc value seems normal. Is there anything else need to do to control the LEDs?

And can someone tell me how long is the tick period in the function fwScheduleTask() in sensor controller studio? The help only tells me it's the number of ticks but doesn't show the exact time.