Support for slac460s (loadDeviceDb)
This commit is contained in:
parent
abced5d1b4
commit
721a012e81
|
@ -225,6 +225,7 @@ struct tilib_new_api {
|
|||
int32_t TIDLL (*MSP430_GetNumberOfUsbIfs)(int32_t* number);
|
||||
int32_t TIDLL (*MSP430_GetNameOfUsbIf)(int32_t idx, char **name,
|
||||
int32_t *status);
|
||||
int32_t TIDLL (*MSP430_LoadDeviceDb)(const char *f); // needed for slac460s
|
||||
|
||||
/* MSP430_Debug.h */
|
||||
int32_t TIDLL (*MSP430_Registers)(int32_t *registers, int32_t mask,
|
||||
|
@ -261,6 +262,9 @@ static STATUS_T new_Initialize(char *port, long *version)
|
|||
if (r < 0)
|
||||
return r;
|
||||
|
||||
if (napi.MSP430_LoadDeviceDb)
|
||||
napi.MSP430_LoadDeviceDb(NULL);
|
||||
|
||||
*version = nv;
|
||||
return 0;
|
||||
}
|
||||
|
@ -495,6 +499,7 @@ static int init_new_api(void)
|
|||
if (!(napi.MSP430_GetNumberOfUsbIfs =
|
||||
get_func("MSP430_GetNumberOfUsbIfs")))
|
||||
return -1;
|
||||
napi.MSP430_LoadDeviceDb = dynload_sym(lib_handle, "MSP430_LoadDeviceDb");
|
||||
if (!(napi.MSP430_GetNameOfUsbIf = get_func("MSP430_GetNameOfUsbIf")))
|
||||
return -1;
|
||||
if (!(napi.MSP430_Registers = get_func("MSP430_Registers")))
|
||||
|
|
Loading…
Reference in New Issue