usb-dbg: User Setting frame: Support Boot Order
Description:
- Support boot order feature for ocp debug card
- Change boot sequence data type from array to vector.
Design:
- The behavior of user set/get boot option on debug card will same
as the oem set/get boot order cmd. The functions 'getBootOrder'
and 'setBootOrder' are extracted from the OEM set/get boot order
cmd for OCP debug card operation to use.
Usage:
1. Press uart button to the host want to check.
2. Go to boot order in User Setting frame will get current
boot order.
3. After selecting the boot option, the option will be set
on the top of the order. And this boot sequence will be
get by BIOS and save after the host reboot.
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
Change-Id: If1a2d91f43133e1779f61719a9816f974e068da3
diff --git a/include/usb-dbg.hpp b/include/usb-dbg.hpp
index 0f6a0c7..e5102c4 100644
--- a/include/usb-dbg.hpp
+++ b/include/usb-dbg.hpp
@@ -124,7 +124,7 @@
{
uint8_t parent;
uint8_t item_num;
- char item_str[8][32];
+ std::string item_str[8];
uint8_t (*select)(uint8_t item);
};