Fix chip/stm32_usbdev.c:929:20: error: unused function 'stm32_setstatusout'

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-11-19 13:02:51 +08:00 committed by Petro Karashchenko
parent 6af9afaa60
commit 720acac6af
3 changed files with 0 additions and 65 deletions

View File

@ -406,8 +406,6 @@ static inline void
stm32_seteptype(uint8_t epno, uint16_t type); stm32_seteptype(uint8_t epno, uint16_t type);
static inline void static inline void
stm32_seteptxaddr(uint8_t epno, uint16_t addr); stm32_seteptxaddr(uint8_t epno, uint16_t addr);
static inline void
stm32_setstatusout(uint8_t epno);
static inline void static inline void
stm32_clrstatusout(uint8_t epno); stm32_clrstatusout(uint8_t epno);
static void stm32_clrrxdtog(uint8_t epno); static void stm32_clrrxdtog(uint8_t epno);
@ -922,26 +920,6 @@ static inline void stm32_seteptype(uint8_t epno, uint16_t type)
stm32_putreg(regval, epaddr); stm32_putreg(regval, epaddr);
} }
/****************************************************************************
* Name: stm32_setstatusout
****************************************************************************/
static inline void stm32_setstatusout(uint8_t epno)
{
uint32_t epaddr = STM32_USB_EPR(epno);
uint16_t regval;
/* For a BULK endpoint the EP_KIND bit is used to enabled double buffering;
* for a CONTROL endpoint, it is set to indicate that a status OUT
* transaction is expected. The bit is not used with out endpoint types.
*/
regval = stm32_getreg(epaddr);
regval &= EPR_NOTOG_MASK;
regval |= USB_EPR_EP_KIND;
stm32_putreg(regval, epaddr);
}
/**************************************************************************** /****************************************************************************
* Name: stm32_clrstatusout * Name: stm32_clrstatusout
****************************************************************************/ ****************************************************************************/

View File

@ -387,8 +387,6 @@ static inline void
stm32_seteptype(uint8_t epno, uint16_t type); stm32_seteptype(uint8_t epno, uint16_t type);
static inline void static inline void
stm32_seteptxaddr(uint8_t epno, uint16_t addr); stm32_seteptxaddr(uint8_t epno, uint16_t addr);
static inline void
stm32_setstatusout(uint8_t epno);
static inline void static inline void
stm32_clrstatusout(uint8_t epno); stm32_clrstatusout(uint8_t epno);
static void stm32_clrrxdtog(uint8_t epno); static void stm32_clrrxdtog(uint8_t epno);
@ -904,26 +902,6 @@ static inline void stm32_seteptype(uint8_t epno, uint16_t type)
stm32_putreg(regval, epaddr); stm32_putreg(regval, epaddr);
} }
/****************************************************************************
* Name: stm32_setstatusout
****************************************************************************/
static inline void stm32_setstatusout(uint8_t epno)
{
uint32_t epaddr = STM32_USB_EPR(epno);
uint16_t regval;
/* For a BULK endpoint the EP_KIND bit is used to enabled double buffering;
* for a CONTROL endpoint, it is set to indicate that a status OUT
* transaction is expected. The bit is not used with out endpoint types.
*/
regval = stm32_getreg(epaddr);
regval &= EPR_NOTOG_MASK;
regval |= USB_EPR_EP_KIND;
stm32_putreg(regval, epaddr);
}
/**************************************************************************** /****************************************************************************
* Name: stm32_clrstatusout * Name: stm32_clrstatusout
****************************************************************************/ ****************************************************************************/

View File

@ -382,7 +382,6 @@ static inline uint16_t stm32_geteprxaddr(uint8_t epno);
static inline void stm32_setepaddress(uint8_t epno, uint16_t addr); static inline void stm32_setepaddress(uint8_t epno, uint16_t addr);
static inline void stm32_seteptype(uint8_t epno, uint16_t type); static inline void stm32_seteptype(uint8_t epno, uint16_t type);
static inline void stm32_seteptxaddr(uint8_t epno, uint16_t addr); static inline void stm32_seteptxaddr(uint8_t epno, uint16_t addr);
static inline void stm32_setstatusout(uint8_t epno);
static inline void stm32_clrstatusout(uint8_t epno); static inline void stm32_clrstatusout(uint8_t epno);
static void stm32_clrrxdtog(uint8_t epno); static void stm32_clrrxdtog(uint8_t epno);
static void stm32_clrtxdtog(uint8_t epno); static void stm32_clrtxdtog(uint8_t epno);
@ -866,26 +865,6 @@ static inline void stm32_seteptype(uint8_t epno, uint16_t type)
stm32_putreg(regval, epaddr); stm32_putreg(regval, epaddr);
} }
/****************************************************************************
* Name: stm32_setstatusout
****************************************************************************/
static inline void stm32_setstatusout(uint8_t epno)
{
uint32_t epaddr = STM32_USB_EPR(epno);
uint16_t regval;
/* For a BULK endpoint the EP_KIND bit is used to enabled double buffering;
* for a CONTROL endpoint, it is set to indicate that a status OUT
* transaction is expected. The bit is not used with out endpoint types.
*/
regval = stm32_getreg(epaddr);
regval &= EPR_NOTOG_MASK;
regval |= USB_EPR_EP_KIND;
stm32_putreg(regval, epaddr);
}
/**************************************************************************** /****************************************************************************
* Name: stm32_clrstatusout * Name: stm32_clrstatusout
****************************************************************************/ ****************************************************************************/