Skip to content

Instantly share code, notes, and snippets.

@durka
Created November 3, 2012 04:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save durka/4005808 to your computer and use it in GitHub Desktop.
Save durka/4005808 to your computer and use it in GitHub Desktop.
require 'formula'
class Mspdebug < Formula
homepage 'http://mspdebug.sourceforge.net/'
url 'http://sourceforge.net/projects/mspdebug/files/mspdebug-0.20.tar.gz'
sha1 'ddf589e6e15c2577fc132001f757113309e134e9'
head 'git://mspdebug.git.sourceforge.net/gitroot/mspdebug/mspdebug'
depends_on 'libusb-compat'
if build.head?
def patches
DATA
end
end
def install
system "make", "PREFIX=#{prefix}", "install"
end
def caveats; <<-EOS.undent
You may need to install a kernel extension if you're having trouble with
RF2500-like devices such as the TI Launchpad:
http://mspdebug.sourceforge.net/faq.html#rf2500_osx
EOS
end
def test
system "#{bin}/mspdebug", "--help"
end
end
__END__
diff --git a/drivers/fet_db.c b/drivers/fet_db.c
index 3bcd2fe..c88cb6c 100644
--- a/drivers/fet_db.c
+++ b/drivers/fet_db.c
@@ -1467,7 +1467,7 @@ static const struct fet_db_record fet_db[] = {
/* extra: 89 00 00 00 00 00 00 00 */
},
.msg29_params = {0x00, 0x39, 0x31},
- .msg29_data = { /* Copied from MSP430G2452, with changes */
+ .msg29_data = {
0x00, 0xc0, 0xff, 0xff, 0x00, 0x00, 0x00, 0x10,
0xff, 0x10, 0x40, 0x00, 0x00, 0x02, 0xff, 0x03,
0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x01, 0x00,
@@ -1475,14 +1475,14 @@ static const struct fet_db_record fet_db[] = {
0x08, 0x07, 0x10, 0x0e, 0xc4, 0x09, 0x70, 0x17,
0x58, 0x1b, 0x01, 0x00, 0x03, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,
- 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
- 0x00, 0x00, 0x00, 0x00, 0x33, 0x0f, 0x1f, 0x0f,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x33, 0xff, 0x1f, 0xff,
0xff, 0xff
},
.msg2b_len = 0x4a,
.msg2b_data = { /* Copied from MSP430G2452 */
- 0x00, 0x0c, 0xff, 0x0f, 0x00, 0x02, 0x02, 0x00,
- 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00,
+ 0x02, 0x00, 0x40, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment