/*****************************************************************************\

  File Name: mgr_filetransfer.c

  Description: This module contains file transfer specific functions.

  Copyright(c) 2007 Analog Devices Incorporated. All Rights Reserved.

  Revision History:
    070706 - GXS: Original code started.

\*****************************************************************************/
//-----------------------------------------------------------------------------
//  I N C L U D E S
//-----------------------------------------------------------------------------
#include <drivers/adi_dev.h>			// Device manager includes
#include <SDK-ezkitutilities.h>
#include "mediaplayer_main.h"

//-----------------------------------------------------------------------------
//  F U N C T I O N    P R O T O T Y P E S
//-----------------------------------------------------------------------------
void main_ThreadTransfer(void *pInParam);

//-----------------------------------------------------------------------------
// main_ThreadTransfer() - It is the main entry point to thread MAIN
//-----------------------------------------------------------------------------
void main_ThreadTransfer(void *pInParam)
{
	
	semaphore_t *p;
	p = (semaphore_t *)pInParam;
	
    //printf("Thread TRANSFER - ID %d, priority %d...\n",THRD_ID_TRANSFER,THRD_PRIORITY_TRANSFER);

    // Launch the MESSAGE hanlder function and block waiting for messages to
    // arrive...

    while(1)
	{
		
		OSSemPend(p->sem, 0, 0);
		//printf("Event ThbWhl - Send Semaphore Transfr Thread Flash LED 3\n");		
        /*OSTimeDly(5);
		ezTurnOnLED(2);
        OSTimeDly(5);
		ezTurnOffLED(2);*/
	}
}
