Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
micropython
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
card10
micropython
Commits
2123ced3
Commit
2123ced3
authored
9 years ago
by
Paul Sokolovsky
Browse files
Options
Downloads
Patches
Plain Diff
esp8266/modesp: Add esf_free_bufs() debugging function.
Return number of free inernal WiFi buffers.
parent
3d830415
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
esp8266/modesp.c
+7
-0
7 additions, 0 deletions
esp8266/modesp.c
with
7 additions
and
0 deletions
esp8266/modesp.c
+
7
−
0
View file @
2123ced3
...
...
@@ -33,6 +33,7 @@
#include
"py/obj.h"
#include
"py/gc.h"
#include
"py/runtime.h"
#include
"py/mphal.h"
#include
"netutils.h"
#include
"queue.h"
#include
"ets_sys.h"
...
...
@@ -645,6 +646,11 @@ STATIC mp_obj_t esp_meminfo() {
}
STATIC
MP_DEFINE_CONST_FUN_OBJ_0
(
esp_meminfo_obj
,
esp_meminfo
);
STATIC
mp_obj_t
esp_esf_free_bufs
(
mp_obj_t
idx_in
)
{
return
MP_OBJ_NEW_SMALL_INT
(
ets_esf_free_bufs
(
mp_obj_get_int
(
idx_in
)));
}
STATIC
MP_DEFINE_CONST_FUN_OBJ_1
(
esp_esf_free_bufs_obj
,
esp_esf_free_bufs
);
STATIC
const
mp_map_elem_t
esp_module_globals_table
[]
=
{
{
MP_OBJ_NEW_QSTR
(
MP_QSTR___name__
),
MP_OBJ_NEW_QSTR
(
MP_QSTR_esp
)
},
...
...
@@ -664,6 +670,7 @@ STATIC const mp_map_elem_t esp_module_globals_table[] = {
{
MP_OBJ_NEW_QSTR
(
MP_QSTR_freemem
),
(
mp_obj_t
)
&
esp_freemem_obj
},
{
MP_OBJ_NEW_QSTR
(
MP_QSTR_meminfo
),
(
mp_obj_t
)
&
esp_meminfo_obj
},
{
MP_OBJ_NEW_QSTR
(
MP_QSTR_info
),
(
mp_obj_t
)
&
pyb_info_obj
},
// TODO delete/rename/move elsewhere
{
MP_OBJ_NEW_QSTR
(
MP_QSTR_esf_free_bufs
),
(
mp_obj_t
)
&
esp_esf_free_bufs_obj
},
#if MODESP_INCLUDE_CONSTANTS
{
MP_OBJ_NEW_QSTR
(
MP_QSTR_SLEEP_NONE
),
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment