Логин или эл. почта:
Пароль:
#ifndef USB_INTR_CFG_SET /* allow user to override our default */ # if defined(USB_COUNT_SOF) || defined(USB_SOF_HOOK) # define USB_INTR_CFG_SET (1 << ISC11) /* cfg for falling edge */ /* If any SOF logic is used, the interrupt must be wired to D- where * we better trigger on falling edge */ # else # define USB_INTR_CFG_SET ((1 << ISC10) | (1 << ISC11)) /* cfg for rising edge */ # endif #endif #ifndef USB_INTR_CFG_CLR /* allow user to override our default */ # define USB_INTR_CFG_CLR 0 /* no bits to clear */ #endif #ifndef USB_INTR_ENABLE /* allow user to override our default */ # if defined GIMSK # define USB_INTR_ENABLE GIMSK # elif defined EIMSK # define USB_INTR_ENABLE EIMSK # else # define USB_INTR_ENABLE GICR # endif #endif #ifndef USB_INTR_ENABLE_BIT /* allow user to override our default */ # define USB_INTR_ENABLE_BIT INT1 #endif #ifndef USB_INTR_PENDING /* allow user to override our default */ # if defined EIFR # define USB_INTR_PENDING EIFR # else # define USB_INTR_PENDING GIFR # endif #endif #ifndef USB_INTR_PENDING_BIT /* allow user to override our default */ # define USB_INTR_PENDING_BIT INTF1 #endif
#define USB_INTR_CFG MCUCR #define USB_INTR_CFG_SET ((1 << ISC10) | (1 << ISC11)) #define USB_INTR_CFG_CLR 0 #define USB_INTR_ENABLE GICR #define USB_INTR_ENABLE_BIT INT1 #define USB_INTR_PENDING GIFR #define USB_INTR_PENDING_BIT INTF1 #define USB_INTR_VECTOR INT1_vect
← предыдущая следующая →
При подключении система говорит: «Неизвестное USB устройство», c INT0 всё отлично работает. Может что-то ещё надо поменять?