123456789101112131415161718192021222324252627282930313233343536373839 |
-
-
-
-
- import pioutil
- if pioutil.is_pio_build():
- Import("env")
-
- cxxflags = [
-
-
-
-
- ]
- if "teensy" not in env['PIOENV']:
- cxxflags += ["-Wno-register"]
- env.Append(CXXFLAGS=cxxflags)
-
-
-
-
- def add_cpu_freq():
- if 'BOARD_F_CPU' in env:
- env['BUILD_FLAGS'].append('-DBOARD_F_CPU=' + env['BOARD_F_CPU'])
-
-
-
-
-
-
-
- if env.GetBuildType() == "debug" and env.get('UPLOAD_PROTOCOL') not in ['jlink', 'stlink']:
- env['BUILD_DIR'] = '$PROJECT_BUILD_DIR/$PIOENV/debug'
-
-
-
-
-
- add_cpu_freq()
|