aboutsummaryrefslogtreecommitdiff
path: root/py/ringbuf.h
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2019-11-11 17:07:11 +1100
committerDamien George <damien.p.george@gmail.com>2019-11-21 12:04:53 +1100
commit4f966892813b1b0c43f7ad1d97a7dcd77c646302 (patch)
tree56d87176b16b32ed4aaff703823dd213cb80a2ea /py/ringbuf.h
parent973f68780d2eb974e4921ffdf513079efc19e0a4 (diff)
py/ringbuf: Add peek16 method.
Diffstat (limited to 'py/ringbuf.h')
-rw-r--r--py/ringbuf.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/ringbuf.h b/py/ringbuf.h
index 6b0d209bd..8d4ed1643 100644
--- a/py/ringbuf.h
+++ b/py/ringbuf.h
@@ -82,6 +82,7 @@ static inline size_t ringbuf_avail(ringbuf_t *r) {
// Note: big-endian. No-op if not enough room available for both bytes.
int ringbuf_get16(ringbuf_t *r);
+int ringbuf_peek16(ringbuf_t *r);
int ringbuf_put16(ringbuf_t *r, uint16_t v);
#endif // MICROPY_INCLUDED_PY_RINGBUF_H