arachnidlabs / cyflash

Bootloader tool for Cypress PSoC series microcontrollers.
BSD 2-Clause "Simplified" License
44 stars 23 forks source link

Using cyflash as a library #25

Open jabdoa2 opened 6 years ago

jabdoa2 commented 6 years ago

We (the Mission Pinball Framework) would like to use cyflash as a library to flash Open Pinball Project boards which use PSoC boards. We would like to use BootloaderHost and make_session in our code to flash multiple boards. Would you be up to a PR which would separate out the command line parts from bootloader.py to enable our use case?

jsiverskog commented 6 years ago

Is https://github.com/arachnidlabs/cyflash/commit/52fe71646db26b671c2e07da83721b94ce1d3911 enough for you?

jabdoa2 commented 6 years ago

No because bootloader.py still contains code outside functions and classes which will be executed on import (i guess)

jsiverskog commented 6 years ago

Please create a PR with your proposed changes.