Skip to content

Commit 5959ccd

Browse files
eRPC updates 07/2020
-- Unit test code updated to handle service add and remove operations -- Several MISRA issues in rpmsg-based transports addressed -- Support MU transport unit testing -- Fixed Linux/TCP acceptance tests in release target -- Minor documentation updates, code formatting
1 parent af02b3e commit 5959ccd

File tree

55 files changed

+1039
-472
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+1039
-472
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Steps are described in [`erpcgen/VisualStudio_v14/readme_erpcgen.txt`](erpcgen/V
117117
Install these packages:
118118
* bison: GNU yacc-compatible parser generator
119119
* flex: A fast lexical analyzer generator
120-
* libboost-dev, libboost-filesystem-dev, libboost-system-dev: Boost C++ libraries (Linux needs to use libboost version 1.58.0)
120+
* libboost-dev, libboost-filesystem-dev, libboost-system-dev: Boost C++ libraries (Linux needs to use libboost version 1.67.0)
121121
* make: the GNU version of the 'make' utility
122122
* python: Python language interpreter (either 2.7 or 3.5+ work)
123123
* gcc-core: GNU Compiler Collection (C, OpenMP)

doxygen/Doxyfile.erpc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ PROJECT_NAME = "eRPC API Reference"
3838
# could be handy for archiving the generated documentation or if some version
3939
# control system is used.
4040

41-
PROJECT_NUMBER = "Rev. 1.7.3"
41+
PROJECT_NUMBER = "Rev. 1.7.4"
4242

4343
# Using the PROJECT_BRIEF tag one can provide an optional one line description
4444
# for a project that appears at the top of each page and should give viewer a

doxygen/Doxyfile.erpcgen

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ PROJECT_NAME = "eRPC Generator (erpcgen)"
3838
# could be handy for archiving the generated documentation or if some version
3939
# control system is used.
4040

41-
PROJECT_NUMBER = "Rev. 1.7.3"
41+
PROJECT_NUMBER = "Rev. 1.7.4"
4242

4343
# Using the PROJECT_BRIEF tag one can provide an optional one line description
4444
# for a project that appears at the top of each page and should give viewer a

doxygen/html_footer.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
<!--BEGIN GENERATE_TREEVIEW-->
44
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
55
<ul class="foot">
6-
<li class="footer">&copy; 2016 NXP Semiconductors. All rights reserved.
6+
<li class="footer">Copyright 2016-2020 NXP Semiconductors. All rights reserved.
77
</li>
88
</ul>
99
</div>
1010
<!--END GENERATE_TREEVIEW-->
1111
<!--BEGIN !GENERATE_TREEVIEW-->
1212
<hr class="footer"/><address class="footer"><small>
13-
&copy; 2016 NXP Semiconductors. All rights reserved.
13+
Copyright 2016-2020 NXP Semiconductors. All rights reserved.
1414
</small></address>
1515
<!--END !GENERATE_TREEVIEW-->
1616
</body>

erpc_c/config/erpc_config.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (c) 2016, Freescale Semiconductor, Inc.
3-
* Copyright 2016-2019 NXP
3+
* Copyright 2016-2020 NXP
44
* All rights reserved.
55
*
66
*
@@ -95,8 +95,9 @@
9595

9696
//! @def ERPC_MESSAGE_LOGGING
9797
//!
98-
//! Enable eRPC message logging code through the eRPC. Take look into "erpc_message_loggers.h". Can be used for base printing
99-
//! messages, or sending data to another system for data analysis. Default set to ERPC_MESSAGE_LOGGING_DISABLED.
98+
//! Enable eRPC message logging code through the eRPC. Take look into "erpc_message_loggers.h". Can be used for base
99+
//! printing messages, or sending data to another system for data analysis. Default set to
100+
//! ERPC_MESSAGE_LOGGING_DISABLED.
100101
//!
101102
//! Uncomment for using logging feature.
102103
//#define ERPC_MESSAGE_LOGGING (ERPC_MESSAGE_LOGGING_ENABLED)

erpc_c/infra/erpc_arbitrated_client_manager.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (c) 2016, Freescale Semiconductor, Inc.
3-
* Copyright 2016-2017 NXP
3+
* Copyright 2016-2020 NXP
44
* All rights reserved.
55
*
66
*
@@ -11,6 +11,10 @@
1111
#include "erpc_transport_arbitrator.h"
1212
#include "assert.h"
1313

14+
#if ERPC_THREADS_IS(NONE)
15+
#error "Arbitrator code does not work in no-threading configuration."
16+
#endif
17+
1418
using namespace erpc;
1519

1620
////////////////////////////////////////////////////////////////////////////////

erpc_c/infra/erpc_transport_arbitrator.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (c) 2016, Freescale Semiconductor, Inc.
3-
* Copyright 2016-2017 NXP
3+
* Copyright 2016-2020 NXP
44
* All rights reserved.
55
*
66
*
@@ -12,6 +12,10 @@
1212
#include <cstdio>
1313
#include <string>
1414

15+
#if ERPC_THREADS_IS(NONE)
16+
#error "Arbitrator code does not work in no-threading configuration."
17+
#endif
18+
1519
using namespace erpc;
1620

1721
////////////////////////////////////////////////////////////////////////////////

erpc_c/infra/erpc_version.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (c) 2016, Freescale Semiconductor, Inc.
3-
* Copyright 2016-2019 NXP
3+
* Copyright 2016-2020 NXP
44
* All rights reserved.
55
*
66
*
@@ -20,9 +20,9 @@
2020
////////////////////////////////////////////////////////////////////////////////
2121

2222
//! @brief String version of eRPC.
23-
#define ERPC_VERSION "1.7.3"
23+
#define ERPC_VERSION "1.7.4"
2424
//! @brief Integer version of eRPC.
25-
#define ERPC_VERSION_NUMBER 10703
25+
#define ERPC_VERSION_NUMBER 10704
2626

2727
/*! @} */
2828

erpc_c/port/erpc_threading.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Copyright (c) 2014-2016, Freescale Semiconductor, Inc.
3-
* Copyright 2016-2017 NXP
3+
* Copyright 2016-2020 NXP
44
* All rights reserved.
55
*
66
*
@@ -214,7 +214,7 @@ class Thread
214214
struct k_thread m_thread; /*!< Current thread. */
215215
k_thread_stack_t *m_stack; /*!< Pointer to stack. */
216216
#elif ERPC_THREADS_IS(MBED)
217-
rtos::Thread* m_thread; /*!< Underlying Thread instance */
217+
rtos::Thread *m_thread; /*!< Underlying Thread instance */
218218
Thread *m_next; /*!< Pointer to next Thread. */
219219
static Thread *s_first; /*!< Pointer to first Thread. */
220220
#endif
@@ -249,10 +249,10 @@ class Thread
249249
#elif ERPC_THREADS_IS(MBED)
250250

251251
/*!
252-
* @brief This function execute threadEntryPoint function.
253-
*
254-
* @param[in] arg Thread to execute.
255-
*/
252+
* @brief This function execute threadEntryPoint function.
253+
*
254+
* @param[in] arg Thread to execute.
255+
*/
256256
static void threadEntryPointStub(void *arg);
257257

258258
#endif
@@ -359,7 +359,7 @@ class Mutex
359359
#elif ERPC_THREADS_IS(ZEPHYR)
360360
struct k_mutex m_mutex; /*!< Mutex.*/
361361
#elif ERPC_THREADS_IS(MBED)
362-
rtos::Mutex* m_mutex; /*!< Mutex. */
362+
rtos::Mutex *m_mutex; /*!< Mutex. */
363363
#endif
364364

365365
private:
@@ -442,7 +442,7 @@ class Semaphore
442442
#elif ERPC_THREADS_IS(ZEPHYR)
443443
struct k_sem m_sem; /*!< Semaphore. */
444444
#elif ERPC_THREADS_IS(MBED)
445-
rtos::Semaphore* m_sem; /*!< Semaphore. */
445+
rtos::Semaphore *m_sem; /*!< Semaphore. */
446446
int m_count; /*!< Semaphore count number. */
447447
#endif
448448

0 commit comments

Comments
 (0)