Fixed Serial peripheral driver not turning off the USART before reconfiguring it...
[pub/USBasp.git] / Projects / USBtoSerial / Lib / LightweightRingBuff.h
index 0ffe792..2faef43 100644 (file)
@@ -62,7 +62,7 @@
                } RingBuff_t;
        
        /* Inline Functions: */
-               /** Initializes a ring buffer ready for use. Buffers must be initialized via this function
+               /** Initialises a ring buffer ready for use. Buffers must be initialized via this function
                 *  before any operations are called upon them. Already initialized buffers may be reset
                 *  by re-initializing them using this function.
                 *
                 *  \param[in,out] Buffer  Pointer to a ring buffer structure to insert into
                 *  \param[in]     Data    Data element to insert into the buffer
                 */
-               static inline void RingBuffer_AtomicInsert(RingBuff_t* const Buffer, RingBuff_Data_t Data)
+               static inline void RingBuffer_AtomicInsert(RingBuff_t* const Buffer,
+                                                          const RingBuff_Data_t Data)
                {
                        ATOMIC_BLOCK(ATOMIC_RESTORESTATE)
                        {
                 *  \param[in,out] Buffer  Pointer to a ring buffer structure to insert into
                 *  \param[in]     Data    Data element to insert into the buffer
                 */
-               static inline void RingBuffer_Insert(RingBuff_t* const Buffer, RingBuff_Data_t Data)
+               static inline void RingBuffer_Insert(RingBuff_t* const Buffer,
+                                                    const RingBuff_Data_t Data)
                {
                        *Buffer->In = Data;
                        
                }
 
 #endif
\ No newline at end of file