Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
806f07db
Commit
806f07db
authored
Sep 15, 2016
by
Deomid Ryabkov
Committed by
Cesanta Bot
Sep 15, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix MG_hello project build
PUBLISHED_FROM=450e5c045b6515fba0e0614c6d76a58712c72160
parent
6746933a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
213 additions
and
2 deletions
+213
-2
main.c
examples/CC3200/ccs/MG_hello/main.c
+1
-0
cs_dbg.h
examples/CC3200/cs_dbg.h
+70
-1
cs_dbg.h
examples/CC3200/cs_dbg.h
+70
-1
cs_dbg.h
examples/MSP432/ccs/MG_hello/cs_dbg.h
+70
-0
main.c
examples/MSP432/ccs/MG_hello/main.c
+1
-0
wifi.c
examples/MSP432/ccs/MG_hello/wifi.c
+1
-0
No files found.
examples/CC3200/ccs/MG_hello/main.c
View file @
806f07db
...
@@ -40,6 +40,7 @@
...
@@ -40,6 +40,7 @@
#include <simplelink/include/device.h>
#include <simplelink/include/device.h>
#include "cs_dbg.h"
#include "wifi.h"
#include "wifi.h"
void
fs_slfs_set_new_file_size
(
const
char
*
name
,
size_t
size
);
void
fs_slfs_set_new_file_size
(
const
char
*
name
,
size_t
size
);
...
...
examples/CC3200/cs_dbg.h
deleted
120000 → 0
View file @
6746933a
.
/
..
/
..
/
..
/
common
/
cs_dbg
.
h
\ No newline at end of file
examples/CC3200/cs_dbg.h
0 → 100644
View file @
806f07db
/*
* Copyright (c) 2014-2016 Cesanta Software Limited
* All rights reserved
*/
#ifndef CS_COMMON_CS_DBG_H_
#define CS_COMMON_CS_DBG_H_
#ifndef CS_DISABLE_STDIO
#include <stdio.h>
#endif
#ifdef __cplusplus
extern
"C"
{
#endif
/* __cplusplus */
enum
cs_log_level
{
LL_NONE
=
-
1
,
LL_ERROR
=
0
,
LL_WARN
=
1
,
LL_INFO
=
2
,
LL_DEBUG
=
3
,
LL_VERBOSE_DEBUG
=
4
,
_LL_MIN
=
-
2
,
_LL_MAX
=
5
,
};
void
cs_log_set_level
(
enum
cs_log_level
level
);
#ifndef CS_DISABLE_STDIO
void
cs_log_set_file
(
FILE
*
file
);
extern
enum
cs_log_level
cs_log_level
;
void
cs_log_print_prefix
(
const
char
*
func
);
void
cs_log_printf
(
const
char
*
fmt
,
...);
#define LOG(l, x) \
if (cs_log_level >= l) { \
cs_log_print_prefix(__func__); \
cs_log_printf x; \
}
#ifndef CS_NDEBUG
#define DBG(x) \
if (cs_log_level >= LL_VERBOSE_DEBUG) { \
cs_log_print_prefix(__func__); \
cs_log_printf x; \
}
#else
/* NDEBUG */
#define DBG(x)
#endif
#else
/* CS_DISABLE_STDIO */
#define LOG(l, x)
#define DBG(x)
#endif
#ifdef __cplusplus
}
#endif
/* __cplusplus */
#endif
/* CS_COMMON_CS_DBG_H_ */
examples/MSP432/ccs/MG_hello/cs_dbg.h
0 → 100644
View file @
806f07db
/*
* Copyright (c) 2014-2016 Cesanta Software Limited
* All rights reserved
*/
#ifndef CS_COMMON_CS_DBG_H_
#define CS_COMMON_CS_DBG_H_
#ifndef CS_DISABLE_STDIO
#include <stdio.h>
#endif
#ifdef __cplusplus
extern
"C"
{
#endif
/* __cplusplus */
enum
cs_log_level
{
LL_NONE
=
-
1
,
LL_ERROR
=
0
,
LL_WARN
=
1
,
LL_INFO
=
2
,
LL_DEBUG
=
3
,
LL_VERBOSE_DEBUG
=
4
,
_LL_MIN
=
-
2
,
_LL_MAX
=
5
,
};
void
cs_log_set_level
(
enum
cs_log_level
level
);
#ifndef CS_DISABLE_STDIO
void
cs_log_set_file
(
FILE
*
file
);
extern
enum
cs_log_level
cs_log_level
;
void
cs_log_print_prefix
(
const
char
*
func
);
void
cs_log_printf
(
const
char
*
fmt
,
...);
#define LOG(l, x) \
if (cs_log_level >= l) { \
cs_log_print_prefix(__func__); \
cs_log_printf x; \
}
#ifndef CS_NDEBUG
#define DBG(x) \
if (cs_log_level >= LL_VERBOSE_DEBUG) { \
cs_log_print_prefix(__func__); \
cs_log_printf x; \
}
#else
/* NDEBUG */
#define DBG(x)
#endif
#else
/* CS_DISABLE_STDIO */
#define LOG(l, x)
#define DBG(x)
#endif
#ifdef __cplusplus
}
#endif
/* __cplusplus */
#endif
/* CS_COMMON_CS_DBG_H_ */
examples/MSP432/ccs/MG_hello/main.c
View file @
806f07db
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
/* Mongoose.h brings in SimpleLink support. Do not include simplelink.h. */
/* Mongoose.h brings in SimpleLink support. Do not include simplelink.h. */
#include <mongoose.h>
#include <mongoose.h>
#include "cs_dbg.h"
#include "wifi.h"
#include "wifi.h"
static
const
char
*
upload_form
=
static
const
char
*
upload_form
=
...
...
examples/MSP432/ccs/MG_hello/wifi.c
View file @
806f07db
#include "cs_dbg.h"
#include "wifi.h"
#include "wifi.h"
#include "mongoose.h"
#include "mongoose.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment