/*************************************************************************
NAME
main
DESCRIPTION
The Sink Application starts here...
RETURNS
int
*************************************************************************/
int main(void)
{
uint16 usBootMode;
DEBUG(("Main [%s]\n", __TIME__));
usBootMode = BootGetMode();
switch (usBootMode)
{
#ifdef CVC_PRODTEST
case BOOTMODE_CVC_PRODTEST:
/*run the cvc prod test code and dont start the applicaiton */
cvcProductionTestEnter() ;
break ;
#endif
case BOOTMODE_DFU:
/*do nothing special for the DFU boot mode,
This mode expects to have the appropriate host interfface enabled
Don't start the application */
break ;
case BOOTMODE_DEFAULT:
case BOOTMODE_CUSTOM:
case BOOTMODE_USB_LOW_POWER:
case BOOTMODE_ALT_FSTAB:
default:
{
/*the above are application boot modes so kick of the app init routines*/
const msg_filter usMsgFilter = msg_group_acl;
uint16 usPdlNumberOfDevices = 1;
/* the number of paired devices can be restricted using pskey user 40,
a number between 1 and 8 is allowed
PsRetrieve(PSKEY_PAIRED_DEVICE_LIST_SIZE, &usPdlNumberOfDevices , sizeof(uint16));*/
DEBUG (("PDLSize[%d]\n" , usPdlNumberOfDevices));
/* Initialise the Connection Library with the options */
ConnectionInitEx2(&g_stTheSink.task, &usMsgFilter, usPdlNumberOfDevices );
}
break;
}
/* Start the message scheduler loop */
MessageLoop();