Add MSP430.dll version as macros to chipinfo.db

Report the version of MSP430.dll that was used to generate
chipinfo.db in info texts.

Signed-off-by: Tamas TEVESZ <ice@extreme.hu>
This commit is contained in:
Tamas TEVESZ 2013-12-12 00:27:55 +01:00 committed by Daniel Beer
parent 6501828e2d
commit a8922dcc0e
4 changed files with 19 additions and 2 deletions

View File

@ -1,6 +1,6 @@
/* MSP430 chip database /* MSP430 chip database
* *
* THIS FILE WAS GENERATED FROM MSP430.DLL v03.03.01.04 * THIS FILE WAS GENERATED FROM MSP430.DLL v3.3.1.4
* *
* Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
* *
@ -33,6 +33,12 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#define CI_DLL430_VERSION_MAJOR 3
#define CI_DLL430_VERSION_MINOR 3
#define CI_DLL430_VERSION_PATCH 1
#define CI_DLL430_VERSION_BUILD 4
#define CI_DLL430_VERSION_STRING "3.3.1.4"
static const struct chipinfo_funclet erase_fll = { static const struct chipinfo_funclet erase_fll = {
.code_size = 48, .code_size = 48,
.max_payload = 4, .max_payload = 4,

View File

@ -56,6 +56,7 @@
#include "pif.h" #include "pif.h"
#include "loadbsl.h" #include "loadbsl.h"
#include "fet3.h" #include "fet3.h"
#include "chipinfo.h"
#ifdef __CYGWIN__ #ifdef __CYGWIN__
#include <sys/cygwin.h> #include <sys/cygwin.h>
@ -326,6 +327,7 @@ static int parse_cmdline_args(int argc, char **argv,
case LOPT_VERSION: case LOPT_VERSION:
printc("%s", version_text); printc("%s", version_text);
printc("%s", chipinfo_copyright());
exit(0); exit(0);
case 'v': case 'v':
@ -447,7 +449,8 @@ int main(int argc, char **argv)
goto fail_sockets; goto fail_sockets;
} }
printc_dbg("%s\n", version_text); printc_dbg("%s", version_text);
printc_dbg("%s\n", chipinfo_copyright());
if (setup_driver(&args) < 0) { if (setup_driver(&args) < 0) {
ret = -1; ret = -1;
goto fail_driver; goto fail_driver;

View File

@ -96,3 +96,9 @@ const struct chipinfo_memory *chipinfo_find_mem_by_addr
return best; return best;
} }
const char *chipinfo_copyright(void)
{
return "Chip info database from MSP430.dll v"
CI_DLL430_VERSION_STRING " Copyright (C) 2013 TI, Inc.\n";
}

View File

@ -166,4 +166,6 @@ const struct chipinfo_memory *chipinfo_find_mem_by_addr
const struct chipinfo_memory *chipinfo_find_mem_by_name const struct chipinfo_memory *chipinfo_find_mem_by_name
(const struct chipinfo *info, const char *name); (const struct chipinfo *info, const char *name);
const char *chipinfo_copyright(void);
#endif #endif