index 55cbb10c8e346bd1004225f0a44cc33328d061be..a551a4d3480f1094c42ed51c63fa466cbef1c078 100644 (file)
/*
- * Copyright (c) 2013, Texas Instruments Incorporated
+ * Copyright (c) 2013-2015 Texas Instruments Incorporated - http://www.ti.com
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
*
*/
-
-/* Standard headers */
-#include <Std.h>
+/* Standard IPC headers */
+#include <ti/ipc/Std.h>
/* Linux specific header files */
#include <assert.h>
#include <ti/ipc/MultiProc.h>
#include <_MultiProc.h>
+/* for Logging */
+#include <_lad.h>
+
/* =============================================================================
* APIs
/* Get the default configuration for the MultiProc module. */
Void MultiProc_getConfig (MultiProc_Config * cfg)
{
+ int i;
+ UInt16 baseId;
assert (cfg != NULL);
/* Setup MultiProc config */
memcpy (cfg, &_MultiProc_cfg, sizeof(MultiProc_Config));
+
+ LOG1("MultiProc_getConfig() - %d procs\n", _MultiProc_cfg.numProcessors);
+ LOG1("# processors in cluster: %d\n", _MultiProc_cfg.numProcsInCluster);
+ baseId = _MultiProc_cfg.baseIdOfCluster;
+ LOG1("cluster baseId: %d\n", baseId);
+
+ for (i = 0; i < _MultiProc_cfg.numProcsInCluster; i++) {
+ LOG2("\tProcId %d - \"%s\"\n", baseId + i, _MultiProc_cfg.nameList[i]);
+ }
}