diff options
Diffstat (limited to 'Projects/XPLAINBridge/Lib')
-rw-r--r-- | Projects/XPLAINBridge/Lib/RingBuff.c | 8 | ||||
-rw-r--r-- | Projects/XPLAINBridge/Lib/RingBuff.h | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/Projects/XPLAINBridge/Lib/RingBuff.c b/Projects/XPLAINBridge/Lib/RingBuff.c index 0dd4a06bb..7b966ddb7 100644 --- a/Projects/XPLAINBridge/Lib/RingBuff.c +++ b/Projects/XPLAINBridge/Lib/RingBuff.c @@ -30,7 +30,7 @@ #include "RingBuff.h"
-void Buffer_Initialize(RingBuff_t* Buffer)
+void Buffer_Initialize(RingBuff_t* const Buffer)
{
BUFF_ATOMIC_BLOCK
{
@@ -40,7 +40,7 @@ void Buffer_Initialize(RingBuff_t* Buffer) }
}
-void Buffer_StoreElement(RingBuff_t* Buffer, RingBuff_Data_t Data)
+void Buffer_StoreElement(RingBuff_t* const Buffer, RingBuff_Data_t Data)
{
BUFF_ATOMIC_BLOCK
{
@@ -73,7 +73,7 @@ void Buffer_StoreElement(RingBuff_t* Buffer, RingBuff_Data_t Data) }
}
-RingBuff_Data_t Buffer_GetElement(RingBuff_t* Buffer)
+RingBuff_Data_t Buffer_GetElement(RingBuff_t* const Buffer)
{
RingBuff_Data_t BuffData;
@@ -99,7 +99,7 @@ RingBuff_Data_t Buffer_GetElement(RingBuff_t* Buffer) }
#if defined(BUFF_USEPEEK)
-RingBuff_Data_t Buffer_PeekElement(const RingBuff_t* Buffer)
+RingBuff_Data_t Buffer_PeekElement(const RingBuff_t* const Buffer)
{
RingBuff_Data_t BuffData;
diff --git a/Projects/XPLAINBridge/Lib/RingBuff.h b/Projects/XPLAINBridge/Lib/RingBuff.h index 23288d87a..705517a7a 100644 --- a/Projects/XPLAINBridge/Lib/RingBuff.h +++ b/Projects/XPLAINBridge/Lib/RingBuff.h @@ -106,11 +106,11 @@ } RingBuff_t;
/* Function Prototypes: */
- void Buffer_Initialize(RingBuff_t* Buff);
- void Buffer_StoreElement(RingBuff_t* Buffer, RingBuff_Data_t Data);
- RingBuff_Data_t Buffer_GetElement(RingBuff_t* Buffer);
+ void Buffer_Initialize(RingBuff_t* const Buff);
+ void Buffer_StoreElement(RingBuff_t* const Buffer, RingBuff_Data_t Data);
+ RingBuff_Data_t Buffer_GetElement(RingBuff_t* const Buffer);
#if defined(BUFF_USEPEEK)
- RingBuff_Data_t Buffer_PeekElement(const RingBuff_t* Buffer);
+ RingBuff_Data_t Buffer_PeekElement(const RingBuff_t* const Buffer);
#endif
#endif
|