[tuxdroid-svn] r1055 - firmware/fuxusb/branches/HID/modules/usb
Status: Beta
Brought to you by:
ks156
From: Paul_R <c2m...@c2...> - 2008-04-30 15:21:23
|
Author: Paul_R Date: 2008-04-30 17:21:24 +0200 (Wed, 30 Apr 2008) New Revision: 1055 Modified: firmware/fuxusb/branches/HID/modules/usb/usb_task.c Log: * Typo Modified: firmware/fuxusb/branches/HID/modules/usb/usb_task.c =================================================================== --- firmware/fuxusb/branches/HID/modules/usb/usb_task.c 2008-04-30 15:18:24 UTC (rev 1054) +++ firmware/fuxusb/branches/HID/modules/usb/usb_task.c 2008-04-30 15:21:24 UTC (rev 1055) @@ -686,7 +686,8 @@ do { // Use Only one Call to Get 8 Bytes - FIFO_SPK_put(Usb_read_byte()); i--; + FIFO_SPK_put(Usb_read_byte()); + i--; }while(i); } Usb_clear_rx(); @@ -708,7 +709,8 @@ { Usb_clear_tx_complete(); // -> Enable a new Loading of the FIFO - EP_AUDIOIN_Loaded = 0; } + EP_AUDIOIN_Loaded = 0; + } } @@ -747,7 +749,8 @@ if(USBCommand_Header == LIBUSB_TUX_CMD_HDR) { if (!RF_OFFLINE) - USBCommand_NewRequest_Flag = 1; for(i=0;i<(USBCommand_Ctr-1);i++) + USBCommand_NewRequest_Flag = 1; + for(i=0;i<(USBCommand_Ctr-1);i++) USBCommand_ForRF[i] = Usb_read_byte(); tux_command_parser(USBCommand_ForRF, \ USBCommand_Ctr); @@ -1086,7 +1089,8 @@ // Config byte spi_slave_config = RF_AUDIO_HDR; // Header byte - SPDAT = spi_slave_config; } + SPDAT = spi_slave_config; + } } else { @@ -1171,10 +1175,12 @@ if (spi_master_config & RF_AUDIO_HDR) { P1_0 = 1; - received_data[spi_count-2] = SPDAT; } + received_data[spi_count-2] = SPDAT; + } if (spi_count == (spi_lenght_data + 1)) // Go to the next state - spi_master = READ_COMMAND; } + spi_master = READ_COMMAND; + } else if (spi_master == READ_COMMAND) { while (!(SPSTA == 0x80)) // Wait SPI response |