File tree 1 file changed +9
-6
lines changed
cores/arduino/stm32/OpenAMP
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 1
1
#ifndef __OPENAMP_VIRTIO_CONFIG_H
2
2
#define __OPENAMP_VIRTIO_CONFIG_H
3
3
4
- // Size of buffer of each vring buffers
5
- #ifdef RPMSG_BUFFER_SIZE
6
- #warning "RPMSG_BUFFER_SIZE should be aligned with the kernel definition."
7
- #warning "Reference: https://elixir.bootlin.com/linux/v5.5.2/source/drivers/rpmsg/virtio_rpmsg_bus.c#L137"
8
- #else
4
+ #ifndef RPMSG_BUFFER_SIZE
5
+ /**
6
+ * @brief Size of buffer of each vring buffers
7
+ * @note If the host processor is Linux, RPMSG_BUFFER_SIZE must be aligned
8
+ * with the kernel definition.
9
+ * Reference: https://elixir.bootlin.com/linux/v5.5.2/source/drivers/rpmsg/virtio_rpmsg_bus.c#L137
10
+ */
9
11
#define RPMSG_BUFFER_SIZE (512)
10
12
#endif
11
13
12
- // Size of the vqueue message in the buffer
14
+ /** Size of header of a vqueue message */
13
15
#define RPMSG_VRING_HEADER_SIZE (16)
16
+ /** Available size of payload of a vqueue message */
14
17
#define RPMSG_VRING_PAYLOAD_SIZE (RPMSG_BUFFER_SIZE - RPMSG_VRING_HEADER_SIZE)
15
18
16
19
/**
You can’t perform that action at this time.
0 commit comments