Skip to content

Commit

Permalink
[Pipe] Apply serial protocol only for serial communications, close #290
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-rabault authored and Nicolas Rabault committed Aug 1, 2022
1 parent c2ef209 commit f90371b
Show file tree
Hide file tree
Showing 44 changed files with 955 additions and 946 deletions.
12 changes: 6 additions & 6 deletions examples/projects/Arduino/gate_serialcom/node_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@
* :-------------------------|------------------------------------------------------
* MAX_RTB_ENTRY | 40 | max number entry in routing table
* GATE_BUFF_SIZE | 1024 | Json receive buffer size
* PIPE_TO_LUOS_BUFFER_SIZE | 1024 | Receive pipe buffer size
* LUOS_TO_PIPE_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* PIPE_TX_BUFFER_SIZE | 1024 | Receive pipe buffer size
* PIPE_RX_BUFFER_SIZE | 2048 | Transmit pipe buffer size
******************************************************************************/

#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TO_LUOS_BUFFER_SIZE 1024
#define LUOS_TO_PIPE_BUFFER_SIZE 2048
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TX_BUFFER_SIZE 1024
#define PIPE_RX_BUFFER_SIZE 2048

/*******************************************************************************
* OTHER GATE PARAMETERS
Expand Down
2 changes: 1 addition & 1 deletion examples/projects/Arduino/gate_serialcom/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ lib_extra_dirs =
../../../../../
lib_deps =
luos_engine@^2.5.3
Gate
Pipe
Gate
12 changes: 6 additions & 6 deletions examples/projects/Arduino/inspector_serialcom/node_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@
* :-------------------------|------------------------------------------------------
* MAX_RTB_ENTRY | 40 | max number entry in routing table
* GATE_BUFF_SIZE | 1024 | Json receive buffer size
* PIPE_TO_LUOS_BUFFER_SIZE | 1024 | Receive pipe buffer size
* LUOS_TO_PIPE_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* PIPE_TX_BUFFER_SIZE | 1024 | Receive pipe buffer size
* PIPE_RX_BUFFER_SIZE | 2048 | Transmit pipe buffer size
******************************************************************************/

#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TO_LUOS_BUFFER_SIZE 1024
#define LUOS_TO_PIPE_BUFFER_SIZE 2048
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TX_BUFFER_SIZE 1024
#define PIPE_RX_BUFFER_SIZE 2048

#endif /* _NODE_CONFIG_H_ */
12 changes: 6 additions & 6 deletions examples/projects/NUCLEO-F072RB/gate_serialcom/node_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@
* :-------------------------|------------------------------------------------------
* MAX_RTB_ENTRY | 40 | max number entry in routing table
* GATE_BUFF_SIZE | 1024 | Json receive buffer size
* PIPE_TO_LUOS_BUFFER_SIZE | 1024 | Receive pipe buffer size
* LUOS_TO_PIPE_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* PIPE_TX_BUFFER_SIZE | 1024 | Receive pipe buffer size
* PIPE_RX_BUFFER_SIZE | 2048 | Transmit pipe buffer size
******************************************************************************/

#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TO_LUOS_BUFFER_SIZE 1024
#define LUOS_TO_PIPE_BUFFER_SIZE 2048
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TX_BUFFER_SIZE 1024
#define PIPE_RX_BUFFER_SIZE 2048

/*******************************************************************************
* OTHER GATE PARAMETERS
Expand Down
12 changes: 6 additions & 6 deletions examples/projects/NUCLEO-F401RE/gate_serialcom/node_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,14 +129,14 @@
* :-------------------------|------------------------------------------------------
* MAX_RTB_ENTRY | 40 | max number entry in routing table
* GATE_BUFF_SIZE | 1024 | Json receive buffer size
* PIPE_TO_LUOS_BUFFER_SIZE | 1024 | Receive pipe buffer size
* LUOS_TO_PIPE_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* PIPE_TX_BUFFER_SIZE | 1024 | Receive pipe buffer size
* PIPE_RX_BUFFER_SIZE | 2048 | Transmit pipe buffer size
******************************************************************************/

#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TO_LUOS_BUFFER_SIZE 1024
#define LUOS_TO_PIPE_BUFFER_SIZE 2048
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TX_BUFFER_SIZE 1024
#define PIPE_RX_BUFFER_SIZE 2048

/*******************************************************************************
* OTHER GATE PARAMETERS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,14 @@
* :-------------------------|------------------------------------------------------
* MAX_RTB_ENTRY | 40 | max number entry in routing table
* GATE_BUFF_SIZE | 1024 | Json receive buffer size
* PIPE_TO_LUOS_BUFFER_SIZE | 1024 | Receive pipe buffer size
* LUOS_TO_PIPE_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* PIPE_TX_BUFFER_SIZE | 1024 | Receive pipe buffer size
* PIPE_RX_BUFFER_SIZE | 2048 | Transmit pipe buffer size
******************************************************************************/

#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TO_LUOS_BUFFER_SIZE 1024
#define LUOS_TO_PIPE_BUFFER_SIZE 2048
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TX_BUFFER_SIZE 1024
#define PIPE_RX_BUFFER_SIZE 2048
#define NODETECTION

#endif /* _NODE_CONFIG_H_ */
12 changes: 6 additions & 6 deletions examples/projects/NUCLEO-F410RB/gate_serialcom/node_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,14 +128,14 @@
* :-------------------------|------------------------------------------------------
* MAX_RTB_ENTRY | 40 | max number entry in routing table
* GATE_BUFF_SIZE | 1024 | Json receive buffer size
* PIPE_TO_LUOS_BUFFER_SIZE | 1024 | Receive pipe buffer size
* LUOS_TO_PIPE_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* PIPE_TX_BUFFER_SIZE | 1024 | Receive pipe buffer size
* PIPE_RX_BUFFER_SIZE | 2048 | Transmit pipe buffer size
******************************************************************************/

#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TO_LUOS_BUFFER_SIZE 1024
#define LUOS_TO_PIPE_BUFFER_SIZE 2048
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TX_BUFFER_SIZE 1024
#define PIPE_RX_BUFFER_SIZE 2048

/*******************************************************************************
* OTHER GATE PARAMETERS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,13 @@
* :-------------------------|------------------------------------------------------
* MAX_RTB_ENTRY | 40 | max number entry in routing table
* GATE_BUFF_SIZE | 1024 | Json receive buffer size
* PIPE_TO_LUOS_BUFFER_SIZE | 1024 | Receive pipe buffer size
* LUOS_TO_PIPE_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* PIPE_TX_BUFFER_SIZE | 1024 | Receive pipe buffer size
* PIPE_RX_BUFFER_SIZE | 2048 | Transmit pipe buffer size
******************************************************************************/

#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TO_LUOS_BUFFER_SIZE 1024
#define LUOS_TO_PIPE_BUFFER_SIZE 2048
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TX_BUFFER_SIZE 1024
#define PIPE_RX_BUFFER_SIZE 2048

#endif /* _NODE_CONFIG_H_ */
12 changes: 6 additions & 6 deletions examples/projects/NUCLEO-G431KB/gate_serialcom/node_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@
* :-------------------------|------------------------------------------------------
* MAX_RTB_ENTRY | 40 | max number entry in routing table
* GATE_BUFF_SIZE | 1024 | Json receive buffer size
* PIPE_TO_LUOS_BUFFER_SIZE | 1024 | Receive pipe buffer size
* LUOS_TO_PIPE_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* PIPE_TX_BUFFER_SIZE | 1024 | Receive pipe buffer size
* PIPE_RX_BUFFER_SIZE | 2048 | Transmit pipe buffer size
******************************************************************************/

#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TO_LUOS_BUFFER_SIZE 1024
#define LUOS_TO_PIPE_BUFFER_SIZE 2048
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TX_BUFFER_SIZE 1024
#define PIPE_RX_BUFFER_SIZE 2048

/*******************************************************************************
* OTHER GATE PARAMETERS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@
* :-------------------------|------------------------------------------------------
* MAX_RTB_ENTRY | 40 | max number entry in routing table
* GATE_BUFF_SIZE | 1024 | Json receive buffer size
* PIPE_TO_LUOS_BUFFER_SIZE | 1024 | Receive pipe buffer size
* LUOS_TO_PIPE_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* PIPE_TX_BUFFER_SIZE | 1024 | Receive pipe buffer size
* PIPE_RX_BUFFER_SIZE | 2048 | Transmit pipe buffer size
******************************************************************************/

#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TO_LUOS_BUFFER_SIZE 1024
#define LUOS_TO_PIPE_BUFFER_SIZE 2048
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TX_BUFFER_SIZE 1024
#define PIPE_RX_BUFFER_SIZE 2048

