55 #if (IMR_MSK & ISTR_CTR)
56 if (
wIstr & ISTR_CTR & wInterrupt_Mask) {
66 #if (IMR_MSK & ISTR_RESET)
67 if (
wIstr & ISTR_RESET & wInterrupt_Mask) {
68 _SetISTR((uint16_t) CLR_RESET);
76 #if (IMR_MSK & ISTR_DOVR)
77 if (
wIstr & ISTR_DOVR & wInterrupt_Mask) {
78 _SetISTR((uint16_t) CLR_DOVR);
85 #if (IMR_MSK & ISTR_ERR)
86 if (
wIstr & ISTR_ERR & wInterrupt_Mask) {
87 _SetISTR((uint16_t) CLR_ERR);
94 #if (IMR_MSK & ISTR_WKUP)
95 if (
wIstr & ISTR_WKUP & wInterrupt_Mask) {
96 _SetISTR((uint16_t) CLR_WKUP);
104 #if (IMR_MSK & ISTR_SUSP)
105 if (
wIstr & ISTR_SUSP & wInterrupt_Mask) {
115 _SetISTR((uint16_t) CLR_SUSP);
122 #if (IMR_MSK & ISTR_SOF)
123 if (
wIstr & ISTR_SOF & wInterrupt_Mask) {
124 _SetISTR((uint16_t) CLR_SOF);
133 #if (IMR_MSK & ISTR_ESOF)
134 if (
wIstr & ISTR_ESOF & wInterrupt_Mask) {
135 _SetISTR((uint16_t) CLR_ESOF);
158 u32 STM32_PCD_OTG_ISR_Handler(
void)
160 USB_OTG_GINTSTS_TypeDef gintr_status;
163 if (USBD_FS_IsDeviceMode()) {
164 gintr_status.d32 = OTGD_FS_ReadCoreItr();
169 if (!gintr_status.d32) {
175 #ifdef INTR_ERLYSUSPEND
176 if (gintr_status.b.erlysuspend) {
177 retval |= OTGD_FS_Handle_EarlySuspend_ISR();
184 if (gintr_status.b.eopframe) {
185 retval |= OTGD_FS_Handle_EOPF_ISR();
191 #ifdef INTR_NPTXFEMPTY
192 if (gintr_status.b.nptxfempty) {
193 retval |= OTGD_FS_Handle_NPTxFE_ISR();
200 if (gintr_status.b.wkupintr) {
201 retval |= OTGD_FS_Handle_Wakeup_ISR();
207 #ifdef INTR_USBSUSPEND
208 if (gintr_status.b.usbsuspend) {
218 retval |= OTGD_FS_Handle_USBSuspend_ISR();
225 if (gintr_status.b.sofintr) {
229 retval |= OTGD_FS_Handle_Sof_ISR();
235 #ifdef INTR_RXSTSQLVL
236 if (gintr_status.b.rxstsqlvl) {
237 retval |= OTGD_FS_Handle_RxStatusQueueLevel_ISR();
244 if (gintr_status.b.enumdone) {
245 retval |= OTGD_FS_Handle_EnumDone_ISR();
252 if (gintr_status.b.usbreset) {
253 retval |= OTGD_FS_Handle_UsbReset_ISR();
260 if (gintr_status.b.inepint) {
261 retval |= OTGD_FS_Handle_InEP_ISR();
267 #ifdef INTR_OUTEPINTR
268 if (gintr_status.b.outepintr) {
269 retval |= OTGD_FS_Handle_OutEP_ISR();
275 #ifdef INTR_MODEMISMATCH
276 if (gintr_status.b.modemismatch) {
277 retval |= OTGD_FS_Handle_ModeMismatch_ISR();
283 #ifdef INTR_GINNAKEFF
284 if (gintr_status.b.ginnakeff) {
285 retval |= OTGD_FS_Handle_GInNakEff_ISR();
291 #ifdef INTR_GOUTNAKEFF
292 if (gintr_status.b.goutnakeff) {
293 retval |= OTGD_FS_Handle_GOutNakEff_ISR();
299 #ifdef INTR_ISOOUTDROP
300 if (gintr_status.b.isooutdrop) {
301 retval |= OTGD_FS_Handle_IsoOutDrop_ISR();
307 #ifdef INTR_EPMISMATCH
308 if (gintr_status.b.epmismatch) {
309 retval |= OTGD_FS_Handle_EPMismatch_ISR();
315 #ifdef INTR_INCOMPLISOIN
316 if (gintr_status.b.incomplisoin) {
317 retval |= OTGD_FS_Handle_IncomplIsoIn_ISR();
323 #ifdef INTR_INCOMPLISOOUT
324 if (gintr_status.b.outepintr) {
325 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)