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>
Mon, 15 Nov 2021 10:37:12 +0000 (11:37 +0100)
commita3afa16a6d82f2381a764eac5d68a33a85cf9f7d
tree6b8c830fad7c2cd0eda52ab299b6f984ee8176b5
parent05d83c5771cf94aea64c9f0cfa587b6c975c2249
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