Part Number: CC2650
Tool/software: TI-RTOS
Hi everyone,
What steps do I need to implement (include, define, inicialize?) in order to use Log_infox().
Best Regards,
Rui Costa;
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: CC2650
Tool/software: TI-RTOS
Hi everyone,
What steps do I need to implement (include, define, inicialize?) in order to use Log_infox().
Best Regards,
Rui Costa;
Hi Rui,
Log_info() is implemented by the XDC runtime in RTSC (http://rtsc.eclipse.org/docs-tip/Main_Page) to allow a module to log information for itself. To call it, you would need to include xdc/runtime/Log.h in your C code. In order to set up, the Log module you need to configure it with a logger in your .cfg file:
var Defaults = xdc.useModule('xdc.runtime.Defaults');
var Diags = xdc.useModule('xdc.runtime.Diags');
var Log = xdc.useModule('xdc.runtime.Log');
/* override diags mask for your module of choice */
xdc.useModule('xdc.runtime.Main');
Diags.setMaskMeta("xdc.runtime.Main",
Diags.INFO,
Diags.ALWAYS_ON);
/* Create a logger */
var LoggerBuf = xdc.useModule('xdc.runtime.LoggerBuf');
var loggerBufP = new LoggerBuf.Params();
loggerBufP.numEntries = 64; /* 64 entries = 2 KB of memory */
var appLogger = LoggerBuf.create(loggerBufP);
appLogger.instance.name = "AppLogger";
/* set default logger */
Defaults.common$.logger = appLogger;
See the XDC runtime documentation for more details on the Log module: rtsc.eclipse.org/.../Log.html
Best regards,
Vincent