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
GitLab 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
3a4ebf57
Commit
3a4ebf57
authored
8 years ago
by
Damien George
Browse files
Options
Downloads
Patches
Plain Diff
esp8266: Enable inline Xtensa assembler.
With this patch, @micropython.asm_xtensa can be used on the esp8266 port.
parent
f76b1bfa
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
esp8266/main.c
+1
-1
1 addition, 1 deletion
esp8266/main.c
esp8266/modesp.c
+2
-2
2 additions, 2 deletions
esp8266/modesp.c
esp8266/mpconfigport.h
+1
-0
1 addition, 0 deletions
esp8266/mpconfigport.h
esp8266/mpconfigport_512k.h
+2
-0
2 additions, 0 deletions
esp8266/mpconfigport_512k.h
with
6 additions
and
3 deletions
esp8266/main.c
+
1
−
1
View file @
3a4ebf57
...
@@ -58,7 +58,7 @@ STATIC void mp_reset(void) {
...
@@ -58,7 +58,7 @@ STATIC void mp_reset(void) {
MP_STATE_PORT
(
mp_kbd_exception
)
=
mp_obj_new_exception
(
&
mp_type_KeyboardInterrupt
);
MP_STATE_PORT
(
mp_kbd_exception
)
=
mp_obj_new_exception
(
&
mp_type_KeyboardInterrupt
);
MP_STATE_PORT
(
term_obj
)
=
MP_OBJ_NULL
;
MP_STATE_PORT
(
term_obj
)
=
MP_OBJ_NULL
;
MP_STATE_PORT
(
dupterm_arr_obj
)
=
MP_OBJ_NULL
;
MP_STATE_PORT
(
dupterm_arr_obj
)
=
MP_OBJ_NULL
;
#if MICROPY_EMIT_XTENSA
#if MICROPY_EMIT_XTENSA
|| MICROPY_EMIT_INLINE_XTENSA
extern
void
esp_native_code_init
(
void
);
extern
void
esp_native_code_init
(
void
);
esp_native_code_init
();
esp_native_code_init
();
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
esp8266/modesp.c
+
2
−
2
View file @
3a4ebf57
...
@@ -699,7 +699,7 @@ STATIC mp_obj_t esp_esf_free_bufs(mp_obj_t idx_in) {
...
@@ -699,7 +699,7 @@ STATIC mp_obj_t esp_esf_free_bufs(mp_obj_t idx_in) {
}
}
STATIC
MP_DEFINE_CONST_FUN_OBJ_1
(
esp_esf_free_bufs_obj
,
esp_esf_free_bufs
);
STATIC
MP_DEFINE_CONST_FUN_OBJ_1
(
esp_esf_free_bufs_obj
,
esp_esf_free_bufs
);
#if MICROPY_EMIT_XTENSA
#if MICROPY_EMIT_XTENSA
|| MICROPY_EMIT_INLINE_XTENSA
// We provide here a way of committing executable data to a region from
// We provide here a way of committing executable data to a region from
// which it can be executed by the CPU. There are 2 such writable regions:
// which it can be executed by the CPU. There are 2 such writable regions:
...
@@ -822,7 +822,7 @@ STATIC const mp_map_elem_t esp_module_globals_table[] = {
...
@@ -822,7 +822,7 @@ STATIC const mp_map_elem_t esp_module_globals_table[] = {
{
MP_OBJ_NEW_QSTR
(
MP_QSTR_malloc
),
(
mp_obj_t
)
&
esp_malloc_obj
},
{
MP_OBJ_NEW_QSTR
(
MP_QSTR_malloc
),
(
mp_obj_t
)
&
esp_malloc_obj
},
{
MP_OBJ_NEW_QSTR
(
MP_QSTR_free
),
(
mp_obj_t
)
&
esp_free_obj
},
{
MP_OBJ_NEW_QSTR
(
MP_QSTR_free
),
(
mp_obj_t
)
&
esp_free_obj
},
{
MP_OBJ_NEW_QSTR
(
MP_QSTR_esf_free_bufs
),
(
mp_obj_t
)
&
esp_esf_free_bufs_obj
},
{
MP_OBJ_NEW_QSTR
(
MP_QSTR_esf_free_bufs
),
(
mp_obj_t
)
&
esp_esf_free_bufs_obj
},
#if MICROPY_EMIT_XTENSA
#if MICROPY_EMIT_XTENSA
|| MICROPY_EMIT_INLINE_XTENSA
{
MP_OBJ_NEW_QSTR
(
MP_QSTR_set_native_code_location
),
(
mp_obj_t
)
&
esp_set_native_code_location_obj
},
{
MP_OBJ_NEW_QSTR
(
MP_QSTR_set_native_code_location
),
(
mp_obj_t
)
&
esp_set_native_code_location_obj
},
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
esp8266/mpconfigport.h
+
1
−
0
View file @
3a4ebf57
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
#define MICROPY_ALLOC_PARSE_CHUNK_INIT (64)
#define MICROPY_ALLOC_PARSE_CHUNK_INIT (64)
#define MICROPY_PERSISTENT_CODE_LOAD (1)
#define MICROPY_PERSISTENT_CODE_LOAD (1)
#define MICROPY_EMIT_XTENSA (1)
#define MICROPY_EMIT_XTENSA (1)
#define MICROPY_EMIT_INLINE_XTENSA (1)
#define MICROPY_MEM_STATS (0)
#define MICROPY_MEM_STATS (0)
#define MICROPY_DEBUG_PRINTERS (1)
#define MICROPY_DEBUG_PRINTERS (1)
#define MICROPY_DEBUG_PRINTER_DEST mp_debug_print
#define MICROPY_DEBUG_PRINTER_DEST mp_debug_print
...
...
This diff is collapsed.
Click to expand it.
esp8266/mpconfigport_512k.h
+
2
−
0
View file @
3a4ebf57
...
@@ -2,6 +2,8 @@
...
@@ -2,6 +2,8 @@
#undef MICROPY_EMIT_XTENSA
#undef MICROPY_EMIT_XTENSA
#define MICROPY_EMIT_XTENSA (0)
#define MICROPY_EMIT_XTENSA (0)
#undef MICROPY_EMIT_INLINE_XTENSA
#define MICROPY_EMIT_INLINE_XTENSA (0)
#undef MICROPY_FSUSERMOUNT
#undef MICROPY_FSUSERMOUNT
#define MICROPY_FSUSERMOUNT (0)
#define MICROPY_FSUSERMOUNT (0)
...
...
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