Make the sample exchange the data between cores for predefined time. Clean up logging messages and do not print transfer speed on each side. This sample is now used to demonstrate functionalities of ipc service with icmsg backend. Signed-off-by: Emil Obalski <Emil.Obalski@nordicsemi.no>
21 lines
353 B
C
21 lines
353 B
C
/*
|
|
* Copyright (c) 2022 Nordic Semiconductor ASA
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef __COMMON_H__
|
|
#define __COMMON_H__
|
|
|
|
#define PACKET_SIZE_START (40)
|
|
#define DATA_SIZE (100)
|
|
#define SENDING_TIME_MS (1000)
|
|
|
|
struct data_packet {
|
|
unsigned long cnt;
|
|
unsigned long size;
|
|
unsigned char data[DATA_SIZE];
|
|
};
|
|
|
|
#endif /* __COMMON_H__ */
|