From c594cf12ed2174bb545a2ec2f6301675677f12e6 Mon Sep 17 00:00:00 2001
From: Damien George <damien.p.george@gmail.com>
Date: Sun, 22 Jan 2017 12:30:53 +1100
Subject: [PATCH] stmhal: Enable help('modules') feature.

---
 stmhal/help.c         | 1 +
 stmhal/mpconfigport.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/stmhal/help.c b/stmhal/help.c
index 1d4803f75..83ef7e596 100644
--- a/stmhal/help.c
+++ b/stmhal/help.c
@@ -67,4 +67,5 @@ const char *stmhal_help_text =
 "  CTRL-E        -- on a blank line, enter paste mode\n"
 "\n"
 "For further help on a specific object, type help(obj)\n"
+"For a list of available modules, type help('modules')\n"
 ;
diff --git a/stmhal/mpconfigport.h b/stmhal/mpconfigport.h
index 100c38e4f..e08d1593d 100644
--- a/stmhal/mpconfigport.h
+++ b/stmhal/mpconfigport.h
@@ -78,6 +78,7 @@
 #define MICROPY_PY_BUILTINS_COMPILE (1)
 #define MICROPY_PY_BUILTINS_HELP    (1)
 #define MICROPY_PY_BUILTINS_HELP_TEXT stmhal_help_text
+#define MICROPY_PY_BUILTINS_HELP_MODULES (1)
 #define MICROPY_PY_ALL_SPECIAL_METHODS (1)
 #define MICROPY_PY_MICROPYTHON_MEM_INFO (1)
 #define MICROPY_PY_ARRAY_SLICE_ASSIGN (1)
-- 
GitLab