IAP in LPC

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

IAP in LPC

710 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by raguramangopal on Sat Dec 21 12:07:51 MST 2013
#define IAP_LOCATION 0x7ffffff1
...
unsigned long command[5];
unsigned long result[3];
...
typedef void (*IAP)(unsigned int [],unsigned int[]);
IAP iap_entry;

iap_entry = (IAP) IAP_LOCATION;

iap_entry(command, result);

Can someone explain how it works, especially below code

iap_entry = (IAP) IAP_LOCATION;
iap_entry(command, result)
Labels (1)
0 Kudos
1 Reply

358 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Sun Dec 22 03:30:09 MST 2013
It is calling a function at a specific address. Look up "function pointers" in the C language.
0 Kudos