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.

CC1310: CC1310 GPIO控制问题

Part Number: CC1310

最讨厌的没有基础库的器件让我遇到了!控制GPIO竟然这么久了还没办法实现。

目的:让LED闪亮

现象:点亮LED时,DOUT寄存器变化正常,DOE位正常,但DIN位没变化,所以LED就不会变化。

程序:    while(1) {
    uint32_t t = PIN_getOutputValue(Board_PIN_LED0);
    t = 1^t;
    t = t & 1;
    t = PIN_setOutputValue(ledPinHandle, Board_PIN_LED0, t);
        //sleep(1000);
    CPUdelay(8000*50);
    }

image.png