summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2a57f47)
raw | patch | inline | side by side (parent: 2a57f47)
author | Sinthu Raja M <x0257345@ti.com> | |
Wed, 15 May 2019 10:41:48 +0000 (16:11 +0530) | ||
committer | Sinthu Raja M <x0257345@ti.com> | |
Mon, 3 Jun 2019 05:02:39 +0000 (10:32 +0530) |
Add CAL Example RTSC config file of AM65xx to load CSL
components and OSAL package during compilation.
components and OSAL package during compilation.
examples/am65xx/cal_am65xx_bios.cfg | [new file with mode: 0644] | patch | blob |
examples/cal_capture_test/makefile.mk | patch | blob | history | |
examples/cal_loopback_test/makefile.mk | patch | blob | history |
diff --git a/examples/am65xx/cal_am65xx_bios.cfg b/examples/am65xx/cal_am65xx_bios.cfg
--- /dev/null
@@ -0,0 +1,46 @@
+
+/* =============================================================================
+ * Copyright (c) Texas Instruments Incorporated 2019
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of Texas Instruments Incorporated nor the names of
+ * its contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+/* Load the SYSBIOS configuration config file */
+var biosCfg = xdc.loadCapsule("ti/build/am65xx/sysbios_a53.cfg");
+
+/* ================ Driver configuration ================ */
+var Csl = xdc.loadPackage('ti.csl');
+var deviceType = "am65xx";
+Csl.Settings.deviceType = deviceType;
+
+var socType = "am65xx";
+/* Load the OSAL package */
+var osType = "tirtos"
+var Osal = xdc.useModule('ti.osal.Settings');
+Osal.osType = osType;
\ No newline at end of file
index 8af700b93255a427a40061092df8620230ab9e86..2886be18f12a2aeb831111abd466c19a1e8fb529 100644 (file)
COMP_LIST_COMMON += osal_tirtos cal_app_utils
SRCS_COMMON = main_tirtos.c
# Enable XDC build for application by providing XDC CFG File per core
- XDC_CFG_FILE_$(CORE) = $(PDK_INSTALL_PATH)/ti/build/$(SOC)/sysbios_$(ISA).cfg
+ ifeq ($(ISA),$(filter $(ISA), a53))
+ XDC_CFG_FILE_$(CORE) = $(PDK_INSTALL_PATH)/ti/drv/cal/examples/$(SOC)/cal_$(SOC)_bios.cfg
+ else
+ XDC_CFG_FILE_$(CORE) = $(PDK_INSTALL_PATH)/ti/build/$(SOC)/sysbios_$(ISA).cfg
+ endif
endif
ifeq ($(CORE),$(filter $(CORE), mpu1_0 mpu1_1))
EXTERNAL_LNKCMD_FILE_LOCAL = $(PDK_CAL_COMP_PATH)/examples/utils/src/V0/linker_cal_a53.lds
endif
-PACKAGE_SRCS_COMMON = .
+PACKAGE_SRCS_COMMON = . ../$(SOC)
# Common source files and CFLAGS across all platforms and cores
SRCS_COMMON += CaptureCal_main.c
index f0e218c52986096a3d5f639ab35d19d4b5dcc95a..f65ba3a7926aa9149197b70aebfa31423e52de31 100644 (file)
COMP_LIST_COMMON += osal_tirtos cal_app_utils
SRCS_COMMON = main_tirtos.c
# Enable XDC build for application by providing XDC CFG File per core
- XDC_CFG_FILE_$(CORE) = $(PDK_INSTALL_PATH)/ti/build/$(SOC)/sysbios_$(ISA).cfg
+ ifeq ($(ISA),$(filter $(ISA), a53))
+ XDC_CFG_FILE_$(CORE) = $(PDK_INSTALL_PATH)/ti/drv/cal/examples/$(SOC)/cal_$(SOC)_bios.cfg
+ else
+ XDC_CFG_FILE_$(CORE) = $(PDK_INSTALL_PATH)/ti/build/$(SOC)/sysbios_$(ISA).cfg
+ endif
endif
ifeq ($(CORE),$(filter $(CORE), mpu1_0 mpu1_1))
EXTERNAL_LNKCMD_FILE_LOCAL = $(PDK_CAL_COMP_PATH)/examples/utils/src/V0/linker_cal_a53.lds
endif
-PACKAGE_SRCS_COMMON = .
+PACKAGE_SRCS_COMMON = . ../$(SOC)
# Common source files and CFLAGS across all platforms and cores
SRCS_COMMON += cal_loopback_test.c