forked from EmbeddedRPC/erpc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/support multiple clients (EmbeddedRPC#271)
* Implementing better C++ eRPC support Signed-off-by: Cervenka Dusan <[email protected]> * Moving C interface related function declarations into interface header file. Signed-off-by: Cervenka Dusan <[email protected]> * Move C generated code into it's own files. Signed-off-by: Cervenka Dusan <[email protected]> * Many C++ minor fixes Signed-off-by: Cervenka Dusan <[email protected]> * C support multiple clients Signed-off-by: Cervenka Dusan <[email protected]> * Tests can be built. Signed-off-by: Cervenka Dusan <[email protected]> * Fixed infinity loops in tests (c++ vs c scope) Signed-off-by: Cervenka Dusan <[email protected]> * test_callbacks works Signed-off-by: Cervenka Dusan <[email protected]> * test_arbitrator is working now Signed-off-by: Cervenka Dusan <[email protected]> * Many minor code improvements. Signed-off-by: Cervenka Dusan <[email protected]> * Namespace can be defined by user. Default erpcshim Signed-off-by: Cervenka Dusan <[email protected]> * Putting function declaration under interface. Signed-off-by: Cervenka Dusan <[email protected]> * Refactored code Signed-off-by: Cervenka Dusan <[email protected]> * Fixed yml tests. Signed-off-by: Cervenka Dusan <[email protected]> * Added c++ enum classes Signed-off-by: Cervenka Dusan <[email protected]> * Change based on PR review Signed-off-by: Cervenka Dusan <[email protected]> * Revert "Added c++ enum classes" This reverts commit d5acf06. Signed-off-by: Cervenka Dusan <[email protected]> * Fixes based on Michal observations Signed-off-by: Cervenka Dusan <[email protected]> * Fix wrong name in server function call Signed-off-by: Cervenka Dusan <[email protected]> --------- Signed-off-by: Cervenka Dusan <[email protected]> Co-authored-by: Michal Princ <[email protected]>
- Loading branch information
1 parent
7f98fda
commit 8616dbe
Showing
140 changed files
with
3,658 additions
and
1,599 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright 2023 ACRIOS Systems s.r.o. | ||
* All rights reserved. | ||
* | ||
* | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
#include "erpc_utils.hpp" | ||
|
||
bool erpc::findIndexOfFunction(const arrayOfFunctionPtr_t sourceArrayOfFunctionPtr, uint16_t sourceArrayLength, | ||
const functionPtr_t functionPtr, uint16_t &retVal) | ||
{ | ||
uint32_t index; | ||
bool find = false; | ||
for (index = 0; index < sourceArrayLength; index++) | ||
{ | ||
if (sourceArrayOfFunctionPtr[index] == functionPtr) | ||
{ | ||
retVal = index; | ||
find = true; | ||
break; | ||
} | ||
} | ||
return find; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
* Copyright 2023 ACRIOS Systems s.r.o. | ||
* All rights reserved. | ||
* | ||
* | ||
* SPDX-License-Identifier: BSD-3-Clause | ||
*/ | ||
|
||
#include <stdint.h> | ||
|
||
namespace erpc { | ||
typedef void *functionPtr_t; | ||
typedef functionPtr_t *arrayOfFunctionPtr_t; | ||
|
||
bool findIndexOfFunction(const arrayOfFunctionPtr_t sourceArrayOfFunctionPtr, uint16_t sourceArrayLength, | ||
const functionPtr_t functionPtr, uint16_t &retVal); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.