mirror of
				https://github.com/espressif/esp-idf.git
				synced 2025-10-30 20:51:41 +00:00 
			
		
		
		
	 6a3bb3294d
			
		
	
	6a3bb3294d
	
	
	
		
			
			Previously, descriptors of the test devices were stored direclty in the mock device files (e.g., "mock_[hid|msc].[h|c]"). This commit splits out the device descriptors to separate files (e.g., "dev_[hid|msc].c") along with getter functions. Users that want to run the tests locally on a different device simply need to update the "dev_[hid|msc].c" file for their device.
		
			
				
	
	
		
			22 lines
		
	
	
		
			463 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			463 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
 | |
|  *
 | |
|  * SPDX-License-Identifier: Apache-2.0
 | |
|  */
 | |
| 
 | |
| #include <stdint.h>
 | |
| 
 | |
| #define MSC_ASYNC_CLIENT_MAX_EVENT_MSGS       5
 | |
| 
 | |
| typedef struct {
 | |
|     int num_sectors_to_read;
 | |
|     int num_sectors_per_xfer;
 | |
|     uint32_t msc_scsi_xfer_tag;
 | |
| } msc_client_test_param_t;
 | |
| 
 | |
| void msc_client_async_seq_task(void *arg);
 | |
| 
 | |
| void msc_client_async_dconn_task(void *arg);
 | |
| 
 | |
| void msc_client_async_enum_task(void *arg);
 |