mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-10-30 21:02:32 +01:00 
			
		
		
		
	Added new SCSI_ASENSE_NOT_READY_TO_READY_CHANGE constant to the Mass Storage class driver, to indicate when a previously not ready removable medium has now become ready for the host's use (thanks to Martin Degelsegger)
This commit is contained in:
		
							parent
							
								
									4f114e5766
								
							
						
					
					
						commit
						ad4308b1d1
					
				| @ -70,11 +70,12 @@ | ||||
| 
 | ||||
| 		#define SCSI_ASENSE_NO_ADDITIONAL_INFORMATION          0x00 | ||||
| 		#define SCSI_ASENSE_LOGICAL_UNIT_NOT_READY             0x04 | ||||
| 		#define SCSI_ASENSE_INVALID_FIELD_IN_CDB               0x24 | ||||
| 		#define SCSI_ASENSE_WRITE_PROTECTED                    0x27 | ||||
| 		#define SCSI_ASENSE_FORMAT_ERROR                       0x31 | ||||
| 		#define SCSI_ASENSE_INVALID_COMMAND                    0x20 | ||||
| 		#define SCSI_ASENSE_LOGICAL_BLOCK_ADDRESS_OUT_OF_RANGE 0x21 | ||||
| 		#define SCSI_ASENSE_INVALID_FIELD_IN_CDB               0x24 | ||||
| 		#define SCSI_ASENSE_WRITE_PROTECTED                    0x27 | ||||
| 		#define SCSI_ASENSE_NOT_READY_TO_READY_CHANGE          0x28 | ||||
| 		#define SCSI_ASENSE_FORMAT_ERROR                       0x31 | ||||
| 		#define SCSI_ASENSE_MEDIUM_NOT_PRESENT                 0x3A | ||||
| 
 | ||||
| 		#define SCSI_ASENSEQ_NO_QUALIFIER                      0x00 | ||||
|  | ||||
| @ -70,11 +70,12 @@ | ||||
| 
 | ||||
| 		#define SCSI_ASENSE_NO_ADDITIONAL_INFORMATION          0x00 | ||||
| 		#define SCSI_ASENSE_LOGICAL_UNIT_NOT_READY             0x04 | ||||
| 		#define SCSI_ASENSE_INVALID_FIELD_IN_CDB               0x24 | ||||
| 		#define SCSI_ASENSE_WRITE_PROTECTED                    0x27 | ||||
| 		#define SCSI_ASENSE_FORMAT_ERROR                       0x31 | ||||
| 		#define SCSI_ASENSE_INVALID_COMMAND                    0x20 | ||||
| 		#define SCSI_ASENSE_LOGICAL_BLOCK_ADDRESS_OUT_OF_RANGE 0x21 | ||||
| 		#define SCSI_ASENSE_INVALID_FIELD_IN_CDB               0x24 | ||||
| 		#define SCSI_ASENSE_WRITE_PROTECTED                    0x27 | ||||
| 		#define SCSI_ASENSE_NOT_READY_TO_READY_CHANGE          0x28 | ||||
| 		#define SCSI_ASENSE_FORMAT_ERROR                       0x31 | ||||
| 		#define SCSI_ASENSE_MEDIUM_NOT_PRESENT                 0x3A | ||||
| 
 | ||||
| 		#define SCSI_ASENSEQ_NO_QUALIFIER                      0x00 | ||||
|  | ||||
| @ -176,6 +176,11 @@ | ||||
| 		/** SCSI Additional Sense Code to indicate an invalid field was encountered while processing the issued command. */ | ||||
| 		#define SCSI_ASENSE_INVALID_FIELD_IN_CDB               0x24 | ||||
| 
 | ||||
| 		/** SCSI Additional Sense Code to indicate that a medium that was previously indicated as not ready has now
 | ||||
| 		 *  become ready for use. | ||||
| 		 */ | ||||
| 		#define SCSI_ASENSE_NOT_READY_TO_READY_CHANGE          0x28 | ||||
| 
 | ||||
| 		/** SCSI Additional Sense Code to indicate that an attempt to write to a protected area was made. */ | ||||
| 		#define SCSI_ASENSE_WRITE_PROTECTED                    0x27 | ||||
| 
 | ||||
|  | ||||
| @ -7,6 +7,10 @@ | ||||
|  /** \page Page_ChangeLog Project Changelog | ||||
|   * | ||||
|   *  \section Sec_ChangeLogXXXXXX Version XXXXXX | ||||
|   *  <b>New:</b> | ||||
|   *  - Added new SCSI_ASENSE_NOT_READY_TO_READY_CHANGE constant to the Mass Storage class driver, to indicate when a previously | ||||
|   *    not ready removable medium has now become ready for the host's use (thanks to Martin Degelsegger) | ||||
|   * | ||||
|   *  <b>Changed:</b> | ||||
|   *  - Removed complicated logic for the Endpoint_ConfigureEndpoint() function to use inlined or function called versions | ||||
|   *    depending of if the given bank size is a compile time constant, as the compiler does a better job of optimizing | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Dean Camera
						Dean Camera