Enable USB Interrupt

Hello,

I want to enable usb interrupt for attached project.

So I made some changes on it but could't enable it.

Could you help me to find the what I'm missing?

Kind regards,

 usb_hmsc_baremetal_ek_ra4m2_ep.rar

Parents Reply
  • When I connect a USB device, it doesn't call the callback function as I defined as; (I added some lines to see on debug scrren)

    void free_rtos_fat_callback(rm_freertos_plus_fat_callback_args_t *p_args)

    {

    if (p_args->event & RM_FREERTOS_PLUS_FAT_EVENT_MEDIA_INSERTED)

    {

    g_rm_freertos_plus_fat_insertion_events = true;

    APP_ERR_PRINT ("\r\n USB Media Inserted! \r\n");

    }

    if (p_args->event & RM_FREERTOS_PLUS_FAT_EVENT_MEDIA_REMOVED)

    {

    g_rm_freertos_plus_fat_insertion_events = false;

    }

    }

Children