From 109a347ca42435bc1c0e1ddd509dfff4ff6dad9d Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 2 Apr 2016 07:11:10 +0000 Subject: Removed queues from C++ wrapper. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9201 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/various/cpp_wrappers/ch.cpp | 108 ----------------------------------------- 1 file changed, 108 deletions(-) (limited to 'os/various/cpp_wrappers/ch.cpp') diff --git a/os/various/cpp_wrappers/ch.cpp b/os/various/cpp_wrappers/ch.cpp index 1dc23427f..a71816fa7 100644 --- a/os/various/cpp_wrappers/ch.cpp +++ b/os/various/cpp_wrappers/ch.cpp @@ -550,114 +550,6 @@ namespace chibios_rt { } #endif /* CH_CFG_USE_EVENTS */ -#if CH_CFG_USE_QUEUES - /*------------------------------------------------------------------------* - * chibios_rt::InQueue * - *------------------------------------------------------------------------*/ - InQueue::InQueue(uint8_t *bp, size_t size, qnotify_t infy, void *link) { - - chIQObjectInit(&iq, bp, size, infy, link); - } - - size_t InQueue::getFullI(void) { - - return chIQGetFullI(&iq); - } - - size_t InQueue::getEmptyI(void) { - - return chIQGetEmptyI(&iq); - } - - bool InQueue::isEmptyI(void) { - - return (bool)chIQIsEmptyI(&iq); - } - - bool InQueue::isFullI(void) { - - return (bool)chIQIsFullI(&iq); - } - - void InQueue::resetI(void) { - - chIQResetI(&iq); - } - - msg_t InQueue::putI(uint8_t b) { - - return chIQPutI(&iq, b); - } - - msg_t InQueue::get() { - - return chIQGet(&iq); - } - - msg_t InQueue::get(systime_t time) { - - return chIQGetTimeout(&iq, time); - } - - size_t InQueue::read(uint8_t *bp, size_t n, systime_t time) { - - return chIQReadTimeout(&iq, bp, n, time); - } - - /*------------------------------------------------------------------------* - * chibios_rt::OutQueue * - *------------------------------------------------------------------------*/ - OutQueue::OutQueue(uint8_t *bp, size_t size, qnotify_t onfy, void *link) { - - chOQObjectInit(&oq, bp, size, onfy, link); - } - - size_t OutQueue::getFullI(void) { - - return chOQGetFullI(&oq); - } - - size_t OutQueue::getEmptyI(void) { - - return chOQGetEmptyI(&oq); - } - - bool OutQueue::isEmptyI(void) { - - return (bool)chOQIsEmptyI(&oq); - } - - bool OutQueue::isFullI(void) { - - return (bool)chOQIsFullI(&oq); - } - - void OutQueue::resetI(void) { - - chOQResetI(&oq); - } - - msg_t OutQueue::put(uint8_t b) { - - return chOQPut(&oq, b); - } - - msg_t OutQueue::put(uint8_t b, systime_t time) { - - return chOQPutTimeout(&oq, b, time); - } - - msg_t OutQueue::getI(void) { - - return chOQGetI(&oq); - } - - size_t OutQueue::write(const uint8_t *bp, size_t n, systime_t time) { - - return chOQWriteTimeout(&oq, bp, n, time); - } -#endif /* CH_CFG_USE_QUEUES */ - #if CH_CFG_USE_MEMPOOLS /*------------------------------------------------------------------------* * chibios_rt::MemoryPool * -- cgit v1.2.3