
Originally Posted by
Darrel Taylor
Alain,
Well, you may have noticed I didn't get the "GLOBAL" for INT_ENABLE/DISABLE put in the last version of DT_INTS-18.
It turns out that GLOBAL is a reserved word for MPASM. It's used with relocatable code.
I could have used GLBL or GLBAL I suppose, but somehow
@ INT_DISABLE GLBL
Seems even more cryptic than
GIE = 0
I still think it should be in there, as should PERIPHERAL, HIPRIORITY and LOWPRIORITY.
But I'm not sure what the best way is, AKA less confusing.
Any thoughts?
<br>
Hi, Darrel
What about
@ G_INT_DISABLE and @ G_INT_ENABLE ??? ... would be simple enough. ... and it's just "ordinary" macros !!!
Remember the goal was only to use something simple to remind ( in other words: to use for datasheet non-lovers !!! )
To me, GIE = 0 is also the simpler ... But, as you've seen, nowadays nobody dares to read the datasheets !!!
The Tractor computer soft is just finished (!)... I had some precedence headaches ( particularly with // !!! ), and it was really difficult to see what was wrong ...
despite result was good for setting a flag, operation was wrong !!! ... and was no way to cancel that flag ...
Now, I must translate my comments to English ...
Regards
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks