Interrupts and FreeRTOS

qasimzca wrote on Monday, October 09, 2017:

My code is shown below. I have created the task that continuously prints a string on screen. But, interrupts are still not working

int main(void)
{
/* Do system initialization, eg: hardware, nvdm. */
system_init();

log_init(NULL, NULL, NULL);

LOG_I(template, "start to create task.\n");



/*this function initializes the GPIOs and external interupts */
eint_sample();

BaseType_t pdchk;
if((pdchk = xTaskCreate(print_task,"idle",2048,NULL,1,NULL)) == pdPASS){
    LOG_I(template, "\n\r idle create\n\r");
}



/* Call this function to indicate the system initialize done. */
SysInitStatus_Set();


/* Start the scheduler. */
vTaskStartScheduler();

for (;;);

}