ring buffer

Files at this revision

API Documentation at this revision

Comitter:
est2fe
Date:
Tue Feb 28 19:57:07 2012 +0000
Parent:
7:5e960f7b1f79
Commit message:
0.xy2

Changed in this revision

rbuf.c Show annotated file Show diff for this revision Revisions of this file
diff -r 5e960f7b1f79 -r 40af324896d9 rbuf.c
--- a/rbuf.c	Tue Nov 01 09:57:28 2011 +0000
+++ b/rbuf.c	Tue Feb 28 19:57:07 2012 +0000
@@ -76,7 +76,7 @@
       }
    __disable_irq(); // Disable Interrupts
    r->bufcnt--;                  // Ein Objekt weniger im Buffer 
-   __enable_irq(); 	// Enable Interrupts
+   __enable_irq();     // Enable Interrupts
    p_b = (void *) (((char *) p_b) + r->blockgroesse ); 
    if (r->bufcnt >= r->Schwelle)
       { 
@@ -138,7 +138,7 @@
    r->in = p_neu; 
    __disable_irq(); // Disable Interrupts
    r->bufcnt++;     // = cnt; 
-   __enable_irq(); 	// Enable Interrupts
+   __enable_irq();     // Enable Interrupts
    return p_alt; 
    }