File nut/arch/cm3/dev/stm/stm32_otgd_fs_int.c

(C) COPYRIGHT 2010 STMicroelectronics ******************** * File Name : otgd_fs_int.c * Author : MCD Application Team * Version : V3.1.1 * Date : 04/07/2010 * Description : Endpoint interrupt's service routines. ******************************************************************************** * THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS * WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. * AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, * INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE * CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING * INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.


Included Files


Preprocessor definitions

#define MAX_OUT_PKT_SIZE 160

Global Variable USBD_Data_Buffer

uint8_t USBD_Data_Buffer[160]
Visible in:   nut/arch/cm3/dev/stm/stm32_otgd_fs_int.c
Used in: OTGD_FS_Handle_RxStatusQueueLevel_ISR() nut/arch/cm3/dev/stm/stm32_otgd_fs_int.c

Global Variable IsocBuff

volatile uint8_t IsocBuff[(1*2)]
Visible in:   nut/arch/cm3/dev/stm/stm32_otgd_fs_int.c
Used in: OTGD_FS_Handle_RxStatusQueueLevel_ISR() nut/arch/cm3/dev/stm/stm32_otgd_fs_int.c

Global Variable IsocBufferIdx

volatile uint32_t IsocBufferIdx
Visible in:   nut/arch/cm3/dev/stm/stm32_otgd_fs_int.c
Used in: OTGD_FS_Handle_RxStatusQueueLevel_ISR() nut/arch/cm3/dev/stm/stm32_otgd_fs_int.c

Global Variable SaveRState

volatile uint16_t SaveRState
Visible in:   nut/arch/cm3/dev/stm/stm32_otgd_fs_int.c
Used in: OTGD_FS_Handle_InEP_ISR() nut/arch/cm3/dev/stm/stm32_otgd_fs_int.c

Global Variable SaveTState

volatile uint16_t SaveTState
Visible in:   nut/arch/cm3/dev/stm/stm32_otgd_fs_int.c
Used in: OTGD_FS_Handle_InEP_ISR() nut/arch/cm3/dev/stm/stm32_otgd_fs_int.c
  OTGD_FS_Handle_OutEP_ISR() nut/arch/cm3/dev/stm/stm32_otgd_fs_int.c

External Variables

core_regs
extern USB_OTG_CORE_REGS core_regs
Defined in: nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c

pEpInt_IN
extern void (*pEpInt_IN[7])(void)

pEpInt_OUT
extern void (*pEpInt_OUT[7])(void)


Global Function OTGD_FS_Handle_EOPF_ISR()

uint32_t OTGD_FS_Handle_EOPF_ISR ( void )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_int.h
Calls: NOP_Process()
References Variables: core_regs nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c

Global Function OTGD_FS_Handle_EPMismatch_ISR()

uint32_t OTGD_FS_Handle_EPMismatch_ISR ( void )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_int.h
Calls: NOP_Process()
References Variables: core_regs nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c

Global Function OTGD_FS_Handle_EarlySuspend_ISR()

uint32_t OTGD_FS_Handle_EarlySuspend_ISR ( void )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_int.h
Calls: NOP_Process()
References Variables: core_regs nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c

Global Function OTGD_FS_Handle_EnumDone_ISR()

uint32_t OTGD_FS_Handle_EnumDone_ISR ( void )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_int.h
Calls: OTGD_FS_EP0Activate() nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c
  OTGD_FS_PCD_GetDeviceSpeed() nut/arch/cm3/dev/stm/stm32_otgd_fs_int.c
  NOP_Process()
References Variables: core_regs nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c

Global Function OTGD_FS_Handle_GInNakEff_ISR()

uint32_t OTGD_FS_Handle_GInNakEff_ISR ( void )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_int.h
Calls: NOP_Process()

Global Function OTGD_FS_Handle_GOutNakEff_ISR()

uint32_t OTGD_FS_Handle_GOutNakEff_ISR ( void )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_int.h
Calls: NOP_Process()

Global Function OTGD_FS_Handle_InEP_ISR()

uint32_t OTGD_FS_Handle_InEP_ISR ( void )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_int.h
Calls: OTGD_FS_PCD_ReadDevInEP() nut/arch/cm3/dev/stm/stm32_otgd_fs_int.c
  OTGD_FS_PCD_WriteEmptyTxFifo() nut/arch/cm3/dev/stm/stm32_otgd_fs_int.c
  OTGD_FS_ReadDevAllInEPItr() nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c
  OTG_DEV_GetEPTxStatus() nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c
  OTG_DEV_SetEPRxStatus() nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c
  OTG_DEV_SetEPTxStatus() nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c
  In0_Process(), NOP_Process(), OTGD_FS_PCD_GetInEP()
References Variables: SaveRState nut/arch/cm3/dev/stm/stm32_otgd_fs_int.c
  SaveTState nut/arch/cm3/dev/stm/stm32_otgd_fs_int.c
  core_regs nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c
  pEpInt_IN

Global Function OTGD_FS_Handle_IncomplIsoIn_ISR()

