mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Janitorial tab removal
This commit is contained in:
parent
586ed62467
commit
2412be1bd9
27 changed files with 367 additions and 408 deletions
27
cdcacm.cpp
27
cdcacm.cpp
|
@ -268,33 +268,6 @@ uint8_t ACM::Poll() {
|
||||||
if(!bPollEnable)
|
if(!bPollEnable)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
//uint32_t time_now = millis();
|
|
||||||
|
|
||||||
//if (qNextPollTime <= time_now)
|
|
||||||
//{
|
|
||||||
// qNextPollTime = time_now + 100;
|
|
||||||
|
|
||||||
// uint8_t rcode;
|
|
||||||
// const uint8_t constBufSize = 16;
|
|
||||||
// uint8_t buf[constBufSize];
|
|
||||||
|
|
||||||
// for (uint8_t i=0; i<constBufSize; i++)
|
|
||||||
// buf[i] = 0;
|
|
||||||
|
|
||||||
// uint16_t read = (constBufSize > epInfo[epInterruptInIndex].maxPktSize)
|
|
||||||
// ? epInfo[epInterruptInIndex].maxPktSize : constBufSize;
|
|
||||||
// rcode = pUsb->inTransfer(bAddress, epInfo[epInterruptInIndex].epAddr, &read, buf);
|
|
||||||
|
|
||||||
// if (rcode)
|
|
||||||
// return rcode;
|
|
||||||
|
|
||||||
// for (uint8_t i=0; i<read; i++)
|
|
||||||
// {
|
|
||||||
// PrintHex<uint8_t>(buf[i]);
|
|
||||||
// USB_HOST_SERIAL.print(" ");
|
|
||||||
// }
|
|
||||||
// USBTRACE("\r\n");
|
|
||||||
//}
|
|
||||||
return rcode;
|
return rcode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1233,22 +1233,10 @@ ReportDescParserBase::UsagePageFunc ReportDescParserBase::usagePageFunctions[] /
|
||||||
void ReportDescParserBase::SetUsagePage(uint16_t page) {
|
void ReportDescParserBase::SetUsagePage(uint16_t page) {
|
||||||
pfUsage = NULL;
|
pfUsage = NULL;
|
||||||
|
|
||||||
if(VALUE_BETWEEN(page, 0x00, 0x11))
|
if(VALUE_BETWEEN(page, 0x00, 0x11)) {
|
||||||
pfUsage = (usagePageFunctions[page - 1]);
|
pfUsage = (usagePageFunctions[page - 1]);
|
||||||
|
|
||||||
// Dead code...
|
} else {
|
||||||
//
|
|
||||||
// pfUsage = (UsagePageFunc)pgm_read_pointer(usagePageFunctions[page - 1]);
|
|
||||||
//else if (page > 0x7f && page < 0x84)
|
|
||||||
// E_Notify(pstrUsagePageMonitor);
|
|
||||||
//else if (page > 0x83 && page < 0x8c)
|
|
||||||
// E_Notify(pstrUsagePagePower);
|
|
||||||
//else if (page > 0x8b && page < 0x92)
|
|
||||||
// E_Notify((char*)pgm_read_pointer(&usagePageTitles1[page - 0x8c]));
|
|
||||||
//else if (page > 0xfeff && page <= 0xffff)
|
|
||||||
// E_Notify(pstrUsagePageVendorDefined);
|
|
||||||
//
|
|
||||||
else
|
|
||||||
switch(page) {
|
switch(page) {
|
||||||
case 0x14:
|
case 0x14:
|
||||||
pfUsage = &ReportDescParserBase::PrintAlphanumDisplayPageUsage;
|
pfUsage = &ReportDescParserBase::PrintAlphanumDisplayPageUsage;
|
||||||
|
@ -1258,6 +1246,7 @@ void ReportDescParserBase::SetUsagePage(uint16_t page) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void ReportDescParserBase::PrintUsagePage(uint16_t page) {
|
void ReportDescParserBase::PrintUsagePage(uint16_t page) {
|
||||||
const char * const * w;
|
const char * const * w;
|
||||||
|
|
|
@ -19,6 +19,8 @@ e-mail : support@circuitsathome.com
|
||||||
|
|
||||||
#include "hidusagestr.h"
|
#include "hidusagestr.h"
|
||||||
|
|
||||||
|
// This is here why?
|
||||||
|
|
||||||
//const char *usagePageTitles0[] PROGMEM =
|
//const char *usagePageTitles0[] PROGMEM =
|
||||||
//{
|
//{
|
||||||
// pstrUsagePageGenericDesktopControls ,
|
// pstrUsagePageGenericDesktopControls ,
|
||||||
|
|
|
@ -25,11 +25,6 @@ e-mail : support@circuitsathome.com
|
||||||
/* Arduino pin definitions */
|
/* Arduino pin definitions */
|
||||||
/* pin numbers to port numbers */
|
/* pin numbers to port numbers */
|
||||||
|
|
||||||
|
|
||||||
//#define MAX_INT 9 // Duemielanove
|
|
||||||
|
|
||||||
//#define MAX_GPX 8
|
|
||||||
|
|
||||||
#define SE0 0
|
#define SE0 0
|
||||||
#define SE1 1
|
#define SE1 1
|
||||||
#define FSHOST 2
|
#define FSHOST 2
|
||||||
|
|
Loading…
Reference in a new issue