MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / write_usbhost_variables

Function write_usbhost_variables

device.py:364–374  ·  view source on GitHub ↗
(output_file, device_properties: ConfigParser)

Source from the content-addressed store, hash-verified

362 output_file.write("CONFIG_BT_NIMBLE_NVS_PERSIST=y\n")
363
364def write_usbhost_variables(output_file, device_properties: ConfigParser):
365 has_usbhost = get_boolean_property_or_false(device_properties, "hardware", "usbHostEnabled")
366 if has_usbhost:
367 output_file.write("# USB Host\n")
368 output_file.write("CONFIG_FATFS_VOLUME_COUNT=6\n")
369 output_file.write("CONFIG_VFS_MAX_COUNT=10\n")
370 output_file.write("CONFIG_USB_HOST_HUBS_SUPPORTED=y\n")
371 output_file.write("CONFIG_USB_HOST_DEBOUNCE_DELAY_MS=500\n")
372 output_file.write("CONFIG_USB_HOST_RESET_HOLD_MS=100\n")
373 output_file.write("CONFIG_USB_HOST_RESET_RECOVERY_MS=100\n")
374 output_file.write("CONFIG_USB_HOST_SET_ADDR_RECOVERY_MS=500\n")
375
376def write_custom_sdkconfig(output_file, device_properties: ConfigParser):
377 if "sdkconfig" in device_properties.sections():

Callers 1

write_propertiesFunction · 0.85

Calls 2

writeMethod · 0.45

Tested by

no test coverage detected