summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 753dc3c)
raw | patch | inline | side by side (parent: 753dc3c)
author | Frank Livingston <frank-livingston@ti.com> | |
Thu, 10 May 2018 20:36:17 +0000 (15:36 -0500) | ||
committer | Frank Livingston <frank-livingston@ti.com> | |
Thu, 10 May 2018 20:36:17 +0000 (15:36 -0500) |
McaspDevice_init() is run-once driver initialization code.
pasdk/test_dsp/application/main.c | patch | blob | history | |
pasdk/test_dsp/framework/audioStreamInpProcNewIO.c | patch | blob | history |
index a9530ea4dab4c26a9fd9d0cb0fff13911c74ae7a..c9ab1c385eadcd9bbe12a2fb7fa97880a066aca6 100644 (file)
/* initialize board */
cfg = BOARD_INIT_PINMUX_CONFIG | BOARD_INIT_MODULE_CLOCK;
Board_init(cfg);
- evmI2CInit(I2C_PORT_0);
- evmI2CInit(I2C_PORT_1);
- evmI2CInit(I2C_PORT_2);
+ evmI2CInit(I2C_PORT_0);
+ evmI2CInit(I2C_PORT_1);
+ evmI2CInit(I2C_PORT_2);
- Log_info0("exit Platform Setup");
+ Log_info0("exit Board init");
Log_info0("Configure EDMA");
/* Configure eDMA module */
#endif
#ifdef IO_LOOPBACK_TEST
- /* Initialize McASP HW details */
- McaspDevice_init();
+ /* Initialize McASP HW details */
+ McaspDevice_init();
D10_init();
}
aud_delay(50000); // Without delay between these 2 calls system aborts.
- /* Initialize McASP module */
- status = mcaspAudioConfig();
- if(status != Aud_EOK)
- {
- Log_info0("McASP Configuration Failed!\n");
- }
+ /* Initialize McASP module */
+ status = mcaspAudioConfig();
+ if(status != Aud_EOK)
+ {
+ Log_info0("McASP Configuration Failed!\n");
+ }
- ioSemaphoreCreate();
+ ioSemaphoreCreate();
- audioIoCreate();
+ audioIoCreate();
Task_setPri(TaskAfp, -1);
Task_setPri(TaskAip, -1);
Task_setPri(TaskAsop, 5);
#endif
+ Log_info0("McASP device init");
+ /* Initialize McASP SOC level configuration */
+ McaspDevice_init();
+
Log_info0("IPC start");
- // Initialize IPC
+ /* Initialize IPC */
status = Ipc_start();
if (status < 0)
{
diff --git a/pasdk/test_dsp/framework/audioStreamInpProcNewIO.c b/pasdk/test_dsp/framework/audioStreamInpProcNewIO.c
index fb84c34dbdd7dac15c8e199ff7cebec253dcbf3b..c60d5b059fdb302fc0a6227743bb40c12960452d 100644 (file)
Int d10Initialized = 0;
//extern Aud_STATUS mcaspAudioConfig(void);
-extern void McaspDevice_init(void);
+//extern void McaspDevice_init(void);
/*======================================================================================
* This function initializes HW interface and selects the right device for input
// FL: probably no harm in calling this for every new i/f request.
// However, it can probably be moved to main() or sys init task.
// Initialize McASP HW details
- McaspDevice_init();
+ //McaspDevice_init();
// Initialize Rx hardware
D10_init((void *)pD10Params);