File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
cores/arduino/stm32/OpenAMP Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 33
44// Size of buffer of each vring buffers
55#ifdef RPMSG_BUFFER_SIZE
6- #error "RPMSG_BUFFER_SIZE should be aligned with the kernel definition."
7- #error "Reference: https://elixir.bootlin.com/linux/v5.5.2/source/drivers/rpmsg/virtio_rpmsg_bus.c#L137"
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"
88#else
99#define RPMSG_BUFFER_SIZE (512)
1010#endif
2020 * A buffer handles VirtIOSerial::rxCallback() requires to be
2121 * (RPMSG_VRING_PAYLOAD_SIZE * VRING_NUM_BUFFS) at minimum to prevent overflow.
2222 */
23- #define VRING_NUM_BUFFS 16
23+ #ifndef VRING_NUM_BUFFS
24+ #define VRING_NUM_BUFFS (16)
25+ #endif
2426#define RPMSG_VRING_TOTAL_PAYLOAD_SIZE (RPMSG_VRING_PAYLOAD_SIZE * VRING_NUM_BUFFS)
2527
2628#if defined (VIRTIO_LOG )
You can’t perform that action at this time.
0 commit comments