-
- void Get_SerialNum(void)
- {
- uint32_t Device_Serial0, Device_Serial1, Device_Serial2;
-
- Device_Serial0 = *(__IO uint32_t*)(0x1FFFF7E8);
- Device_Serial1 = *(__IO uint32_t*)(0x1FFFF7EC);
- Device_Serial2 = *(__IO uint32_t*)(0x1FFFF7F0);
-
- Device_Serial0 += Device_Serial2;
-
- if (Device_Serial0 != 0)
- {
- IntToUnicode (Device_Serial0, &Virtual_Com_Port_StringSerial[2] , 8);
- IntToUnicode (Device_Serial1, &Virtual_Com_Port_StringSerial[18], 4);
- }
- }
-
1:上面代码的红色地址很是含糊
2:Get_SerialNum这个函数作用,这个在USB中起什么关键作用?
|