]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - keystone-rtos/mcbsp-lld.git/blobdiff - example/c6657/MCBSPDigLpbk/mcbspMasterDigLpbk.c
PRSDK-3515 Add Board_init function to enable module clock
[keystone-rtos/mcbsp-lld.git] / example / c6657 / MCBSPDigLpbk / mcbspMasterDigLpbk.c
index 7281420d4e4d4f470d465c2a70c40d2ab6a78ff8..e2f11b2ed7d0014ec990086965aca0152d0d4fa7 100644 (file)
@@ -5,7 +5,7 @@
  * master functionality using Digital Loopback setup. The file configures 
  * the EVM in master mode.
  *
- * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
+ * Copyright (C) 2012 - 2018 Texas Instruments Incorporated - http://www.ti.com/
  *
  *
  *  Redistribution and use in source and binary forms, with or without
@@ -50,6 +50,7 @@
 #include <xdc/runtime/System.h>
 
 #include <xdc/cfg/global.h>
+#include <board.h>
 
 /* Include EDMA3 Driver */
 #include <ti/sdo/edma3/drv/edma3_drv.h>
@@ -86,6 +87,8 @@ extern int32_t Osal_dataBufferInitMemory(uint32_t dataBufferSize);
 extern void McbspXmtInterrupt_init(void *mcbspTxChan);
 extern void McbspRcvInterrupt_init(void *mcbspRxChan);
 
+extern Board_STATUS Board_init(Board_initCfg);
+
 /* FPGA Configuration Misc-1 Register offset */
 #define MCBSP_FPGA_MISC_REG_OFFSET (0x0C)
 
@@ -854,7 +857,12 @@ Void main(Void)
 {
     Task_Params taskParams;
     EDMA3_DRV_Result edmaResult = 0;
+#ifdef SIMULATOR_SUPPORT
     uint8_t uchValue, uchReadValue;
+#endif
+
+    Board_initCfg arg = BOARD_INIT_MODULE_CLOCK | BOARD_INIT_PINMUX_CONFIG | BOARD_INIT_UART_STDIO;
+    Board_init(arg);
 
     uint32_t temp;
     /* Get the core number. */