#endif /* _NODE_CONFIG_H_ */
12 changes: 6 additions & 6 deletions examples/projects/NUCLEO-G474RE/gate_serialcom/node_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@
* :-------------------------|------------------------------------------------------
* MAX_RTB_ENTRY | 40 | max number entry in routing table
* GATE_BUFF_SIZE | 1024 | Json receive buffer size
* PIPE_TO_LUOS_BUFFER_SIZE | 1024 | Receive pipe buffer size
* LUOS_TO_PIPE_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* PIPE_TX_BUFFER_SIZE | 1024 | Receive pipe buffer size
* PIPE_RX_BUFFER_SIZE | 2048 | Transmit pipe buffer size
******************************************************************************/

#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TO_LUOS_BUFFER_SIZE 1024
#define LUOS_TO_PIPE_BUFFER_SIZE 2048
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TX_BUFFER_SIZE 1024
#define PIPE_RX_BUFFER_SIZE 2048

/*******************************************************************************
* OTHER GATE PARAMETERS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@
* :-------------------------|------------------------------------------------------
* MAX_RTB_ENTRY | 40 | max number entry in routing table
* GATE_BUFF_SIZE | 1024 | Json receive buffer size
* PIPE_TO_LUOS_BUFFER_SIZE | 1024 | Receive pipe buffer size
* LUOS_TO_PIPE_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* PIPE_TX_BUFFER_SIZE | 1024 | Receive pipe buffer size
* PIPE_RX_BUFFER_SIZE | 2048 | Transmit pipe buffer size
******************************************************************************/

#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TO_LUOS_BUFFER_SIZE 1024
#define LUOS_TO_PIPE_BUFFER_SIZE 2048
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TX_BUFFER_SIZE 1024
#define PIPE_RX_BUFFER_SIZE 2048

#endif /* _NODE_CONFIG_H_ */
12 changes: 6 additions & 6 deletions examples/projects/NUCLEO-L432KC/gate_serialcom/node_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@
* :-------------------------|------------------------------------------------------
* MAX_RTB_ENTRY | 40 | max number entry in routing table
* GATE_BUFF_SIZE | 1024 | Json receive buffer size
* PIPE_TO_LUOS_BUFFER_SIZE | 1024 | Receive pipe buffer size
* LUOS_TO_PIPE_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* PIPE_TX_BUFFER_SIZE | 1024 | Receive pipe buffer size
* PIPE_RX_BUFFER_SIZE | 2048 | Transmit pipe buffer size
******************************************************************************/

#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TO_LUOS_BUFFER_SIZE 1024
#define LUOS_TO_PIPE_BUFFER_SIZE 2048
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TX_BUFFER_SIZE 1024
#define PIPE_RX_BUFFER_SIZE 2048

/*******************************************************************************
* OTHER GATE PARAMETERS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@
* :-------------------------|------------------------------------------------------
* MAX_RTB_ENTRY | 40 | max number entry in routing table
* GATE_BUFF_SIZE | 1024 | Json receive buffer size
* PIPE_TO_LUOS_BUFFER_SIZE | 1024 | Receive pipe buffer size
* LUOS_TO_PIPE_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* PIPE_TX_BUFFER_SIZE | 1024 | Receive pipe buffer size
* PIPE_RX_BUFFER_SIZE | 2048 | Transmit pipe buffer size
******************************************************************************/

#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TO_LUOS_BUFFER_SIZE 1024
#define LUOS_TO_PIPE_BUFFER_SIZE 2048
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TX_BUFFER_SIZE 1024
#define PIPE_RX_BUFFER_SIZE 2048

#endif /* _NODE_CONFIG_H_ */
12 changes: 6 additions & 6 deletions examples/projects/STM32F4-discovery/gate_serialcom/node_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,14 @@
* :-------------------------|------------------------------------------------------
* MAX_RTB_ENTRY | 40 | max number entry in routing table
* GATE_BUFF_SIZE | 1024 | Json receive buffer size
* PIPE_TO_LUOS_BUFFER_SIZE | 1024 | Receive pipe buffer size
* LUOS_TO_PIPE_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* PIPE_TX_BUFFER_SIZE | 1024 | Receive pipe buffer size
* PIPE_RX_BUFFER_SIZE | 2048 | Transmit pipe buffer size
******************************************************************************/

