dlbeer / mspdebug

Debugging tool for MSP430 MCUs
GNU General Public License v2.0
190 stars 80 forks source link

Add a function to the device struct to handle config fuses. #37

Closed CrazyCasta closed 7 years ago

CrazyCasta commented 7 years ago

Also provide a getconfigfuses implementation for the pif based drivers (pif and gpio).

CrazyCasta commented 7 years ago

P.S. Only for pif and gpio in this one. I have a bus pirate driver that also implements it, and I might get around to trying to implement it for the tilib if that's not already handled by tilib (which I think it might be). This is particularly necessary in order to unbrick an MSP-FET430UIF by certain methods as the chip inside (F1612) gets misread as one of it's other family members and is only distinguishable by fuses.

CrazyCasta commented 7 years ago

P.P.S. I've pushed my bus pirate code to the same branch, but wanted to keep them separate as this one involves a ton of adding _16 to a function name, but doesn't really change the meaning of the code whereas the bus pirate code is a ton of new code that's separate enough that it shouldn't affect the other drivers.

dlbeer commented 7 years ago

Great, thanks for that!