|
|
|
|
|
|
| Author |
Message |
Sikandar *nix forums beginner
Joined: 21 Jul 2006
Posts: 3
|
Posted: Fri Jul 21, 2006 4:21 am Post subject:
Code problem
|
|
|
The code is as follows
unsigned short * lpIntEnable[NUM_ITC_BANKS] =
{
(LPREG)ITC_INTENABLE_REG(0) , //These two macros give some
register addresses
(LPREG)ITC_INTENABLE_REG(1)
};
u_int32 uEnable;
uEnable = *lpIntEnable[0x00];
My question is what is being assigned to UEnable .Is it a double ptr or
wat please explain
Regards in anticipation of your replies,
Sikandar |
|
| Back to top |
|
 |
Morris Dovey *nix forums addict
Joined: 22 Jun 2005
Posts: 90
|
Posted: Fri Jul 21, 2006 4:56 am Post subject:
Re: Code problem
|
|
|
Sikandar (in 1153455703.962056.24920@h48g2000cwc.googlegroups.com)
said:
| The code is as follows
|
|
| unsigned short * lpIntEnable[NUM_ITC_BANKS] =
| {
| (LPREG)ITC_INTENABLE_REG(0) , //These two macros give some
| register addresses
| (LPREG)ITC_INTENABLE_REG(1)
| };
|
| u_int32 uEnable;
| uEnable = *lpIntEnable[0x00];
|
|
| My question is what is being assigned to UEnable .Is it a double
| ptr or wat please explain
lpIntEnable is an array of NUM_ITC_BANKS pointers to unsigned short.
uEnable is assigned whatever unsigned short value (promoted to a
u_int32) that the first element of lpIntEnable points to.
--
Morris Dovey
DeSoto Solar
DeSoto, Iowa USA
http://www.iedu.com/DeSoto |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Sun Nov 23, 2008 2:19 pm | All times are GMT
|
|
Loans | Personal Loans | Advertising | Free Advertising | Mobile Phones
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|