mpconfigport.h 793 B

123456789101112131415161718192021222324252627282930
  1. #include <stdint.h>
  2. // Type definitions for the specific machine
  3. typedef intptr_t mp_int_t; // must be pointer size
  4. typedef uintptr_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_MINIMUM)
  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)