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.

CCS/LAUNCHXL-F280049C: Cannot use delay_us

Part Number: LAUNCHXL-F280049C

Tool/software: Code Composer Studio

Hi,

I'm getting an error when calling DELAY_US(x). I have included the f28004x_usdelay.asm file in my project.

Thoughts?

#include <gpio.h>

#define LED 23

void init(void) {
GPIO_setPinConfig(0);
GPIO_setAnalogMode(LED, GPIO_ANALOG_DISABLED);
GPIO_setPadConfig(LED, GPIO_PIN_TYPE_STD);
GPIO_writePin(LED, 0);
GPIO_setDirectionMode(LED, GPIO_DIR_MODE_OUT);

return;
}


void main(void) {
init();

while(1) {
delay_us(100000);
GPIO_togglePin(LED);
}

}