rename NGX to ngx
add a bunch of stub header for dcd (175x_6x, 13xx, 18xx_43xx) add dcd_nxp_romdriver for handling usb rom driver add BIT_TEST_ in binary.h remove mw_usbd_hid.h include due to lexical conflict
This commit is contained in:
		@@ -54,12 +54,9 @@
 | 
			
		||||
 | 
			
		||||
#include "LPC11Uxx.h"
 | 
			
		||||
 | 
			
		||||
#define DEVICE_ROMDRIVER
 | 
			
		||||
#define DEVICE_ROM_REG_BASE LPC_USB_BASE
 | 
			
		||||
#define DEVICE_ROM_REG_BASE        LPC_USB_BASE
 | 
			
		||||
#define DEVICE_ROM_DRIVER_ADDR     0x1FFF1FF8
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
 extern "C" {
 | 
			
		||||
#endif
 | 
			
		||||
 
 | 
			
		||||
@@ -54,10 +54,6 @@
 | 
			
		||||
 | 
			
		||||
#include "LPC13Uxx.h"
 | 
			
		||||
 | 
			
		||||
#define DEVICE_ROMDRIVER
 | 
			
		||||
#define DEVICE_ROM_REG_BASE LPC_USB_BASE
 | 
			
		||||
#define DEVICE_ROM_DRIVER_ADDR     0x1FFF1FF8
 | 
			
		||||
 | 
			
		||||
#ifdef __cplusplus
 | 
			
		||||
 extern "C" {
 | 
			
		||||
#endif
 | 
			
		||||
 
 | 
			
		||||
@@ -69,8 +69,8 @@ tusb_error_t hal_init(void)
 | 
			
		||||
    hcd_controller_reset(0); // TODO where to place prototype
 | 
			
		||||
    LPC_USB0->USBMODE_H = LPC43XX_USBMODE_HOST | (LPC43XX_USBMODE_VBUS_HIGH << 5);
 | 
			
		||||
  #else // TODO OTG
 | 
			
		||||
    dcd_controller_reset(0);
 | 
			
		||||
    LPC_USB0->USBMODE_D = LPC43XX_USBMODE_DEVICE;
 | 
			
		||||
//    dcd_controller_reset(0);
 | 
			
		||||
//    LPC_USB0->USBMODE_D = LPC43XX_USBMODE_DEVICE;
 | 
			
		||||
    dcd_controller_connect(0);
 | 
			
		||||
  #endif
 | 
			
		||||
 | 
			
		||||
@@ -91,8 +91,8 @@ tusb_error_t hal_init(void)
 | 
			
		||||
    hcd_controller_reset(1); // TODO where to place prototype
 | 
			
		||||
    LPC_USB1->USBMODE_H = LPC43XX_USBMODE_HOST | (LPC43XX_USBMODE_VBUS_HIGH << 5);
 | 
			
		||||
  #else // TODO OTG
 | 
			
		||||
    dcd_controller_reset(1);
 | 
			
		||||
    LPC_USB0->USBMODE_D = LPC43XX_USBMODE_DEVICE;
 | 
			
		||||
//    dcd_controller_reset(1);
 | 
			
		||||
//    LPC_USB0->USBMODE_D = LPC43XX_USBMODE_DEVICE;
 | 
			
		||||
    dcd_controller_connect(1);
 | 
			
		||||
  #endif
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -58,9 +58,6 @@
 | 
			
		||||
 extern "C" {
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
#define DEVICE_ROMDRIVER
 | 
			
		||||
#define DEVICE_ROM_REG_BASE LPC_USB0_BASE // TODO USB1
 | 
			
		||||
#define DEVICE_ROM_DRIVER_ADDR     0x1040011C
 | 
			
		||||
 | 
			
		||||
static inline void hal_interrupt_enable(uint8_t controller_id)
 | 
			
		||||
{
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user