STM/STM32_LIBRARIES/tm_stm32_usb_device_cdc.c
static void Get_SerialNum(void) {
	uint32_t deviceserial0, deviceserial1, deviceserial2;

	deviceserial0 = *(uint32_t*)DEVICE_ID1;
	deviceserial1 = *(uint32_t*)DEVICE_ID2;
	deviceserial2 = *(uint32_t*)DEVICE_ID3;

	deviceserial0 += deviceserial2;

	if (deviceserial0 != 0) {
		IntToUnicode (deviceserial0, &USBD_StringSerial[2] ,8);
		IntToUnicode (deviceserial1, &USBD_StringSerial[18] ,4);
	}
}
/**
  * @brief  Create the serial number string descriptor 
  * @param  None 
  * @retval None
  */
@brief  Create the serial number string descriptor
@param  None
@retval None
@brief Create the serial number string descriptor @param None @retval None
static void Get_SerialNum(void) {
	uint32_t deviceserial0, deviceserial1, deviceserial2;
	deviceserial0 = *(uint32_t*)DEVICE_ID1;
	deviceserial1 = *(uint32_t*)DEVICE_ID2;
	deviceserial2 = *(uint32_t*)DEVICE_ID3;
	deviceserial0 += deviceserial2;
	if (deviceserial0 != 0) {
		IntToUnicode (deviceserial0, &USBD_StringSerial[2] ,8);
		IntToUnicode (deviceserial1, &USBD_StringSerial[18] ,4);
	}
}
static void Get_SerialNum ( void ) { uint32_t deviceserial0 , deviceserial1 , deviceserial2 ; deviceserial0 = * ( uint32_t * ) DEVICE_ID1 ; deviceserial1 = * ( uint32_t * ) DEVICE_ID2 ; deviceserial2 = * ( uint32_t * ) DEVICE_ID3 ; deviceserial0 += deviceserial2 ; if ( deviceserial0 != 0 ) { IntToUnicode ( deviceserial0 , & USBD_StringSerial [ 2 ] , 8 ) ; IntToUnicode ( deviceserial1 , & USBD_StringSerial [ 18 ] , 4 ) ; } }
@brief  Create the serial number string descriptor
 @param  None
 @retval None
@brief Create the serial number string descriptor @param None @retval None