stm32/usbdev: Convert files to unix line endings.

Also remove trailing whitespace and convert tabs to spaces.
pull/3779/head
Damien George 2018-05-11 23:03:52 +10:00
rodzic 56a273ebff
commit abde0fa226
13 zmienionych plików z 4029 dodań i 4029 usunięć

Wyświetl plik

@ -45,10 +45,10 @@
/** @defgroup USB_INFO_Exported_Defines /** @defgroup USB_INFO_Exported_Defines
* @{ * @{
*/ */
#define MODE_SENSE6_LEN 8 #define MODE_SENSE6_LEN 8
#define MODE_SENSE10_LEN 8 #define MODE_SENSE10_LEN 8
#define LENGTH_INQUIRY_PAGE00 7 #define LENGTH_INQUIRY_PAGE00 7
#define LENGTH_FORMAT_CAPACITIES 20 #define LENGTH_FORMAT_CAPACITIES 20
/** /**
* @} * @}

Wyświetl plik

@ -104,8 +104,8 @@
#define MEDIUM_NOT_PRESENT 0x3A #define MEDIUM_NOT_PRESENT 0x3A
#define MEDIUM_HAVE_CHANGED 0x28 #define MEDIUM_HAVE_CHANGED 0x28
#define WRITE_PROTECTED 0x27 #define WRITE_PROTECTED 0x27
#define UNRECOVERED_READ_ERROR 0x11 #define UNRECOVERED_READ_ERROR 0x11
#define WRITE_FAULT 0x03 #define WRITE_FAULT 0x03
#define READ_FORMAT_CAPACITY_DATA_LEN 0x0C #define READ_FORMAT_CAPACITY_DATA_LEN 0x0C
#define READ_CAPACITY10_DATA_LEN 0x08 #define READ_CAPACITY10_DATA_LEN 0x08
@ -139,7 +139,7 @@ typedef struct _SENSE_ITEM {
char ASC; char ASC;
char ASCQ; char ASCQ;
}b; }b;
unsigned int ASC; unsigned int ASC;
char *pData; char *pData;
} w; } w;
} USBD_SCSI_SenseTypeDef; } USBD_SCSI_SenseTypeDef;

Wyświetl plik

@ -70,35 +70,35 @@
/* USB Mass storage Page 0 Inquiry Data */ /* USB Mass storage Page 0 Inquiry Data */
const uint8_t MSC_Page00_Inquiry_Data[] = {//7 const uint8_t MSC_Page00_Inquiry_Data[] = {//7
0x00, 0x00,
0x00, 0x00,
0x00, 0x00,
(LENGTH_INQUIRY_PAGE00 - 4), (LENGTH_INQUIRY_PAGE00 - 4),
0x00, 0x00,
0x80, 0x80,
0x83 0x83
}; };
/* USB Mass storage sense 6 Data */ /* USB Mass storage sense 6 Data */
const uint8_t MSC_Mode_Sense6_data[] = { const uint8_t MSC_Mode_Sense6_data[] = {
0x00, 0x00,
0x00, 0x00,
0x00, 0x00,
0x00, 0x00,
0x00, 0x00,
0x00, 0x00,
0x00, 0x00,
0x00 0x00
}; };
/* USB Mass storage sense 10 Data */ /* USB Mass storage sense 10 Data */
const uint8_t MSC_Mode_Sense10_data[] = { const uint8_t MSC_Mode_Sense10_data[] = {
0x00, 0x00,
0x06, 0x06,
0x00, 0x00,
0x00, 0x00,
0x00, 0x00,
0x00, 0x00,
0x00, 0x00,
0x00 0x00
}; };
/** /**
* @} * @}

Wyświetl plik

@ -404,8 +404,8 @@ static int8_t SCSI_RequestSense (USBD_HandleTypeDef *pdev, uint8_t lun, uint8_t
hmsc->bot_data[i] = 0; hmsc->bot_data[i] = 0;
} }
hmsc->bot_data[0] = 0x70; hmsc->bot_data[0] = 0x70;
hmsc->bot_data[7] = REQUEST_SENSE_DATA_LEN - 6; hmsc->bot_data[7] = REQUEST_SENSE_DATA_LEN - 6;
if((hmsc->scsi_sense_head != hmsc->scsi_sense_tail)) { if((hmsc->scsi_sense_head != hmsc->scsi_sense_tail)) {