cmd: ums: add getting the default parameters from env
authorMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 17 Nov 2020 09:56:34 +0000 (10:56 +0100)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 16 Nov 2021 10:04:04 +0000 (11:04 +0100)
commitdd71a926e75655b6cc6deebfe234b0c1aba28884
tree49fa58ab2242f9f4d0140b72503361c50a08bbb4
parent70e15f697b88105946da12bf5f3b3d74b5ab57be
cmd: ums: add getting the default parameters from env

Add reading command parameters from the environment. The same environment
variables are used as for the "dfu" and "thor" commands. This allows to
specify USB controller ("dfu_usb_con"), device interface ("dfu_interface")
and device number ("dfu_device"). Such change allows to call "ums" without
any parameters for the default storage device.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: If725408159937dc50cb375d5c80455dac5cf9b37
cmd/usb_mass_storage.c