Hi
Want to know if there is a way to instruct the compiler to preserve more than the normal registers (R0-R3, R12, LR, PSR, and PC) during an interrupt.
Regards Viktor Bucher
/*------------------------------------------------------------------. ; Dear Andy, I comment my code with the same ratio of comment ; ; to code ratio. This keeps the clarity to any other code-monkey ; ; who reads my work easy to understand. ; '------------------------------------------------------------------*/ word_count = (u8)49; return( word_count );
--Cpt. Vince Foster 2nd Cannon Place Fort Marcy Park, VA
And I see that you code with redundancy too ;)
Are you referring to my error in 'content' vs 'comment' error, or are you referring to the fact that I don't simply return a value, and that I also type-cast numbers?:
{ ... word_count = (u8)49; return( word_count ); // versus the typical [poor-form] return statement: return( 49 ); }
--Cpt. Vince Foster 2nd Cannon Place Fort Marcy Park, VA ?
I was referring to the posts from 16-Apr-2009 12:12 and 16-Apr-2009 12:18 that showed a significant redundancy, but a bit of transfer or encoding errors between the copies. But I would prefer an odd number of copies to be able to majority-vote on the correct copy :)
"Majority Vote" logic... ahhh, odd indeed. That is why I like Actel FPGAs so much. Rad-Hard.
And I have a headache too. (15mg of Hydrocodone isn't doing it for me)
I would think Potassium Iodide would be better than Hydrocodone if you where striving for rad-hardening. Doubtful if it helps with a headache.
Hello Cpt. Vince,
Here are possible side effects of using Hydrocodone :-) I hope you are better now
Severe allergic reactions (rash; hives; itching; difficulty breathing; tightness in the chest; swelling of the mouth, face, lips, or tongue); bloody, black, or tarry stools; blurred vision; change in the amount of urine produced; chest pain; confusion; dark urine; depression; fainting; fast or irregular heartbeat; fever, chills, or persistent sore throat; mental or mood changes; numbness of an arm or leg; one-sided weakness; red, swollen, blistered, or peeling skin; ringing in the ears; seizures; severe headache or dizziness; severe or persistent stomach pain or nausea; severe vomiting; shortness of breath; slow or shallow breathing; stiff neck; sudden or unexplained weight gain; swelling of hands, legs, or feet; unusual bruising or bleeding; unusual joint or muscle pain; unusual tiredness or weakness; vision or speech changes; vomit that looks like coffee grounds; yellowing of the skin or eyes.
Thanks, and yes, I am better now. I hate those things (headaches).
As for the 'effects' go, since I already have each one of those effects prior to taking any medication, I didn't notice anything different... my headache went away.
And as for the "vomit that looks like coffee grounds", we've been using that in our coffee maker: way cheaper than Kopi Luwak.
View all questions in Keil forum