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 committed Aug 22, 2022
1 parent 3b2b4e3 commit f67dc9b
Show file tree
Hide file tree
Showing 44 changed files with 954 additions and 947 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 @@ -94,14 +94,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: 0 additions & 2 deletions examples/projects/Arduino/gate_serialcom/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ lib_deps =
Gate
Pipe


[env:zero]
board = mkrzero
platform_packages = framework-arduino-samd@https://github.com/Luos-io/Arduino_core.git
Expand All @@ -52,4 +51,3 @@ platform_packages = framework-arduino-samd@https://github.com/Luos-io/Arduino_co
[env:seed]
board = seeed_xiao
platform_packages = framework-arduino-samd-seeed@https://github.com/Luos-io/Arduino_core.git

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 @@ -95,13 +95,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 @@ -130,14 +130,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,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
#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 @@ -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 @@ -130,13 +130,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 @@ -101,14 +101,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 @@ -102,13 +102,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 @@ -101,14 +101,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 @@ -102,13 +102,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 @@ -101,14 +101,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 @@ -102,13 +102,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 @@ -104,14 +104,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 @@ -105,13 +105,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 @@ -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
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 f67dc9b

Please sign in to comment.