| #ifndef SBP_FEATURE_DEF_BEGIN |
| #define SBP_FEATURE_DEF_BEGIN(X) |
| #endif |
| #ifndef SBP_FEATURE_DEF |
| #define SBP_FEATURE_DEF(FEATURE, ATTR, DESC, DESC_V0,DESC_V1, DEFAULT_VAL) |
| #endif |
| #ifndef SBP_FEATURE_DEF_END |
| #define SBP_FEATURE_DEF_END(X) |
| #endif |
| |
| /* |
| * #define SBP_FEATURE_DEF(FEATURE, ATTR, DESC, DESC_V0,DESC_V1, DEFAULT_VAL) |
| * |
| * - FEATURE: the sbp feature enum |
| * - ATTR: |
| * SBP_ATTR_NONE = 0, |
| * SBP_ATTR_NOT_RESET_NVRAM_WHEN_DYNAMIC_SBP_BIT = 0x01, // bit 1 is for current SBP NV will keep when Dynamic SBP change |
| * SBP_ATTR_ALL = 0xff, |
| * |
| * - DESC: the field description in sbp_nvram_editor.h |
| * - DESC_V0: the description for value 0 of field in sbp_nvram_editor.h |
| * - DESC_V1: the descriptino for value 1 of field in sbp_nvram_editor.h |
| * - DEFAULT_VAL: the default value defined in sbp_nvram_editor.h (the value may be replaced by sbp_nvram_config.c) |
| * |
| * Note: ifdef/ifndef is supported but only suggest to add option if necessary for readability |
| */ |
| |
| /******* SBP Doc Info Begin ******* |
| <SBP_DOC_INFO> |
| <HISTORY> |
| <RECORD Revision="V1" Date="2017-10-11">First Release for M21</RECORD> |
| </HISTORY> |
| </SBP_DOC_INFO> |
| ******* SBP Doc End ********/ |
| |
| /* 1st byte */ |
| SBP_FEATURE_DEF_BEGIN(0) |
| /****** SBP Document BEGIN ************************************************************************ |
| <SBP title="SBP_CUST_MAX"> |
| <DESCRIPTION> |
| |
| </DESCRIPTION> |
| <CATEGORY> |
| |
| </CATEGORY> |
| <CONFIG> |
| <VALUE value="0">Turn off. </VALUE> |
| <VALUE value="1">Turn on. </VALUE> |
| </CONFIG> |
| <DEFAULT>0</DEFAULT> |
| <OP> </OP> |
| <DEPENDENCY>N/A</DEPENDENCY> |
| <NOTE>N/A</NOTE> |
| <AUTHOR> </AUTHOR> |
| </SBP> |
| ******* SBP Document END **************************************************************************/ |
| SBP_FEATURE_DEF(SBP_CUST_MAX, SBP_ATTR_NONE, "Example for customer SBP", "Disabled", "Enabled", 0) |
| |
| SBP_FEATURE_DEF_END(0) |
| |
| #undef SBP_FEATURE_DEF_BEGIN |
| #undef SBP_FEATURE_DEF |
| #undef SBP_FEATURE_DEF_END |