We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88f42e6 commit fa932adCopy full SHA for fa932ad
cores/arduino/VirtIOSerial.cpp
@@ -92,7 +92,7 @@ int VirtIOSerial::availableForWrite()
92
{
93
// Just return max length of VIRT_UART_Transmit() can transmit.
94
// See VIRT_UART_Transmit().
95
- return RPMSG_BUFFER_SIZE - 16;
+ return RPMSG_BUFFER_SIZE - RPMSG_VRING_HEADER_SIZE;
96
}
97
98
int VirtIOSerial::peek(void)
cores/arduino/stm32/OpenAMP/virtio_config.h
@@ -7,4 +7,7 @@
7
#define RPMSG_BUFFER_SIZE (512)
8
#endif
9
10
+// Size of the vqueue message in the buffer
11
+#define RPMSG_VRING_HEADER_SIZE 16
12
+
13
#endif // __VIRTIO_CONFIG_H
0 commit comments