#define USB_DP_OUT(x) JL_IOMC->USB_IO_CON0 = ((JL_IOMC->USB_IO_CON0 & ~BIT(0)) | ((x & 0x1)<<0))
#define USB_DM_OUT(x) JL_IOMC->USB_IO_CON0 = ((JL_IOMC->USB_IO_CON0 & ~BIT(1)) | ((x & 0x1)<<1))
#define USB_DP_DIR(x) JL_IOMC->USB_IO_CON0 = ((JL_IOMC->USB_IO_CON0 & ~BIT(2)) | ((x & 0x1)<<2))
#define USB_DM_DIR(x) JL_IOMC->USB_IO_CON0 = ((JL_IOMC->USB_IO_CON0 & ~BIT(3)) | ((x & 0x1)<<3))
#define USB_DP_PD(x) JL_IOMC->USB_IO_CON0 = ((JL_IOMC->USB_IO_CON0 & ~BIT(4)) | ((x & 0x1)<<4))
#define USB_DM_PD(x) JL_IOMC->USB_IO_CON0 = ((JL_IOMC->USB_IO_CON0 & ~BIT(5)) | ((x & 0x1)<<5))
杰理之USB DP DM做输入检测电平【篇】
最新推荐文章于 2023-11-06 08:51:10 发布