summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorVipul Rahane <vipul@runtime.io>2016-07-12 16:22:39 -0700
committerVipul Rahane <vipul@runtime.io>2016-07-18 11:46:41 -0700
commitf1ff4abfe63c88dcd599fcea2743c3739cc32661 (patch)
tree80b21ec8f40ac2f97cfe149e15335aed6e0b54c9 /sys
parent8e930a76dfb515e0c08a8000a1bb418a1528a829 (diff)
MYNEWT-266 Newtmgr over BLE
- Enable remote configuration, remote soft reset, firmware upgrade - Adding a seperate package for BLE newtmgr transport - Adding BLE_HOST feature - Moving logs constants from source file to header file; Were causing issues while testing - Increasing imgmgr max msg size to 400; Can be increased further when we support higher MTUs with BLE - Increasing stack size and number of mbufs for bleprph - Creating a separate library for newtmgr over BLE
Diffstat (limited to 'sys')
-rw-r--r--sys/log/include/log/log.h8
-rw-r--r--sys/log/src/log_nmgr.c8
2 files changed, 8 insertions, 8 deletions
diff --git a/sys/log/include/log/log.h b/sys/log/include/log/log.h
index 3bd2c73c..f5772aab 100644
--- a/sys/log/include/log/log.h
+++ b/sys/log/include/log/log.h
@@ -157,6 +157,14 @@ struct log {
STAILQ_ENTRY(log) l_next;
};
+/* Newtmgr Log opcodes */
+#define LOGS_NMGR_OP_READ (0)
+#define LOGS_NMGR_OP_CLEAR (1)
+#define LOGS_NMGR_OP_APPEND (2)
+#define LOGS_NMGR_OP_MODULE_LIST (3)
+#define LOGS_NMGR_OP_LEVEL_LIST (4)
+#define LOGS_NMGR_OP_LOGS_LIST (5)
+
/* Log system level functions (for all logs.) */
int log_init(void);
struct log *log_list_get_next(struct log *);
diff --git a/sys/log/src/log_nmgr.c b/sys/log/src/log_nmgr.c
index dcb0f6ed..b1e90a0c 100644
--- a/sys/log/src/log_nmgr.c
+++ b/sys/log/src/log_nmgr.c
@@ -41,14 +41,6 @@ static int log_nmgr_logs_list(struct nmgr_jbuf *njb);
static struct nmgr_group log_nmgr_group;
-/* Newtmgr Log opcodes */
-#define LOGS_NMGR_OP_READ (0)
-#define LOGS_NMGR_OP_CLEAR (1)
-#define LOGS_NMGR_OP_APPEND (2)
-#define LOGS_NMGR_OP_MODULE_LIST (3)
-#define LOGS_NMGR_OP_LEVEL_LIST (4)
-#define LOGS_NMGR_OP_LOGS_LIST (5)
-
/* ORDER MATTERS HERE.
* Each element represents the command ID, referenced from newtmgr.
*/