$OpenBSD: patch-fet_db_c,v 1.1 2011/07/08 14:52:38 jasper Exp $

From 1e21d9da8f923aa75aea01110b8cab81f5395ec0 Mon Sep 17 00:00:00 2001
From: Daniel Beer <dlbeer@gmail.com>
Date: Wed, 6 Jul 2011 09:32:36 +1200
Subject: [PATCH] Added support for MSP430FR5739.

Use "load" instead of "prog" for programming.

--- fet_db.c.orig	Tue Jun 14 03:27:10 2011
+++ fet_db.c	Fri Jul  8 16:50:32 2011
@@ -1493,6 +1493,41 @@ static const struct fet_db_record fet_db[] = {
 			0x00, 0x00
 		}
 	},
+	{ /* From captured data */
+		.name = "MSP430FR5739",
+		.msg28_data = {
+			0x03, 0x81, 0x20, 0x20, 0x08, 0x0a, 0xff, 0xff,
+			0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
+			0xbf, 0x4c
+			/* extra: 91 06 11 00 1a 00 04 05 */
+		},
+		.msg29_params = {0x00, 0xab, 0xa3},
+		.msg29_data = {
+			0x00, 0xc2, 0xff, 0xff, 0x00, 0x00, 0x00, 0x18,
+			0xff, 0x18, 0x00, 0x00, 0x00, 0x1c, 0xff, 0x1f,
+			0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x05, 0x00,
+			0x02, 0x00, 0x0f, 0x04, 0x00, 0x00, 0x00, 0x00,
+			0x08, 0x07, 0x10, 0x0e, 0xc4, 0x09, 0x70, 0x17,
+			0x58, 0x1b, 0x01, 0x00, 0x03, 0x00, 0x00, 0x00,
+			0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x00,
+			0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+			0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff,
+			0xff, 0xff
+		},
+		.msg2b_len = 0x4a,
+		.msg2b_data = {
+			0x00, 0x10, 0xff, 0x17, 0x00, 0x00, 0x01, 0x00,
+			0x04, 0x00, 0x00, 0x00, 0x0a, 0x8f, 0x8e, 0x99,
+			0x98, 0x97, 0x2d, 0x2c, 0x30, 0x00, 0x8a, 0xd6,
+			0xa8, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, 0x01,
+			0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00,
+			0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00,
+			0x00, 0x00, 0x01, 0x00, 0x01, 0x00, 0x00, 0x00,
+			0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+			0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
+			0x00, 0x00
+		}
+	}
 };
 
 const struct fet_db_record *fet_db_find_by_msg28(uint8_t *data, int len)