#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TO_LUOS_BUFFER_SIZE 1024
#define LUOS_TO_PIPE_BUFFER_SIZE 2048
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TX_BUFFER_SIZE 1024
#define PIPE_RX_BUFFER_SIZE 2048

/*******************************************************************************
* OTHER GATE PARAMETERS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@
* :-------------------------|------------------------------------------------------
* MAX_RTB_ENTRY | 40 | max number entry in routing table
* GATE_BUFF_SIZE | 1024 | Json receive buffer size
* PIPE_TO_LUOS_BUFFER_SIZE | 1024 | Receive pipe buffer size
* LUOS_TO_PIPE_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* PIPE_TX_BUFFER_SIZE | 1024 | Receive pipe buffer size
* PIPE_RX_BUFFER_SIZE | 2048 | Transmit pipe buffer size
******************************************************************************/

#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TO_LUOS_BUFFER_SIZE 1024
#define LUOS_TO_PIPE_BUFFER_SIZE 2048
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TX_BUFFER_SIZE 1024
#define PIPE_RX_BUFFER_SIZE 2048

#endif /* _NODE_CONFIG_H_ */
12 changes: 6 additions & 6 deletions examples/projects/l0/gate_serialcom/node_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -99,14 +99,14 @@
* :-------------------------|------------------------------------------------------
* MAX_RTB_ENTRY | 40 | max number entry in routing table
* GATE_BUFF_SIZE | 1024 | Json receive buffer size
* PIPE_TO_LUOS_BUFFER_SIZE | 1024 | Receive pipe buffer size
* LUOS_TO_PIPE_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* PIPE_TX_BUFFER_SIZE | 1024 | Receive pipe buffer size
* PIPE_RX_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* INIT_TIME | 150 | Wait init time before first detection
******************************************************************************/
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TO_LUOS_BUFFER_SIZE 1024
#define LUOS_TO_PIPE_BUFFER_SIZE 2048
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TX_BUFFER_SIZE 1024
#define PIPE_RX_BUFFER_SIZE 2048

/*******************************************************************************
* OTHER GATE PARAMETERS
Expand Down
5 changes: 2 additions & 3 deletions examples/projects/l0/gate_serialcom/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,8 @@ int main(void)
*/
void SystemClock_Config(void)
{
RCC_OscInitTypeDef RCC_OscInitStruct = {0};
RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
RCC_PeriphCLKInitTypeDef PeriphClkInit = {0};
RCC_OscInitTypeDef RCC_OscInitStruct = {0};
RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};

/** Initializes the RCC Oscillators according to the specified parameters
* in the RCC_OscInitTypeDef structure.
Expand Down
12 changes: 6 additions & 6 deletions examples/projects/native/gate_wscom/node_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@
* :-------------------------|------------------------------------------------------
* MAX_RTB_ENTRY | 40 | max number entry in routing table
* GATE_BUFF_SIZE | 1024 | Json receive buffer size
* PIPE_TO_LUOS_BUFFER_SIZE | 1024 | Receive pipe buffer size
* LUOS_TO_PIPE_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* PIPE_TX_BUFFER_SIZE | 1024 | Receive pipe buffer size
* PIPE_RX_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* INIT_TIME | 150 | Wait init time before first detection
******************************************************************************/
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TO_LUOS_BUFFER_SIZE 1024
#define LUOS_TO_PIPE_BUFFER_SIZE 2048
#define MAX_RTB_ENTRY 40
#define GATE_BUFF_SIZE 1024
#define PIPE_TX_BUFFER_SIZE 1024
#define PIPE_RX_BUFFER_SIZE 2048

/*******************************************************************************
* OTHER GATE PARAMETERS
Expand Down
4 changes: 2 additions & 2 deletions test/_resources/node_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@
* :-------------------------|------------------------------------------------------
* MAX_RTB_ENTRY | 40 | max number entry in routing table
* GATE_BUFF_SIZE | 1024 | Json receive buffer size
* PIPE_TO_LUOS_BUFFER_SIZE | 1024 | Receive pipe buffer size
* LUOS_TO_PIPE_BUFFER_SIZE | 2048 | Transmit pipe buffer size
* PIPE_TX_BUFFER_SIZE | 1024 | Receive pipe buffer size
* PIPE_RX_BUFFER_SIZE | 2048 | Transmit pipe buffer size
******************************************************************************/

#endif /* _NODE_CONFIG_H_ */
Loading

0 comments on commit f90371b

Please sign in to comment.