Fixed other trivial warnings in AVR USB core.

See #1877
This commit is contained in:
Cristian Maglie 2014-04-20 23:08:55 +02:00
parent 15d74b2530
commit b9f95980c7
3 changed files with 5 additions and 4 deletions

View File

@ -115,11 +115,11 @@ bool WEAK CDC_Setup(Setup& setup)
int _serialPeek = -1; int _serialPeek = -1;
void Serial_::begin(unsigned long baud_count) void Serial_::begin(unsigned long /* baud_count */)
{ {
} }
void Serial_::begin(unsigned long baud_count, byte config) void Serial_::begin(unsigned long /* baud_count */, byte /* config */)
{ {
} }

View File

@ -151,7 +151,7 @@ int WEAK HID_GetInterface(u8* interfaceNum)
return USB_SendControl(TRANSFER_PGM,&_hidInterface,sizeof(_hidInterface)); return USB_SendControl(TRANSFER_PGM,&_hidInterface,sizeof(_hidInterface));
} }
int WEAK HID_GetDescriptor(int i) int WEAK HID_GetDescriptor(int /* i */)
{ {
return USB_SendControl(TRANSFER_PGM,_hidReportDescriptor,sizeof(_hidReportDescriptor)); return USB_SendControl(TRANSFER_PGM,_hidReportDescriptor,sizeof(_hidReportDescriptor));
} }

View File

@ -94,7 +94,8 @@ volatile u8 _usbConfiguration = 0;
static inline void WaitIN(void) static inline void WaitIN(void)
{ {
while (!(UEINTX & (1<<TXINI))); while (!(UEINTX & (1<<TXINI)))
;
} }
static inline void ClearIN(void) static inline void ClearIN(void)