forked from Archive/PX4-Autopilot
nxpfmurt1062-v1:Add USB dev
This commit is contained in:
parent
56cf77a74c
commit
29eb27632a
|
@ -119,6 +119,8 @@
|
|||
#define IMXRT_USDHC1_CLK_SELECT CCM_CSCMR1_USDHC1_CLK_SEL_PLL2_PFD0
|
||||
#define IMXRT_USDHC1_PODF_DIVIDER 2
|
||||
|
||||
#define IMXRT_USB1_PLL_DIV_SELECT CCM_ANALOG_PLL_USB1_DIV_SELECT_20
|
||||
|
||||
#define IMXRT_SYS_PLL_SELECT CCM_ANALOG_PLL_SYS_DIV_SELECT_22
|
||||
|
||||
#define IMXRT_USB1_PLL_DIV_SELECT CCM_ANALOG_PLL_USB1_DIV_SELECT_20
|
||||
|
|
|
@ -110,6 +110,7 @@ CONFIG_IMXRT_LPUART_INVERT=y
|
|||
CONFIG_IMXRT_LPUART_SINGLEWIRE=y
|
||||
CONFIG_IMXRT_RTC_MAGIC_REG=1
|
||||
CONFIG_IMXRT_SNVS_LPSRTC=y
|
||||
CONFIG_IMXRT_USBDEV=y
|
||||
CONFIG_IMXRT_USDHC1=y
|
||||
CONFIG_IMXRT_USDHC1_INVERT_CD=y
|
||||
CONFIG_IMXRT_USDHC1_WIDTH_D1_D4=y
|
||||
|
|
|
@ -314,18 +314,3 @@ __EXPORT int board_app_initialize(uintptr_t arg)
|
|||
|
||||
return OK;
|
||||
}
|
||||
|
||||
// USB Stubs
|
||||
#include <nuttx/usb/usbdev.h>
|
||||
void arm_usbinitialize(void)
|
||||
{
|
||||
}
|
||||
|
||||
int usbdev_register(struct usbdevclass_driver_s *driver)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
int usbdev_unregister(struct usbdevclass_driver_s *driver)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue