上一页 1 ··· 208 209 210 211 212 213 214 215 216 ··· 617 下一页

2022年11月5日

摘要: data_buff[0]=0x01; data_buff[1]=0x00; data_buff[2]=0x00; // USBD_CUSTOM_HID_SendReport(&hUsbDeviceFS, data_buff, CUSTOM_HID_EPIN_SIZE); // HAL_GPIO_Wr 阅读全文
posted @ 2022-11-05 23:45 lydstory 阅读(473) 评论(0) 推荐(0)
摘要: 抓紧时间处理吧,要不时间太长,覆盖不了成本 阅读全文
posted @ 2022-11-05 23:27 lydstory 阅读(16) 评论(0) 推荐(0)
摘要: 为避免超时,最好设置状态值,在while 中检查进行处理在while 中检查cmd_packet这个是f407 用的,你重新定义一下cmd_packet第一个变量reportid 不变,其他的根据上位的命令来 5 和6才是out 阅读全文
posted @ 2022-11-05 21:42 lydstory 阅读(41) 评论(0) 推荐(0)

2022年11月4日

摘要: static void MX_GPIO_Init(void){ GPIO_InitTypeDef GPIO_InitStruct = {0}; GPIO_InitStruct.Pin = GPIO_PIN_13;//³õʼ»¯LED0 GPIO_InitStruct.Mode = GPIO_MOD 阅读全文
posted @ 2022-11-04 21:02 lydstory 阅读(30) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/jiangzhaowei/p/9264365.html stm32 __attribute__ 字节对齐在哪里设置 单片机都是1字节对齐吗? 高手回答:对,packed就是一个字节对齐 第一个字节要reportid 阅读全文
posted @ 2022-11-04 18:26 lydstory 阅读(271) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-11-04 09:40 lydstory 阅读(28) 评论(0) 推荐(0)
摘要: USAGE_PAGE (Alphanumeric Display) 05 14USAGE (Bitmapped Display) 09 02COLLECTION (Application) A1 01 USAGE (Display Attributes Report) 09 20 COLLECTIO 阅读全文
posted @ 2022-11-04 09:19 lydstory 阅读(52) 评论(0) 推荐(0)
摘要: 这个地方就是处理pc 往设备发数据的 注意out 是从pc 往设备in 是从设备往pc 就是接受后简单写一下led 阅读全文
posted @ 2022-11-04 09:08 lydstory 阅读(113) 评论(0) 推荐(0)
摘要: /** Usb HID report descriptor. */__ALIGN_BEGIN static uint8_t CUSTOM_HID_ReportDesc_FS[USBD_CUSTOM_HID_REPORT_DESC_SIZE] __ALIGN_END ={0x06, 0x00, 0xF 阅读全文
posted @ 2022-11-04 08:43 lydstory 阅读(109) 评论(0) 推荐(0)
摘要: patch、 这是f407 代码生成和最终版本之间的比较,请参考 改vid/pid, 改reporter 改dfu 模式 接收到以后用led 调试接果 以及在main 里面定时发送数据 阅读全文
posted @ 2022-11-04 08:20 lydstory 阅读(26) 评论(0) 推荐(0)
上一页 1 ··· 208 209 210 211 212 213 214 215 216 ··· 617 下一页

导航