projects
/
pub
/
USBasp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8a7351c
)
Added new RingBuffer_Peek() function to the lightweight ring buffer headers.
author
Dean Camera
<dean@fourwalledcubicle.com>
Sun, 12 Dec 2010 16:39:46 +0000
(16:39 +0000)
committer
Dean Camera
<dean@fourwalledcubicle.com>
Sun, 12 Dec 2010 16:39:46 +0000
(16:39 +0000)
LUFA/ManPages/ChangeLog.txt
patch
|
blob
|
blame
|
history
LUFA/ManPages/FutureChanges.txt
patch
|
blob
|
blame
|
history
Projects/Benito/Lib/LightweightRingBuff.h
patch
|
blob
|
blame
|
history
Projects/USBtoSerial/Lib/LightweightRingBuff.h
patch
|
blob
|
blame
|
history
Projects/XPLAINBridge/Lib/LightweightRingBuff.h
patch
|
blob
|
blame
|
history
diff --git
a/LUFA/ManPages/ChangeLog.txt
b/LUFA/ManPages/ChangeLog.txt
index
d213b1b
..
bb2757f
100644
(file)
--- a/
LUFA/ManPages/ChangeLog.txt
+++ b/
LUFA/ManPages/ChangeLog.txt
@@
-13,6
+13,7
@@
* - Library Applications:
* - Added new incomplete MIDIToneGenerator project
* - Added ability to write protect Mass Storage disk write operations from the host OS
* - Library Applications:
* - Added new incomplete MIDIToneGenerator project
* - Added ability to write protect Mass Storage disk write operations from the host OS
+ * - Added new RingBuffer_Peek() function to the lightweight ring buffer headers
*
* <b>Changed:</b>
* - Core:
*
* <b>Changed:</b>
* - Core:
diff --git
a/LUFA/ManPages/FutureChanges.txt
b/LUFA/ManPages/FutureChanges.txt
index
aee1f17
..
7ae15aa
100644
(file)
--- a/
LUFA/ManPages/FutureChanges.txt
+++ b/
LUFA/ManPages/FutureChanges.txt
@@
-34,6
+34,7
@@
* -# Finish StandaloneProgrammer project
* -# Arduino Uno compatible USB-MIDI, USB-HID
* -# Make Webserver project work in RNDIS device mode
* -# Finish StandaloneProgrammer project
* -# Arduino Uno compatible USB-MIDI, USB-HID
* -# Make Webserver project work in RNDIS device mode
+ * -# Make rescue clock always active on U4, U6 and U7 targets in AVRISP-MKII Clone project
* - Ports
* -# AVR32 UC3B series microcontrollers
* -# Atmel ARM7 series microcontrollers
* - Ports
* -# AVR32 UC3B series microcontrollers
* -# Atmel ARM7 series microcontrollers
diff --git
a/Projects/Benito/Lib/LightweightRingBuff.h
b/Projects/Benito/Lib/LightweightRingBuff.h
index
56da839
..
cddf97f
100644
(file)
--- a/
Projects/Benito/Lib/LightweightRingBuff.h
+++ b/
Projects/Benito/Lib/LightweightRingBuff.h
@@
-196,5
+196,16
@@
return Data;
}
return Data;
}
+ /** Returns the next element stored in the ring buffer, without removing it.
+ *
+ * \param[in,out] Buffer Pointer to a ring buffer structure to retrieve from
+ *
+ * \return Next data element stored in the buffer
+ */
+ static inline RingBuff_Data_t RingBuffer_Peek(RingBuff_t* const Buffer)
+ {
+ return *Buffer->Out;
+ }
+
#endif
#endif
diff --git
a/Projects/USBtoSerial/Lib/LightweightRingBuff.h
b/Projects/USBtoSerial/Lib/LightweightRingBuff.h
index
56da839
..
cddf97f
100644
(file)
--- a/
Projects/USBtoSerial/Lib/LightweightRingBuff.h
+++ b/
Projects/USBtoSerial/Lib/LightweightRingBuff.h
@@
-196,5
+196,16
@@
return Data;
}
return Data;
}
+ /** Returns the next element stored in the ring buffer, without removing it.
+ *
+ * \param[in,out] Buffer Pointer to a ring buffer structure to retrieve from
+ *
+ * \return Next data element stored in the buffer
+ */
+ static inline RingBuff_Data_t RingBuffer_Peek(RingBuff_t* const Buffer)
+ {
+ return *Buffer->Out;
+ }
+
#endif
#endif
diff --git
a/Projects/XPLAINBridge/Lib/LightweightRingBuff.h
b/Projects/XPLAINBridge/Lib/LightweightRingBuff.h
index
0205fe4
..
b19291c
100644
(file)
--- a/
Projects/XPLAINBridge/Lib/LightweightRingBuff.h
+++ b/
Projects/XPLAINBridge/Lib/LightweightRingBuff.h
@@
-196,5
+196,16
@@
return Data;
}
return Data;
}
+ /** Returns the next element stored in the ring buffer, without removing it.
+ *
+ * \param[in,out] Buffer Pointer to a ring buffer structure to retrieve from
+ *
+ * \return Next data element stored in the buffer
+ */
+ static inline RingBuff_Data_t RingBuffer_Peek(RingBuff_t* const Buffer)
+ {
+ return *Buffer->Out;
+ }
+
#endif
#endif