mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
some stuff...
This commit is contained in:
parent
b85e21cf98
commit
291e742f2d
5 changed files with 7 additions and 5 deletions
|
@ -60,7 +60,7 @@ e-mail : support@circuitsathome.com
|
|||
#define XR_REG_ERROR_STATUS_OVERRUN (0x0010U) // RX OVERRUN ERROR
|
||||
#define XR_REG_ERROR_STATUS_PARITY (0x0020U) // PARITY ERROR
|
||||
#define XR_REG_ERROR_STATUS_FRAME (0x0040U) // FRAMING ERROR
|
||||
#define XR_REG_ERROR_STATUS_BREAK (0x0080U) // BREAK IS BEING DETECTED
|
||||
#define XR_REG_ERROR_STATUS_BREAKING (0x0080U) // BREAK IS BEING DETECTED
|
||||
|
||||
#define XR_REG_TX_BREAK (0x0C0AU) // TRANSMIT BREAK. 0X0001-0XFFE TIME IN MS, 0X0000 STOP, 0X0FFF BREAK ON
|
||||
|
||||
|
|
2
cdcacm.h
2
cdcacm.h
|
@ -203,7 +203,7 @@ public:
|
|||
uint8_t Poll();
|
||||
|
||||
bool available(void) {
|
||||
|
||||
return false;
|
||||
};
|
||||
|
||||
virtual uint8_t GetAddress() {
|
||||
|
|
|
@ -80,9 +80,11 @@ class FTDIAsyncOper {
|
|||
public:
|
||||
|
||||
virtual uint8_t OnInit(FTDI *pftdi) {
|
||||
return 0;
|
||||
};
|
||||
|
||||
virtual uint8_t OnRelease(FTDI *pftdi) {
|
||||
return 0;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
4
hid.h
4
hid.h
|
@ -156,7 +156,7 @@ protected:
|
|||
void PrintEndpointDescriptor(const USB_ENDPOINT_DESCRIPTOR* ep_ptr);
|
||||
void PrintHidDescriptor(const USB_HID_DESCRIPTOR *pDesc);
|
||||
|
||||
virtual HIDReportParser* GetReportParser(uint8_t id) {};
|
||||
virtual HIDReportParser* GetReportParser(uint8_t id) { return NULL;};
|
||||
|
||||
public:
|
||||
|
||||
|
@ -167,7 +167,7 @@ public:
|
|||
return pUsb;
|
||||
};
|
||||
|
||||
virtual bool SetReportParser(uint8_t id, HIDReportParser *prs) {};
|
||||
virtual bool SetReportParser(uint8_t id, HIDReportParser *prs) { return false; };
|
||||
|
||||
uint8_t SetProtocol(uint8_t iface, uint8_t protocol);
|
||||
uint8_t GetProtocol(uint8_t iface, uint8_t* dataptr);
|
||||
|
|
|
@ -123,7 +123,7 @@ e-mail : support@circuitsathome.com
|
|||
#define EXT_RAM 0
|
||||
#endif
|
||||
|
||||
#if defined(CORE_TEENSY) && (defined(__MK20DX128__) || defined(__MK20DX256__))
|
||||
#if defined(CORE_TEENSY) && (defined(__MK20DX128__) || defined(__MK20DX256__) || defined(__MK66FX1M0__))
|
||||
#define USING_SPI4TEENSY3 USE_SPI4TEENSY3
|
||||
#else
|
||||
#define USING_SPI4TEENSY3 0
|
||||
|
|
Loading…
Reference in a new issue