X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Flpc%2Fao_usb_lpc.c;h=9e94de12b1db05e8d3c4927eb6700a65103e028c;hb=50385fa8941b58192f8955b3873a75251cde5844;hp=594114b62ed856a8b4babc8f9ccf47f3597d9624;hpb=0686a7b8aec524d81bda4c572549a3a068ce0eed;p=fw%2Faltos diff --git a/src/lpc/ao_usb_lpc.c b/src/lpc/ao_usb_lpc.c index 594114b6..9e94de12 100644 --- a/src/lpc/ao_usb_lpc.c +++ b/src/lpc/ao_usb_lpc.c @@ -89,8 +89,6 @@ static uint8_t *ao_usb_out_rx_buffer[2]; static uint8_t ao_usb_out_rx_cur; static uint8_t ao_usb_rx_count, ao_usb_rx_pos; -extern struct lpc_usb_endpoint lpc_usb_endpoint; - /* Marks when we don't need to send an IN packet. * This happens only when the last IN packet is not full, * otherwise the host will expect to keep seeing packets. @@ -131,7 +129,7 @@ static inline uint32_t set_toggle(uint32_t current_value, * Set current device address and mark the * interface as active */ -void +static void ao_usb_set_address(uint8_t address) { debug("ao_usb_set_address %02x\n", address); @@ -813,7 +811,7 @@ _ao_usb_out_recv(void) ao_usb_set_epn_out(AO_USB_OUT_EP, ao_usb_out_rx_buffer[1-ao_usb_out_rx_cur], AO_USB_OUT_SIZE); } -int +static int _ao_usb_pollchar(void) { uint8_t c;