1 \r
2 %%{\r
3 /*!\r
4 * This template implements the Settings.xdc\r
5 */ \r
6 /* Versioning */\r
7 var ver = this;\r
8 for each(i=0;i<ver.length;i++)\r
9 {\r
10 if(String(ver[i]).length < 2)\r
11 {\r
12 ver[i]="0"+ver[i];\r
13 }\r
14 }\r
15 \r
16 var packageVersion = "\""+ver[0]+"."+ver[1]+"."+ver[2]+"."+ver[3]+"\"";\r
17 \r
18 %%}\r
19 \r
20 module Settings\r
21 {\r
22 config string spiVersionString = `packageVersion`;\r
23 /*! This variable is to control the SoC type selection.\r
24 * By default this variable is set to NULL.\r
25 * \r
26 * To use LLD for the selected device, add the following lines to config\r
27 * file and set the deviceType correctly:\r
28 *\r
29 * var spiSettings = xdc.useModule ('ti.drv.spi.Settings');\r
30 * spiSettings.socType = "am572x";\r
31 * \r
32 */\r
33 metaonly config string socType = "";\r
34 \r
35 /*! This flag is used to indicate whether or not the benchmarking code\r
36 * (defined in the profilingHooks class) will be used in the project.\r
37 * Note that a separate library has been compiled and will be used\r
38 * ($NAME).profiling.a($SUFFIX). This is set in the *.cfg file.\r
39 */\r
40 metaonly config string useDma = "false"; \r
41 /*! This flag is used to indicate whether or not the benchmarking code\r
42 * (defined in the profilingHooks class) will be used in the project.\r
43 * Note that a separate library has been compiled and will be used\r
44 * ($NAME).profiling.a($SUFFIX). This is set in the *.cfg file.\r
45 */\r
46 config Bool enableProfiling = false;\r
47 \r
48 /*! This variable is to control the device library type selection.\r
49 * By default this variable is set to release.\r
50 * \r
51 * To use CSL to use the debug/release library, add the following lines to config\r
52 * file and set the library profile accordingly:\r
53 * \r
54 * var Uart Settings = xdc.useModule ('ti.Uart.Settings');\r
55 * UartSettings.libProfile = "debug";\r
56 * \r
57 */\r
58 metaonly config string libProfile = "release"; \r
59 \r
60 }\r
61 \r