summaryrefslogtreecommitdiff
path: root/tinyusb/device/dcd_nxp_romdriver.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-05-29 16:56:15 +0700
committerhathach <[email protected]>2013-05-29 16:56:15 +0700
commit04a641f0670eb448f561aa945ecc2a7cf0365469 (patch)
tree794c92e42c21b9c2a765ab54a36497804c650b9d /tinyusb/device/dcd_nxp_romdriver.h
parentd5836751d913e2f7cb90bb1a4cdc95274d585a48 (diff)
ea4357 can be enumerated, but get setconfiugre value of 0
Diffstat (limited to 'tinyusb/device/dcd_nxp_romdriver.h')
-rw-r--r--tinyusb/device/dcd_nxp_romdriver.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tinyusb/device/dcd_nxp_romdriver.h b/tinyusb/device/dcd_nxp_romdriver.h
index 616240151..28e7e2989 100644
--- a/tinyusb/device/dcd_nxp_romdriver.h
+++ b/tinyusb/device/dcd_nxp_romdriver.h
@@ -54,8 +54,10 @@
#if (MCU == MCU_LPC18XX) || (MCU == MCU_LPC43XX)
#include "dcd_lpc18xx_lpc43xx.h"
+ #define ROM_API ( * ((USBD_API_T**) DEVICE_ROM_DRIVER_ADDR) )
#elif (MCU == MCU_LPC13UXX)
#include "dcd_lpc13xx.h"
+ #define ROM_API ( * (*((USBD_API_T***) DEVICE_ROM_DRIVER_ADDR)) )
#else
#error forgot something, thach ?
#endif