expected ')' before '*' token

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

expected ')' before '*' token

1,743 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ju2low on Fri Oct 12 03:10:44 MST 2012
Hello everyone,

I'm trying to make working i2c on my lpc1769 board but i have an error which i don't understand:

expected ')' before '*' token

I add some files from source in my project and since i have this message on a list of declaration's function ... like this one:
void I2C_SetClock (I2C_TypeDef *I2Cx, uint32_t target_clock);

Can someone explain to me why?

I think it come from the "TypeDef"
0 项奖励
回复
7 回复数

1,720 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ju2low on Fri Oct 12 04:58:19 MST 2012

Quote: Zero
I2C_TypeDef is unknown here :eek:

Typedef in LPC17xx.h is[B][COLOR=Red] LPC_[/COLOR][/B]I2C_TypeDef ;)



This is what I said, simple & evident...

Thank you for your help !!! :o
0 项奖励
回复

1,720 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Fri Oct 12 04:54:05 MST 2012
I2C_TypeDef is unknown here :eek:

Typedef in LPC17xx.h is[B][COLOR=Red] LPC_[/COLOR][/B]I2C_TypeDef ;)
0 项奖励
回复

1,720 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ju2low on Fri Oct 12 04:39:57 MST 2012
Sorry for missing files :o
I'm quite perturbed by this..
I think my problem is very simple and stupid and that is really annoying for me

So I count on your objectivity ;)
0 项奖励
回复

1,720 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Fri Oct 12 04:10:37 MST 2012
Please post a complete project (just clean and export) ;)

Looking for errors without compiler is an incredible waste of time :)
0 项奖励
回复

1,720 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ju2low on Fri Oct 12 04:01:22 MST 2012
Files concerned by the post
0 项奖励
回复

1,720 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by ju2low on Fri Oct 12 03:57:22 MST 2012
But where ?

May i have to put files on this post?
0 项奖励
回复

1,720 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Ex-Zero on Fri Oct 12 03:22:23 MST 2012
Looks like a missing ')' in your I2C_TypeDef ;)
0 项奖励
回复