projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add all missing functions.
[bertos.git]
/
drv
/
ser_i196.c
diff --git
a/drv/ser_i196.c
b/drv/ser_i196.c
index dc77f39f1c67e4b38885bdce03f4efb662ecd952..812053bfae3043b780998d4caf303e7a57579ce2 100755
(executable)
--- a/
drv/ser_i196.c
+++ b/
drv/ser_i196.c
@@
-15,6
+15,9
@@
/*#*
*#* $Log$
/*#*
*#* $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
*#*
*#* Revision 1.4 2004/08/25 14:12:08 rasky
*#* Aggiornato il comment block dei log RCS
*#*
@@
-30,13
+33,13
@@
#include "serhw.h"
#define SER_HW_ENABLE_TX \
#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;
static volatile bool ser_sending;