From: Matthias T. <mt...@we...> - 2013-02-15 18:41:28
|
Hi Enoch, >> Enochs code is a macro, assembling one single instruction SBI into >> dictionary and naming it. >> Calling that word will execute the SBI instruction. >> >> Michael > > I confirm, the code works. Well. I think its definitly worth some documentation. It is not obvious how to use it. > I suggest that these simple macros would become standard library > offerings. I'll think about it. see above ;) > Without these atomic bit set/clear one needs to wrap code by > -int/+int if register bits are shared by different interrupt > routines. Any given and active forth ISR is never interrupted itself by another interrupt. The communication between ISR and the main program is close but different (IMHO). Matthias |