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.

CC2630, Set pin state as early as possible at boot time?



I use 1 pin to control relay with Zigbee Ha 1.2, but when it boot  the output state seem uncontrollable.

I init pins like this

/* 
 * Pins table.
 */
static PIN_Config relayPinTable[] =
{
    Board_RELAY_ENABLE | PIN_GPIO_OUTPUT_EN | PIN_GPIO_HIGH | PIN_PUSHPULL | PIN_DRVSTR_MAX, /* RELAY_ENABLE initially high, low all ouput */
    PIN_TERMINATE /* Terminate list     */
};

But when boot, it low and then high cause the relay to on and off.

How to config output state as early as possible