2019-07-16 15:58:29 +02:00
|
|
|
# name of your application
|
|
|
|
APPLICATION = micropython
|
|
|
|
|
|
|
|
# If no BOARD is found in the environment, use this default:
|
|
|
|
BOARD ?= native
|
|
|
|
|
|
|
|
# This has to be the absolute path to the RIOT base directory:
|
|
|
|
RIOTBASE ?= $(CURDIR)/../..
|
|
|
|
|
|
|
|
# select MicroPython package
|
|
|
|
USEPKG += micropython
|
|
|
|
|
|
|
|
# include boot.py as header
|
|
|
|
BLOBS += boot.py
|
|
|
|
|
|
|
|
# configure MicroPython's heap size
|
|
|
|
MP_RIOT_HEAPSIZE ?= 8192U
|
|
|
|
|
|
|
|
# MicroPython needs a larger stack
|
|
|
|
CFLAGS += '-DTHREAD_STACKSIZE_MAIN=THREAD_STACKSIZE_DEFAULT*4'
|
|
|
|
|
|
|
|
# use miniterm (instead of the default pyterm) in order to support control
|
|
|
|
# characters (CTRL-D ...)
|
|
|
|
RIOT_TERMINAL ?= miniterm
|
|
|
|
|
|
|
|
# enable modmachine support for peripherals if available
|
|
|
|
FEATURES_OPTIONAL += periph_adc
|
|
|
|
FEATURES_OPTIONAL += periph_spi
|
|
|
|
|
2019-12-19 08:56:49 +01:00
|
|
|
# For now `examples/%/tests" still rely on the test applicaton being reset after
|
|
|
|
# a terminal is opened to synchronize.
|
|
|
|
TESTRUNNER_RESET_AFTER_TERM ?= 1
|
|
|
|
|
2022-09-27 09:49:25 +02:00
|
|
|
# failing on native with floating point exception (#15870)
|
2024-02-20 13:12:20 +01:00
|
|
|
TEST_ON_CI_BLACKLIST += native native64
|
2022-09-27 09:49:25 +02:00
|
|
|
|
2023-05-26 10:43:35 +02:00
|
|
|
# avoid running Kconfig by default
|
|
|
|
SHOULD_RUN_KCONFIG ?=
|
|
|
|
|
2019-07-16 15:58:29 +02:00
|
|
|
include $(RIOTBASE)/Makefile.include
|