help setting ISR priority - and a joke

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

help setting ISR priority - and a joke

616 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by william.vh on Sun Mar 06 11:54:46 MST 2011
Looking for a little help to set the priority of the ADC ISR so that it will interupt the I2C ISR in the LPX1343 in the CodeRed-Xpresso tool set.

I'm looking through the M3 Technical Reference Manual but that's about as interesting as a trip to the dentist. Wondering if any of you have had to do this already and willing to help out with an example.

Here's a joke to make reading this post worth while:
A duck walks into a bar and asks: "Got any Bread?"
Barman says: "No."
Duck says: "Got any bread?"
Barman says: "No."
Duck says: "Got any bread?"
Barman says: "No, we have no bread."
Duck says: "Got any bread?"
Barman says: "No, we haven't got any bread!"
Duck says: "Got any bread?"
Barman says: "No, are you deaf?! We haven't got any bread, and if you ask me again and I'll nail your dang beak to the bar you irritating dang duck!"
Duck says: "Got any nails?"
Barman says: "No"
Duck says: "Got any bread?

Thanks! I appteciate any spoon feeding you're willing to provide on the ISR priority issue.
0 项奖励
回复
3 回复数

602 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Wenzu on Sun Mar 06 14:37:19 MST 2011
LOL.... loved the cute joke !!
0 项奖励
回复

602 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by william.vh on Sun Mar 06 13:03:03 MST 2011

Quote: jharwood
Assuming you're using CMSIS



I am using CMSIS.  And your hint worked out great.  Thanks for the bone to the newbie.  I was in the process of writing the code myself from scratch...
0 项奖励
回复

602 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by jharwood on Sun Mar 06 12:40:47 MST 2011
Assuming you're using CMSIS, take a look at:
NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority)
in core_cm3.h
0 项奖励
回复