sdk-RP2040.py 600 B

1234567891011121314151617181920
  1. # WizIO 2022 Georgi Angelov
  2. # http://www.wizio.eu/
  3. # https://github.com/Wiz-IO/wizio-pico
  4. from os.path import join
  5. from SCons.Script import DefaultEnvironment, Builder
  6. from common import *
  7. def dev_init(env, platform):
  8. env.platform = platform
  9. env.framework_dir = env.PioPlatform().get_package_dir("framework-wizio-pico")
  10. env.libs = []
  11. dev_compiler(env)
  12. dev_create_template(env)
  13. env.Append(
  14. CPPDEFINES = [ "BAREMETAL" ],
  15. CPPPATH = [ join(env.framework_dir, env.sdk, "boards"), ]
  16. )
  17. dev_config_board(env)
  18. dev_finalize(env)