From 503d279af58538f8c00966c48f3ff862f4cde2a0 Mon Sep 17 00:00:00 2001 From: hathach Date: Sat, 8 Jun 2013 02:50:10 +0700 Subject: ADDING LPC176X device implementing dcd_lpc175x_6x.c add usbd_dcd.h add usbd_isr with TUSB_EVENT_SETUP_RECEIVED & TUSB_EVENT_BUS_RESET event parameterize TUSB_CFG_DEVICE_CONTROL_PACKET_SIZE (replace USB_MAX_PACKET0) --> able to get interrupt and receive setup packet, but SET ADDRESS (expected get device descriptor). uncomment write zero length will cause issue, no more interrupt ? --- tinyusb/common/binary.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tinyusb/common/binary.h') diff --git a/tinyusb/common/binary.h b/tinyusb/common/binary.h index 78305ea60..260175976 100644 --- a/tinyusb/common/binary.h +++ b/tinyusb/common/binary.h @@ -70,9 +70,9 @@ #if defined(__GNUC__) && !defined(__CC_ARM) -#define BIN8(x) (0b##x) -#define BIN16(b1, b2) (0b##b1##b2) -#define BIN32(b1, b2, b3, b4) (0b##b1##b2##b3##b4) +#define BIN8(x) ((uint8_t) (0b##x)) +#define BIN16(b1, b2) ((uint16_t) (0b##b1##b2)) +#define BIN32(b1, b2, b3, b4) ((uint32_t) (0b##b1##b2##b3##b4)) #else -- cgit v1.3.1