Compilation OK et exemple testé avec un device CDC
This commit is contained in:
		
							parent
							
								
									fbad598eb2
								
							
						
					
					
						commit
						0107ff8c51
					
				| @ -1,5 +1,15 @@ | ||||
| cmake_minimum_required(VERSION 3.13) | ||||
| 
 | ||||
| include(pico_sdk_import.cmake) | ||||
| 
 | ||||
| project(host_cdc_msc_hid C CXX ASM) | ||||
| set(CMAKE_C_STNDARD 11) | ||||
| set(CMAKE_CXX_STANDARD 17) | ||||
| set(PICO_EXAMPLES_PATH ${PROJECT_SOURCE_DIR}) | ||||
| 
 | ||||
| pico_sdk_init() | ||||
| 
 | ||||
| 
 | ||||
| add_executable(host_cdc_msc_hid) | ||||
| 
 | ||||
| # Example source | ||||
| @ -20,5 +30,9 @@ target_link_libraries(host_cdc_msc_hid PUBLIC pico_stdlib tinyusb_host tinyusb_b | ||||
| 
 | ||||
| pico_add_extra_outputs(host_cdc_msc_hid) | ||||
| 
 | ||||
| # add url via pico_set_program_url | ||||
| example_auto_set_url(host_cdc_msc_hid) | ||||
| 
 | ||||
| 
 | ||||
| add_custom_target(Flash | ||||
|     DEPENDS host_cdc_msc_hid | ||||
|     COMMAND sudo picotool load -f ${PROJECT_BINARY_DIR}/host_cdc_msc_hid.uf2 | ||||
| ) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user