summaryrefslogtreecommitdiff
path: root/firmware/src
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-11-09 23:24:13 +0100
committerHarald Welte <laforge@gnumonks.org>2011-11-10 07:33:53 +0100
commitc6f26629d28f07b8f0a8482924ff049f4ec7506d (patch)
tree310d0d7c83b421141354249233ba9a92af42cb67 /firmware/src
parent7ab4135217dc431134a988122528ecbaf344c574 (diff)
dfu: udp_ep0_recv_clean is static and is not called anywhere
Diffstat (limited to 'firmware/src')
-rw-r--r--firmware/src/dfu/dfu.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/firmware/src/dfu/dfu.c b/firmware/src/dfu/dfu.c
index 48f2cdc..9cd9996 100644
--- a/firmware/src/dfu/dfu.c
+++ b/firmware/src/dfu/dfu.c
@@ -144,20 +144,6 @@ static void __dfufunc udp_ep0_send_data(const char *pData, u_int32_t length)
}
}
-static void udp_ep0_recv_clean(void)
-{
- unsigned int i;
- u_int8_t dummy;
- const AT91PS_UDP pUdp = AT91C_BASE_UDP;
-
- while (!(pUdp->UDP_CSR[0] & AT91C_UDP_RX_DATA_BK0)) ;
-
- for (i = 0; i < (pUdp->UDP_CSR[0] >> 16); i++)
- dummy = pUdp->UDP_FDR[0];
-
- pUdp->UDP_CSR[0] &= ~(AT91C_UDP_RX_DATA_BK0);
-}
-
/* receive data from EP0 */
static int __dfufunc udp_ep0_recv_data(u_int8_t *data, u_int16_t len)
{
personal git repositories of Harald Welte. Your mileage may vary