IAP in LPC

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

IAP in LPC

1,178 次查看
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)
标签 (1)
0 项奖励
回复
1 回复

826 次查看
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 项奖励
回复