forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
all: Enable features we use and disable stack check.
As much as possible is done with a variant but some modifications are still needed: - make our variant the default for simplicity - disable stack check, mainly because we call MicroPython code from multiple threads which makes the stack check impossible
- Loading branch information
Showing
8 changed files
with
62 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#include "py/objexcept.h" | ||
|
||
MP_DEFINE_EXCEPTION(ConnectionError, OSError) | ||
MP_DEFINE_EXCEPTION(TimeoutError, OSError) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#define MICROPY_ENABLE_SCHEDULER (0) | ||
#define MICROPY_PY_BUILTINS_HELP (1) | ||
#define MICROPY_PY_BUILTINS_HELP_MODULES (1) | ||
#define MICROPY_PY_BUILTINS_MEMORYVIEW_ITEMSIZE (1) | ||
#define MICROPY_PY_BUILTINS_NEXT2 (1) | ||
#define MICROPY_PY_BUILTINS_DESCRIPTOR (1) | ||
#define MICROPY_PY_BUILTINS_RANGE_BINOP (1) | ||
#define MICROPY_PY_BUILTINS_SLICE_INDICES (1) | ||
#define MICROPY_PY_COLLECTIONS_NAMEDTUPLE__ASDICT (1) | ||
#define MICROPY_PY_MATH_CONSTANTS (1) | ||
#define MICROPY_PY_MATH_FACTORIAL (1) | ||
#define MICROPY_PY_SYS_EXECUTABLE (1) | ||
#define MICROPY_PY_PLATFORM (1) | ||
#define MICROPY_PY_RANDOM_EXTRA_FUNCS (1) | ||
#define MICROPY_PY_RE_MATCH_GROUPS (1) | ||
#define MICROPY_PY_RE_MATCH_SPAN_START_END (1) | ||
#define MICROPY_PY_RE_SUB (1) | ||
#define MICROPY_REPL_EMACS_WORDS_MOVE (1) | ||
#define MICROPY_REPL_EMACS_EXTRA_WORDS_MOVE (1) | ||
|
||
extern const struct _mp_obj_type_t mp_type_ConnectionError; | ||
extern const struct _mp_obj_type_t mp_type_TimeoutError; | ||
#define MICROPY_PORT_EXTRA_BUILTINS \ | ||
{ MP_ROM_QSTR(MP_QSTR_ConnectionError), MP_ROM_PTR(&mp_type_ConnectionError) }, \ | ||
{ MP_ROM_QSTR(MP_QSTR_TimeoutError), MP_ROM_PTR(&mp_type_TimeoutError) }, \ | ||
// Extra line to avoid "backslash-newline at end of file" warning. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
PROG ?= micropython |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<Project> | ||
<PropertyGroup> | ||
<PyProg>micropython</PyProg> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PyExtModSource Include="..\..\extmod\modplatform.c" /> | ||
</ItemGroup> | ||
</Project> |