File tree Expand file tree Collapse file tree 6 files changed +1075
-5
lines changed Expand file tree Collapse file tree 6 files changed +1075
-5
lines changed Original file line number Diff line number Diff line change 1-
21/*
32 * Copyright (c) 2021 Nordic Semiconductor ASA
43 *
@@ -28,8 +27,8 @@ extern "C" {
2827 * Multi producer, single consumer packet buffer allows to allocate variable
2928 * length consecutive space for storing a packet. When space is allocated
3029 * it can be filled by the user (except for the first 2 bits) and when packet
31- * is ready it is commited . It is allowed to allocate another packet before
32- * commiting the previous one.
30+ * is ready it is committed . It is allowed to allocate another packet before
31+ * committing the previous one.
3332 *
3433 * If buffer is full and packet cannot be allocated then null is returned unless
3534 * overwrite mode is selected. In that mode, oldest entry are dropped (user is
@@ -43,7 +42,8 @@ extern "C" {
4342 */
4443
4544/**@defgroup MPSC_PBUF_FLAGS MPSC packet buffer flags
46- * @{ */
45+ * @{
46+ */
4747
4848/** @brief Flag indicating that buffer size is power of 2.
4949 *
Original file line number Diff line number Diff line change @@ -434,4 +434,3 @@ bool mpsc_pbuf_is_pending(struct mpsc_pbuf_buffer *buffer)
434434
435435 return a ? true : false;
436436}
437-
Original file line number Diff line number Diff line change 1+ # SPDX-License-Identifier: Apache-2.0
2+
3+ cmake_minimum_required (VERSION 3.13.1)
4+ find_package (Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE} )
5+ project (mpsc_pbuf)
6+
7+ FILE (GLOB app_sources src/*.c)
8+ target_sources (app PRIVATE ${app_sources} )
Original file line number Diff line number Diff line change 1+ CONFIG_ZTEST=y
2+ CONFIG_MPSC_PBUF=y
3+ CONFIG_TEST_RANDOM_GENERATOR=y
You can’t perform that action at this time.
0 commit comments