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:
parent
6501828e2d
commit
a8922dcc0e
|
@ -1,6 +1,6 @@
|
|||
/* 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/
|
||||
*
|
||||
|
@ -33,6 +33,12 @@
|
|||
* 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 = {
|
||||
.code_size = 48,
|
||||
.max_payload = 4,
|
||||
|
|
|
@ -56,6 +56,7 @@
|
|||
#include "pif.h"
|
||||
#include "loadbsl.h"
|
||||
#include "fet3.h"
|
||||
#include "chipinfo.h"
|
||||
|
||||
#ifdef __CYGWIN__
|
||||
#include <sys/cygwin.h>
|
||||
|
@ -326,6 +327,7 @@ static int parse_cmdline_args(int argc, char **argv,
|
|||
|
||||
case LOPT_VERSION:
|
||||
printc("%s", version_text);
|
||||
printc("%s", chipinfo_copyright());
|
||||
exit(0);
|
||||
|
||||
case 'v':
|
||||
|
@ -447,7 +449,8 @@ int main(int argc, char **argv)
|
|||
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) {
|
||||
ret = -1;
|
||||
goto fail_driver;
|
||||
|
|
|
@ -96,3 +96,9 @@ const struct chipinfo_memory *chipinfo_find_mem_by_addr
|
|||
|
||||
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";
|
||||
}
|
||||
|
|
|
@ -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 *info, const char *name);
|
||||
|
||||
const char *chipinfo_copyright(void);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue