ttyDevice



Hello

I am facing a problem in creating a ttyDevice.

My code

#include "vxworks.h"
#include "ttyDrv.h"
#include "sioLib.h"

SIO_CHAN *p; //device structure defined in sioLib.h

void task()

{
ttyDrv(); //initialize
ttyDevcreate("/ty/0",p,128,128);
}


But everytime I run task in an simulator,I get an exception fault No
13.

In the debugger it shows fault in ttyDevCreate()

I am not able to resolve the issue.

help appreciated.
.