mpconfigport.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #include <stdint.h>
  2. // Type definitions for the specific machine
  3. typedef int32_t mp_int_t; // must be pointer size
  4. typedef uint32_t mp_uint_t; // must be pointer size
  5. typedef long mp_off_t;
  6. // Need to provide a declaration/definition of alloca()
  7. #if defined(__FreeBSD__) || defined(__NetBSD__)
  8. #include <stdlib.h>
  9. #else
  10. #include <alloca.h>
  11. #endif
  12. #define MICROPY_MPHALPORT_H "lib/micropython-port/mphalport.h"
  13. #define MICROPY_CONFIG_ROM_LEVEL (MICROPY_CONFIG_ROM_LEVEL_BASIC_FEATURES)
  14. #define MICROPY_ENABLE_COMPILER (1)
  15. #define MICROPY_ENABLE_GC (1)
  16. #define MICROPY_MIN_USE_CORTEX_CPU (1)
  17. #define MICROPY_MIN_USE_STM32_MCU (1)
  18. #define MICROPY_HW_BOARD_NAME "Flipper Zero"
  19. #define MICROPY_HW_MCU_NAME "STM32WB55RG"
  20. #define MICROPY_ENABLE_EXTERNAL_IMPORT (1)
  21. #define MICROPY_READER_VFS (1)
  22. #define MICROPY_PY_TIME (1)
  23. #define MICROPY_PY_TIME_TIME_TIME_NS (1)
  24. #define MICROPY_PY_RANDOM (1)
  25. #define MICROPY_PY_RANDOM_EXTRA_FUNCS (1)
  26. #define MICROPY_PY_RANDOM_SEED_INIT_FUNC (mp_flipper_seed_init())
  27. #define MICROPY_PY_MATH (0)
  28. #define MICROPY_PY_BUILTINS_COMPLEX (0)
  29. #define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_FLOAT)