View previous topic :: View next topic |
Author |
Message |
SteveW
Joined: 27 Sep 2005 Posts: 25
|
PIC24 USB HID "Interrupts Disabled" Warnings |
Posted: Thu Jun 13, 2013 7:08 pm |
|
|
I have followed the example ex_usb_hid.c, using a 24FJ256GB106, PCD 5.001, MPLAB X, and get the following warnings:
Warning#216 Interrupts disabled during call to prevent re-entrancy: (usb_clear_isr_reg)
Warning#216 Interrupts disabled during call to prevent re-entrancy: (usb_token_reset)
The warnings appear to be triggered by both usb_init_cs() and usb_task(), and are indicated as occurring at the end of the file (not too useful). Other than following the basic example, the following is added:
#define USB_CABLE_IS_ATTACHED 1
#define USB_CON_SENSE_PIN PIN_F3
#include <pic24_usb.h>
#include <usb_desc_hid.h>
#include <usb.c>
Does anyone know why these earnings are generated, and/or if they are serious? I don't yet have the hardware to test.
I have not succeeded in finding an example specific to the 24F with USB.
Thanks, Steve |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
![](templates/subSilver/images/spacer.gif) |
SteveW
Joined: 27 Sep 2005 Posts: 25
|
|
Posted: Thu Jun 13, 2013 9:13 pm |
|
|
PCM programmer: Thanks for the response. I was hoping that the answer was along the lines of what you pointed me to. |
|
![](templates/subSilver/images/spacer.gif) |
|