Skip to content

Commit

Permalink
feat: add matter menus
Browse files Browse the repository at this point in the history
  • Loading branch information
Otrebor671 committed Nov 26, 2024
1 parent eccb1c4 commit 543ecda
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 1 deletion.
19 changes: 18 additions & 1 deletion firmware/components/minino_config/Kconfig.projbuild
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ config THREAD_APPS_ENABLE
if THREAD_APPS_ENABLE

config THREAD_APP_BROADCAST
bool "Enable Boradcast App"
bool "Enable Broadcast App"
default true
help
Enable or disable the Thread Broadcast application.
Expand All @@ -672,6 +672,23 @@ config THREAD_APP_SNIFFER
Enable or disable the Thread Sniffer application.
endif # THREAD_APPS_ENABLE

################################# MATTER ###################################

config MATTER_APPS_ENABLE
bool "Enable Matter Apps"
default true
help
Enable or disable all Matter applications.

if MATTER_APPS_ENABLE

config MATTER_APP_SPAM
bool "Enable Matter Spam App"
default true
help
Enable or disable the Matter Spam application.
endif # MATTER_APPS_ENABLE

################################# GPS ###################################

config GPS_APPS_ENABLE
Expand Down
22 changes: 22 additions & 0 deletions firmware/main/modules/menus_module/menus_include/menus.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ typedef enum {
MENU_BLUETOOTH_APPS,
MENU_ZIGBEE_APPS,
MENU_THREAD_APPS,
MENU_MATTER_APPS,
MENU_GPS,
/* WiFi applications */
MENU_WIFI_ANALIZER,
Expand Down Expand Up @@ -68,6 +69,8 @@ typedef enum {
MENU_THREAD_SNIFFER,
/* Thread Sniffer App */
MENU_THREAD_SNIFFER_RUN,
/* Matter Sapm */
MENU_MATTER_SPAM,
/* GPS applications */
MENU_GPS_WARDRIVING,
MENU_GPS_DATE_TIME,
Expand Down Expand Up @@ -345,6 +348,25 @@ menu_t menus[] = { //////////////////////////////////
.is_visible = true},
#endif
#endif
#ifdef CONFIG_MATTER_APPS_ENABLE
{.display_name = "Matter",
.menu_idx = MENU_MATTER_APPS,
.parent_idx = MENU_APPLICATIONS,
.last_selected_submenu = 0,
.on_enter_cb = NULL,
.on_exit_cb = NULL,
.is_visible = true},
#ifdef CONFIG_MATTER_APP_SPAM
{.display_name = "Matter Spam",
.menu_idx = MENU_MATTER_SPAM,
.parent_idx = MENU_MATTER_APPS,
.entry_cmd = "matter_spam",
.last_selected_submenu = 0,
.on_enter_cb = NULL,
.on_exit_cb = NULL,
.is_visible = true},
#endif
#endif
#ifdef CONFIG_GPS_APPS_ENABLE
{.display_name = "GPS",
.menu_idx = MENU_GPS,
Expand Down
3 changes: 3 additions & 0 deletions firmware/sdkconfig.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ CONFIG_ZIGBEE_APP_SNIFFER=y
CONFIG_THREAD_APPS_ENABLE=y
CONFIG_THREAD_APP_BROADCAST=y
CONFIG_THREAD_APP_SNIFFER=y
## MATTER ##
CONFIG_MATTER_APPS_ENABLE=y
CONFIG_MATTER_APP_SPAM=y
## GPS ##
CONFIG_GPS_APPS_ENABLE=y
CONFIG_GPS_APP_WARDRIVING=y
Expand Down

0 comments on commit 543ecda

Please sign in to comment.