Add progmem datatypes; PSTR() definition.
[bertos.git] / drv / ser_i196.c
index dc77f39f1c67e4b38885bdce03f4efb662ecd952..812053bfae3043b780998d4caf303e7a57579ce2 100755 (executable)
@@ -15,6 +15,9 @@
 
 /*#*
  *#* $Log$
+ *#* Revision 1.5  2004/12/13 11:51:08  bernie
+ *#* DISABLE_INTS/ENABLE_INTS: Convert to IRQ_DISABLE/IRQ_ENABLE.
+ *#*
  *#* Revision 1.4  2004/08/25 14:12:08  rasky
  *#* Aggiornato il comment block dei log RCS
  *#*
 #include "serhw.h"
 
 #define SER_HW_ENABLE_TX \
-       DISABLE_INTS; \
-       if (!ser_sending) \
-       { \
-               ser_sending = true; \
-               (INT_PEND1 |= INT1F_TI) \
-       } \
-       ENABLE_INTS;
+       ATOMIC( \
+               if (!ser_sending) \
+               { \
+                       ser_sending = true; \
+                       (INT_PEND1 |= INT1F_TI) \
+               } \
+       );
 
 static volatile bool ser_sending;