git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8635 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
c7530be768
commit
a71da8de12
|
@ -135,7 +135,7 @@ void ibqPostFullBufferI(input_buffers_queue_t *ibqp, size_t size) {
|
||||||
|
|
||||||
osalDbgCheckClassI();
|
osalDbgCheckClassI();
|
||||||
|
|
||||||
osalDbgCheck(size > 0);
|
osalDbgCheck((size > 0) && (size <= ibqp->bsize - sizeof (size_t)));
|
||||||
osalDbgAssert(!ibqIsFullI(ibqp), "buffers queue full");
|
osalDbgAssert(!ibqIsFullI(ibqp), "buffers queue full");
|
||||||
|
|
||||||
/* Writing size field in the buffer.*/
|
/* Writing size field in the buffer.*/
|
||||||
|
@ -510,12 +510,14 @@ msg_t obqGetEmptyBufferTimeout(output_buffers_queue_t *obqp,
|
||||||
* @note The object callback is called after releasing the buffer.
|
* @note The object callback is called after releasing the buffer.
|
||||||
*
|
*
|
||||||
* @param[in] obqp pointer to the @p output_buffers_queue_t object
|
* @param[in] obqp pointer to the @p output_buffers_queue_t object
|
||||||
* @param[in] size used size of the buffer
|
* @param[in] size used size of the buffer, cannot be zero
|
||||||
*
|
*
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
void obqPostFullBuffer(output_buffers_queue_t *obqp, size_t size) {
|
void obqPostFullBuffer(output_buffers_queue_t *obqp, size_t size) {
|
||||||
|
|
||||||
|
osalDbgCheck((size > 0) && (size <= obqp->bsize - sizeof (size_t)));
|
||||||
|
|
||||||
osalSysLock();
|
osalSysLock();
|
||||||
|
|
||||||
osalDbgAssert(!obqIsFullI(obqp), "buffers queue full");
|
osalDbgAssert(!obqIsFullI(obqp), "buffers queue full");
|
||||||
|
|
Loading…
Reference in New Issue