Quantcast
Channel: Objective Development Forums
Viewing all articles
Browse latest Browse all 4524

Re: INT0 on D- instead of D+

$
0
0
Hum... looks like it's not as easy as just changing interrupt polarity...

Help anyone? :?:

/* ----------------------- Optional MCU Description ------------------------ */

/* The following configurations have working defaults in usbdrv.h. You
 * usually don't need to set them explicitly. Only if you want to run
 * the driver on a device which is not yet supported or with a compiler
 * which is not fully supported (such as IAR C) or if you use a differnt
 * interrupt than INT0, you may have to define some of these.
 */
 #define USB_INTR_CFG            MCUCR
 //#define USB_INTR_CFG_SET        ((1 << ISC00) | (1 << ISC01))
 #define USB_INTR_CFG_SET        (1 << ISC01)
 #define USB_INTR_CFG_CLR        0
 #define USB_INTR_ENABLE         GIMSK
 #define USB_INTR_ENABLE_BIT     INT0
 #define USB_INTR_PENDING        GIFR
 #define USB_INTR_PENDING_BIT    INTF0
 #define USB_INTR_VECTOR         SIG_INTERRUPT0

Viewing all articles
Browse latest Browse all 4524

Trending Articles