| 1 |
/* |
| 2 |
* This file is part of the MicroPython project, http://micropython.org/ |
| 3 |
* |
| 4 |
* The MIT License (MIT) |
| 5 |
* |
| 6 |
* Copyright (c) 2015 Damien P. George |
| 7 |
* |
| 8 |
* Permission is hereby granted, free of charge, to any person obtaining a copy |
| 9 |
* of this software and associated documentation files (the "Software"), to deal |
| 10 |
* in the Software without restriction, including without limitation the rights |
| 11 |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 12 |
* copies of the Software, and to permit persons to whom the Software is |
| 13 |
* furnished to do so, subject to the following conditions: |
| 14 |
* |
| 15 |
* The above copyright notice and this permission notice shall be included in |
| 16 |
* all copies or substantial portions of the Software. |
| 17 |
* |
| 18 |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 19 |
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 20 |
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 21 |
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 22 |
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 23 |
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
| 24 |
* THE SOFTWARE. |
| 25 |
*/ |
| 26 |
|
| 27 |
// options to control how MicroPython is built |
| 28 |
|
| 29 |
#define MICROPY_CONFIG_ROM_LEVEL (MICROPY_CONFIG_ROM_LEVEL_MINIMUM) |
| 30 |
|
| 31 |
// Disable native emitters. |
| 32 |
#define MICROPY_EMIT_X86 (0) |
| 33 |
#define MICROPY_EMIT_X64 (0) |
| 34 |
#define MICROPY_EMIT_THUMB (0) |
| 35 |
#define MICROPY_EMIT_ARM (0) |
| 36 |
|
| 37 |
// Tune the parser to use less RAM by default. |
| 38 |
#define MICROPY_ALLOC_QSTR_CHUNK_INIT (64) |
| 39 |
#define MICROPY_ALLOC_PARSE_RULE_INIT (8) |
| 40 |
#define MICROPY_ALLOC_PARSE_RULE_INC (8) |
| 41 |
#define MICROPY_ALLOC_PARSE_RESULT_INIT (8) |
| 42 |
#define MICROPY_ALLOC_PARSE_RESULT_INC (8) |
| 43 |
#define MICROPY_ALLOC_PARSE_CHUNK_INIT (64) |
| 44 |
|
| 45 |
// Enable features that are not enabled by default with the minimum config. |
| 46 |
#define MICROPY_COMP_CONST_FOLDING (1) |
| 47 |
#define MICROPY_COMP_CONST_LITERAL (1) |
| 48 |
#define MICROPY_COMP_CONST_TUPLE (1) |
| 49 |
#define MICROPY_COMP_DOUBLE_TUPLE_ASSIGN (1) |
| 50 |
#define MICROPY_ENABLE_COMPILER (1) |
| 51 |
#define MICROPY_ENABLE_EXTERNAL_IMPORT (1) |
| 52 |
#define MICROPY_FULL_CHECKS (1) |
| 53 |
#define MICROPY_HELPER_REPL (1) |
| 54 |
#define MICROPY_KBD_EXCEPTION (1) |
| 55 |
#define MICROPY_MODULE_GETATTR (1) |
| 56 |
#define MICROPY_MULTIPLE_INHERITANCE (1) |
| 57 |
#define MICROPY_PY_ASSIGN_EXPR (1) |
| 58 |
#define MICROPY_PY_ASYNC_AWAIT (1) |
| 59 |
#define MICROPY_PY_ATTRTUPLE (1) |
| 60 |
#define MICROPY_PY_BUILTINS_DICT_FROMKEYS (1) |
| 61 |
#define MICROPY_PY_BUILTINS_RANGE_ATTRS (1) |
| 62 |
#define MICROPY_PY_GENERATOR_PEND_THROW (1) |
| 63 |
|
| 64 |
// Enable just the sys and os built-in modules. |
| 65 |
#define MICROPY_PY_SYS (1) |
| 66 |
#define MICROPY_PY_OS (1) |