mpconfigport.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #include <stdint.h>
  2. // options to control how MicroPython is built
  3. #define MICROPY_QSTR_BYTES_IN_HASH (1)
  4. #define MICROPY_ALLOC_PATH_MAX (512)
  5. #define MICROPY_EMIT_X64 (0)
  6. #define MICROPY_EMIT_THUMB (0)
  7. #define MICROPY_EMIT_INLINE_THUMB (0)
  8. #define MICROPY_COMP_MODULE_CONST (0)
  9. #define MICROPY_COMP_CONST (0)
  10. #define MICROPY_COMP_DOUBLE_TUPLE_ASSIGN (0)
  11. #define MICROPY_COMP_TRIPLE_TUPLE_ASSIGN (0)
  12. #define MICROPY_MEM_STATS (0)
  13. #define MICROPY_DEBUG_PRINTERS (0)
  14. #define MICROPY_ENABLE_GC (0)
  15. #define MICROPY_HELPER_REPL (0)
  16. #define MICROPY_HELPER_LEXER_UNIX (0)
  17. #define MICROPY_ENABLE_SOURCE_LINE (0)
  18. #define MICROPY_ENABLE_DOC_STRING (0)
  19. #define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_TERSE)
  20. #define MICROPY_BUILTIN_METHOD_CHECK_SELF_ARG (0)
  21. #define MICROPY_PY_ASYNC_AWAIT (0)
  22. #define MICROPY_PY_BUILTINS_BYTEARRAY (0)
  23. #define MICROPY_PY_BUILTINS_MEMORYVIEW (0)
  24. #define MICROPY_PY_BUILTINS_ENUMERATE (0)
  25. #define MICROPY_PY_BUILTINS_FROZENSET (0)
  26. #define MICROPY_PY_BUILTINS_REVERSED (0)
  27. #define MICROPY_PY_BUILTINS_SET (0)
  28. #define MICROPY_PY_BUILTINS_SLICE (0)
  29. #define MICROPY_PY_BUILTINS_PROPERTY (0)
  30. #define MICROPY_PY___FILE__ (0)
  31. #define MICROPY_PY_GC (0)
  32. #define MICROPY_PY_ARRAY (0)
  33. #define MICROPY_PY_ATTRTUPLE (0)
  34. #define MICROPY_PY_COLLECTIONS (0)
  35. #define MICROPY_PY_MATH (0)
  36. #define MICROPY_PY_CMATH (0)
  37. #define MICROPY_PY_IO (0)
  38. #define MICROPY_PY_STRUCT (0)
  39. #define MICROPY_PY_SYS (0)
  40. #define MICROPY_CPYTHON_COMPAT (0)
  41. #define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_NONE)
  42. #define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_NONE)
  43. #define MICROPY_USE_INTERNAL_PRINTF (0)
  44. // type definitions for the specific machine
  45. #define MICROPY_MAKE_POINTER_CALLABLE(p) ((void*)((mp_uint_t)(p) | 1))
  46. #define UINT_FMT "%lu"
  47. #define INT_FMT "%ld"
  48. typedef int32_t mp_int_t; // must be pointer size
  49. typedef uint32_t mp_uint_t; // must be pointer size
  50. typedef long mp_off_t;
  51. // dummy print
  52. #define MP_PLAT_PRINT_STRN(str, len) (void)0
  53. // extra built in names to add to the global namespace
  54. #define MICROPY_PORT_BUILTINS \
  55. { MP_ROM_QSTR(MP_QSTR_open), MP_ROM_PTR(&mp_builtin_open_obj) },
  56. // We need to provide a declaration/definition of alloca()
  57. #include <alloca.h>