From 4362fbea2f0f1564b5715b331aaf212def10dfba Mon Sep 17 00:00:00 2001 From: James Nuss Date: Tue, 19 Jul 2011 10:18:13 +1200 Subject: [PATCH] Add support for MSP430F5418. --- AUTHORS | 3 +++ fet_db.c | 37 ++++++++++++++++++++++++++++++++++++- 2 files changed, 39 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index 2e09787..4120095 100644 --- a/AUTHORS +++ b/AUTHORS @@ -58,3 +58,6 @@ Paul Fleischer : Kurt Snieckus : * Testing and analysis for MSP430FR5739. + +James Nuss : + * Support for MSP430F5418. diff --git a/fet_db.c b/fet_db.c index bcf841c..4b16de5 100644 --- a/fet_db.c +++ b/fet_db.c @@ -1527,7 +1527,42 @@ static const struct fet_db_record fet_db[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 } - } + }, + { /* From captured data */ + .name = "MSP430F5418", + .msg28_data = { + 0x54, 0x18, 0x10, 0x10, 0x08, 0x0a, 0x25, 0x55, + 0x84, 0x46, 0x24, 0x00, 0x26, 0x00, 0xf8, 0xfe, + 0xff, 0xff + /* extra: 91 00 01 00 1a 00 00 05 */ + }, + .msg29_params = {0x00, 0x63, 0x5b}, + .msg29_data = { + 0x00, 0x5c, 0xff, 0x5b, 0x02, 0x00, 0x00, 0x18, + 0xff, 0x19, 0x80, 0x00, 0x00, 0x1c, 0xff, 0x5b, + 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x07, 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, 0x02, 0x02, 0x00, + 0x0a, 0x00, 0x40, 0x00, 0x0a, 0x91, 0x8e, 0x9d, + 0x00, 0x00, 0x28, 0x29, 0x2a, 0x2b, 0x8a, 0xd8, + 0x00, 0x00, 0x00, 0x00, 0x01, 0x01, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x01, + 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, + 0x00, 0x01, 0x00, 0x01, 0x00, 0x01, 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)