re-create ngx4330.h
remove some rom driver dependency on upper layer introduce CAP_DEVICE_ROMDRIVER to overwrite TUSB_CFG_DEVICE_USE_ROM_DRIVER within the lib add support for lpc175x_6x - able to build and blink led on lpcxpresso1769 with device (without any class enabled)
This commit is contained in:
		| @@ -56,7 +56,6 @@ | ||||
| #endif | ||||
|  | ||||
| #include "common/common.h" | ||||
| #include "dcd_nxp_romdriver.h" | ||||
|  | ||||
| tusb_error_t dcd_init(void) ATTR_WARN_UNUSED_RESULT; | ||||
| tusb_error_t dcd_controller_reset(uint8_t coreid) ATTR_WARN_UNUSED_RESULT; | ||||
|   | ||||
| @@ -59,5 +59,18 @@ | ||||
| //--------------------------------------------------------------------+ | ||||
| // IMPLEMENTATION | ||||
| //--------------------------------------------------------------------+ | ||||
| void dcd_isr(uint8_t coreid) | ||||
| { | ||||
|  | ||||
| } | ||||
|  | ||||
| tusb_error_t dcd_init(void) | ||||
| { | ||||
|   return TUSB_ERROR_NONE; | ||||
| } | ||||
|  | ||||
| void dcd_controller_connect(uint8_t coreid) | ||||
| { | ||||
|  | ||||
| } | ||||
| #endif | ||||
|   | ||||
| @@ -38,7 +38,7 @@ | ||||
|  | ||||
| #include "tusb_option.h" | ||||
|  | ||||
| #if MODE_DEVICE_SUPPORTED && TUSB_CFG_DEVICE_USE_ROM_DRIVER | ||||
| #if MODE_DEVICE_SUPPORTED && (defined(CAP_DEVICE_ROMDRIVER) && TUSB_CFG_DEVICE_USE_ROM_DRIVER) | ||||
|  | ||||
| #define _TINY_USB_SOURCE_FILE_ | ||||
|  | ||||
| @@ -82,7 +82,7 @@ ErrorCode_t USB_Configure_Event (USBD_HANDLE_T hUsb) | ||||
|     usbd_info.state = TUSB_DEVICE_STATE_CONFIGURED; | ||||
|  | ||||
|     #if DEVICE_CLASS_HID | ||||
|     ASSERT( TUSB_ERROR_NONE == hidd_configured(hUsb), ERR_FAILED ); | ||||
|     ASSERT( TUSB_ERROR_NONE == hidd_configured(), ERR_FAILED ); | ||||
|     #endif | ||||
|  | ||||
|     #if TUSB_CFG_DEVICE_CDC | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 hathach
					hathach