|
@@ -200,7 +200,9 @@ static portBASE_TYPE prvTaskAlarmCommand(cli_state_t *cli_state, int8_t *pcWrite
|
|
|
*/
|
|
|
static portBASE_TYPE prvTaskNotificationCommand(cli_state_t *cli_state, int8_t *pcWriteBuffer, size_t xWriteBufferLen,
|
|
|
const int8_t *pcCommandString );
|
|
|
+#endif
|
|
|
|
|
|
+#ifdef WHITELIST_ENABLE
|
|
|
/*
|
|
|
* Implements the whitelist command.
|
|
|
*/
|
|
@@ -365,7 +367,9 @@ static const CLI_Command_Definition_t prvNotificationCommandDefinition = {
|
|
|
prvTaskNotificationCommand, /* The function to run. */
|
|
|
-1 /* The user can enter any number of commands. */
|
|
|
};
|
|
|
+#endif
|
|
|
|
|
|
+#ifdef WHITELIST_ENABLE
|
|
|
/* Structure that defines the "whitelist" command line command. This
|
|
|
generates a table that shows how much run time each task has */
|
|
|
static const CLI_Command_Definition_t prvWhiteListCommandDefinition = {
|
|
@@ -421,7 +425,7 @@ generates a table that shows how much run time each task has */
|
|
|
static const CLI_Command_Definition_t prvSensorCommandDefinition = {
|
|
|
( const int8_t *const ) "sensor", /* The command string to type. */
|
|
|
( const int8_t *const ) "\tsensor info: вывод параметров системы (выход из режима Ctrl+C далее Enter)\r\n"
|
|
|
-#ifdef HARDWARE_BT6707
|
|
|
+#ifdef INOUTS_ENABLE
|
|
|
"\tsensor setup DI <num> <state>: установка нормального состояния сухого контакта:\r\n"
|
|
|
"\t\t\t\t0 - разомкнутое состояние\r\n"
|
|
|
"\t\t\t\t1 - замкнутое состояние\r\n"
|
|
@@ -2168,7 +2172,7 @@ static portBASE_TYPE prvTaskConfigCommand(cli_state_t *cli_state, int8_t *pcWrit
|
|
|
strncpy( ( char * ) pcWriteBuffer, ( const char * ) pcInfoTableHeader, strlen( ( char * ) pcInfoTableHeader ) );
|
|
|
snmp_config_param(pcWriteBuffer);
|
|
|
break;
|
|
|
-#ifdef HARDWARE_BT6707
|
|
|
+#ifdef INOUTS_ENABLE
|
|
|
case PARAM_CONFIG_INOUTS:
|
|
|
inouts_config_param(pcWriteBuffer);
|
|
|
break;
|
|
@@ -2179,7 +2183,7 @@ static portBASE_TYPE prvTaskConfigCommand(cli_state_t *cli_state, int8_t *pcWrit
|
|
|
case PARAM_CONFIG_ALARM:
|
|
|
alarm_config_param(pcWriteBuffer);
|
|
|
break;
|
|
|
-#ifdef HARDWARE_BT6709
|
|
|
+#ifdef WHITELIST_ENABLE
|
|
|
case PARAM_CONFIG_WHITELIST:
|
|
|
whitelist_config_param(pcWriteBuffer);
|
|
|
break;
|
|
@@ -2529,7 +2533,7 @@ static portBASE_TYPE prvTaskSensorCommand(cli_state_t *cli_state, int8_t *pcWrit
|
|
|
case 1:
|
|
|
ups_sensor_akb_param(pcWriteBuffer);
|
|
|
break;
|
|
|
-#ifdef HARDWARE_BT6707
|
|
|
+#ifdef INOUTS_ENABLE
|
|
|
case 2:
|
|
|
inouts_sensor_param(pcWriteBuffer);
|
|
|
break;
|