Skip to content

Commit

Permalink
some stuff...
Browse files Browse the repository at this point in the history
  • Loading branch information
xxxajk committed Aug 14, 2017
1 parent b85e21c commit 291e742
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cdc_XR21B1411.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion cdcacm.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ class ACM : public USBDeviceConfig, public UsbConfigXtracter {
uint8_t Poll();

bool available(void) {

return false;
};

virtual uint8_t GetAddress() {
Expand Down
2 changes: 2 additions & 0 deletions cdcftdi.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,11 @@ class FTDIAsyncOper {
public:

virtual uint8_t OnInit(FTDI *pftdi) {
return 0;
};

virtual uint8_t OnRelease(FTDI *pftdi) {
return 0;
};
};

Expand Down
4 changes: 2 additions & 2 deletions hid.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class HID : public USBDeviceConfig, public UsbConfigXtracter {
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:

Expand All @@ -167,7 +167,7 @@ class HID : public USBDeviceConfig, public UsbConfigXtracter {
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);
Expand Down
2 changes: 1 addition & 1 deletion settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 291e742

Please sign in to comment.