View topic - Driver Compilation -reg

Driver Compilation -reg

anything that doesn't fit to other groups.

Re: Driver Compilation -reg

Postby Tim » Wed Mar 18, 2015 4:27 pm

How do you know in() and out() are not executing? Are you running in the debugger or using printf's? Maybe they are executing but pointing to the wrong address.

There is not much more I can help you with now other than to say the best bet is to attach the debugger and see what's going on.

Senior Member
Posts: 1505
Joined: Wed Mar 10, 2004 12:28 am

Re: Driver Compilation -reg

Postby umamahesh » Thu Mar 19, 2015 7:48 am

I have following device structure
typedef struct {
unsigned reglen;
uintptr_t regbase;
unsigned physbase;
unsigned short div;
unsigned short slave;
unsigned int status;
iofunc_attr_t attr;
resmgr_connect_funcs_t connect_funcs;
resmgr_io_funcs_t io_funcs;
dispatch_t *i2c_dispatch;
dispatch_context_t *i2c_ctp;
} mx6x_i2c_dev_t;

I have initialized in init section of the code, how do I pass this struct to open,close, read and write iofuncs.
Active Member
Posts: 39
Joined: Thu Feb 19, 2015 6:12 am


Return to General Programming

Who is online

Users browsing this forum: No registered users and 3 guests