uint32_t OTGD_FS_Handle_IncomplIsoIn_ISR ( void )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_int.h
Calls: NOP_Process()
References Variables: core_regs nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c

Global Function OTGD_FS_Handle_IncomplIsoOut_ISR()

uint32_t OTGD_FS_Handle_IncomplIsoOut_ISR ( void )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_int.h
Calls: NOP_Process()
References Variables: core_regs nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c

Global Function OTGD_FS_Handle_IsoOutDrop_ISR()

uint32_t OTGD_FS_Handle_IsoOutDrop_ISR ( void )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_int.h
Calls: NOP_Process()
References Variables: core_regs nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c

Global Function OTGD_FS_Handle_ModeMismatch_ISR()

uint32_t OTGD_FS_Handle_ModeMismatch_ISR ( void )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_int.h
Calls: NOP_Process()
References Variables: core_regs nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c

Global Function OTGD_FS_Handle_NPTxFE_ISR()

uint32_t OTGD_FS_Handle_NPTxFE_ISR ( void )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_int.h
Calls: NOP_Process()
References Variables: core_regs nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c

Global Function OTGD_FS_Handle_OutEP_ISR()

uint32_t OTGD_FS_Handle_OutEP_ISR ( void )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_int.h
Calls: OTGD_FS_ReadDevAllOutEp_itr() nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c
  OTGD_FS_ReadDevOutEP_itr() nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c
  OTG_DEV_SetEPTxStatus() nut/arch/cm3/dev/stm/stm32_otgd_fs_dev.c
  NOP_Process(), OTGD_FS_PCD_GetOutEP(), Out0_Process(), Setup0_Process()
References Variables: SaveTState nut/arch/cm3/dev/stm/stm32_otgd_fs_int.c
  core_regs nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c
  pEpInt_OUT

Global Function OTGD_FS_Handle_RxStatusQueueLevel_ISR()

uint32_t OTGD_FS_Handle_RxStatusQueueLevel_ISR ( void )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_int.h
Calls: OTGD_FS_ReadPacket() nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c
  NOP_Process(), OTGD_FS_PCD_GetOutEP()
References Variables: IsocBuff nut/arch/cm3/dev/stm/stm32_otgd_fs_int.c
  IsocBufferIdx nut/arch/cm3/dev/stm/stm32_otgd_fs_int.c
  USBD_Data_Buffer nut/arch/cm3/dev/stm/stm32_otgd_fs_int.c
  core_regs nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c

Global Function OTGD_FS_Handle_Sof_ISR()

uint32_t OTGD_FS_Handle_Sof_ISR ( void )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_int.h
Calls: NOP_Process()
References Variables: core_regs nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c

Global Function OTGD_FS_Handle_USBSuspend_ISR()

uint32_t OTGD_FS_Handle_USBSuspend_ISR ( void )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_int.h
Calls: NOP_Process()
References Variables: core_regs nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c

Global Function OTGD_FS_Handle_UsbReset_ISR()

uint32_t OTGD_FS_Handle_UsbReset_ISR ( void )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_int.h
Calls: OTGD_FS_FlushTxFifo() nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c
  NOP_Process(), OTGD_FS_PCD_EP0_OutStart()
References Variables: core_regs nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c

Global Function OTGD_FS_Handle_Wakeup_ISR()

uint32_t OTGD_FS_Handle_Wakeup_ISR ( void )
Prototyped in: nut/include/dev/usb_stm32/otgd_fs_int.h
Calls: NOP_Process()
References Variables: core_regs nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c

Local Function OTGD_FS_PCD_GetDeviceSpeed()

static enum usb_device_speed OTGD_FS_PCD_GetDeviceSpeed ( void )
Prototyped in: nut/arch/cm3/dev/stm/stm32_otgd_fs_int.c
Called by: OTGD_FS_Handle_EnumDone_ISR() nut/arch/cm3/dev/stm/stm32_otgd_fs_int.c
References Variables: core_regs nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c

Local Function OTGD_FS_PCD_ReadDevInEP()

static uint32_t OTGD_FS_PCD_ReadDevInEP ( USB_OTG_EP* ep )
Prototyped in: nut/arch/cm3/dev/stm/stm32_otgd_fs_int.c
Called by: OTGD_FS_Handle_InEP_ISR() nut/arch/cm3/dev/stm/stm32_otgd_fs_int.c
References Variables: core_regs nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c

Local Function OTGD_FS_PCD_WriteEmptyTxFifo()

static uint32_t OTGD_FS_PCD_WriteEmptyTxFifo ( uint32_t epnum )
Prototyped in: nut/arch/cm3/dev/stm/stm32_otgd_fs_int.c
Calls: OTGD_FS_WritePacket() nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c
  OTGD_FS_PCD_GetInEP()
Called by: OTGD_FS_Handle_InEP_ISR() nut/arch/cm3/dev/stm/stm32_otgd_fs_int.c
References Variables: core_regs nut/arch/cm3/dev/stm/stm32_otgd_fs_cal.c