54 #if (IMR_MSK & ISTR_CTR)
55 if (
wIstr & ISTR_CTR & wInterrupt_Mask) {
65 #if (IMR_MSK & ISTR_RESET)
66 if (
wIstr & ISTR_RESET & wInterrupt_Mask) {
67 _SetISTR((uint16_t) CLR_RESET);
75 #if (IMR_MSK & ISTR_DOVR)
76 if (
wIstr & ISTR_DOVR & wInterrupt_Mask) {
77 _SetISTR((uint16_t) CLR_DOVR);
84 #if (IMR_MSK & ISTR_ERR)
85 if (
wIstr & ISTR_ERR & wInterrupt_Mask) {
86 _SetISTR((uint16_t) CLR_ERR);
93 #if (IMR_MSK & ISTR_WKUP)
94 if (
wIstr & ISTR_WKUP & wInterrupt_Mask) {
95 _SetISTR((uint16_t) CLR_WKUP);
103 #if (IMR_MSK & ISTR_SUSP)
104 if (
wIstr & ISTR_SUSP & wInterrupt_Mask) {
114 _SetISTR((uint16_t) CLR_SUSP);
121 #if (IMR_MSK & ISTR_SOF)
122 if (
wIstr & ISTR_SOF & wInterrupt_Mask) {
123 _SetISTR((uint16_t) CLR_SOF);
132 #if (IMR_MSK & ISTR_ESOF)
133 if (
wIstr & ISTR_ESOF & wInterrupt_Mask) {
134 _SetISTR((uint16_t) CLR_ESOF);
156 u32 STM32_PCD_OTG_ISR_Handler(
void)
158 USB_OTG_GINTSTS_TypeDef gintr_status;
161 if (USBD_FS_IsDeviceMode()) {
162 gintr_status.d32 = OTGD_FS_ReadCoreItr();
167 if (!gintr_status.d32) {
173 #ifdef INTR_ERLYSUSPEND
174 if (gintr_status.b.erlysuspend) {
175 retval |= OTGD_FS_Handle_EarlySuspend_ISR();
182 if (gintr_status.b.eopframe) {
183 retval |= OTGD_FS_Handle_EOPF_ISR();
189 #ifdef INTR_NPTXFEMPTY
190 if (gintr_status.b.nptxfempty) {
191 retval |= OTGD_FS_Handle_NPTxFE_ISR();
198 if (gintr_status.b.wkupintr) {
199 retval |= OTGD_FS_Handle_Wakeup_ISR();
205 #ifdef INTR_USBSUSPEND
206 if (gintr_status.b.usbsuspend) {
216 retval |= OTGD_FS_Handle_USBSuspend_ISR();
223 if (gintr_status.b.sofintr) {
227 retval |= OTGD_FS_Handle_Sof_ISR();
233 #ifdef INTR_RXSTSQLVL
234 if (gintr_status.b.rxstsqlvl) {
235 retval |= OTGD_FS_Handle_RxStatusQueueLevel_ISR();
242 if (gintr_status.b.enumdone) {
243 retval |= OTGD_FS_Handle_EnumDone_ISR();
250 if (gintr_status.b.usbreset) {
251 retval |= OTGD_FS_Handle_UsbReset_ISR();
258 if (gintr_status.b.inepint) {
259 retval |= OTGD_FS_Handle_InEP_ISR();
265 #ifdef INTR_OUTEPINTR
266 if (gintr_status.b.outepintr) {
267 retval |= OTGD_FS_Handle_OutEP_ISR();
273 #ifdef INTR_MODEMISMATCH
274 if (gintr_status.b.modemismatch) {
275 retval |= OTGD_FS_Handle_ModeMismatch_ISR();
281 #ifdef INTR_GINNAKEFF
282 if (gintr_status.b.ginnakeff) {
283 retval |= OTGD_FS_Handle_GInNakEff_ISR();
289 #ifdef INTR_GOUTNAKEFF
290 if (gintr_status.b.goutnakeff) {
291 retval |= OTGD_FS_Handle_GOutNakEff_ISR();
297 #ifdef INTR_ISOOUTDROP
298 if (gintr_status.b.isooutdrop) {
299 retval |= OTGD_FS_Handle_IsoOutDrop_ISR();
305 #ifdef INTR_EPMISMATCH
306 if (gintr_status.b.epmismatch) {
307 retval |= OTGD_FS_Handle_EPMismatch_ISR();
313 #ifdef INTR_INCOMPLISOIN
314 if (gintr_status.b.incomplisoin) {
315 retval |= OTGD_FS_Handle_IncomplIsoIn_ISR();
321 #ifdef INTR_INCOMPLISOOUT
322 if (gintr_status.b.outepintr) {
323 retval |= OTGD_FS_Handle_IncomplIsoOut_ISR();
void EP3_IN_Callback(void)
void(* pEpInt_IN[7])(void)
void EP2_OUT_Callback(void)
void EP2_IN_Callback(void)
void EP7_OUT_Callback(void)
Main PiOS header to include all the compiled in PiOS options.
void Resume(RESUME_STATE eResumeSetVal)
void EP5_OUT_Callback(void)
#define PIOS_IRQ_Epilogue()
USB HID layer functions header.
__IO bool fSuspendEnabled
void EP1_IN_Callback(void)
void EP4_OUT_Callback(void)
void EP6_IN_Callback(void)
void EP5_IN_Callback(void)
void EP1_OUT_Callback(void)
DEVICE_PROP Device_Property
void EP4_IN_Callback(void)
void USB_LP_CAN1_RX0_IRQHandler(void)
#define PIOS_IRQ_Prologue()
void EP3_OUT_Callback(void)
void EP7_IN_Callback(void)
void EP6_OUT_Callback(void)
void(* pEpInt_OUT[7])(void)