aboutsummaryrefslogtreecommitdiffstats
path: root/src/pru
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2021-02-12 10:57:13 -0500
committerKevin O'Connor <kevin@koconnor.net>2021-02-12 11:23:29 -0500
commitd7bacae29da2ffd2d8d3fe8d67441bb45098d4fb (patch)
tree48fd6e6d8bbab567dc41cdf76387b5f428c70523 /src/pru
parentdfd052511fa7127c6522a78b19c4263fb7bbb8cd (diff)
downloadkutter-d7bacae29da2ffd2d8d3fe8d67441bb45098d4fb.tar.gz
kutter-d7bacae29da2ffd2d8d3fe8d67441bb45098d4fb.tar.xz
kutter-d7bacae29da2ffd2d8d3fe8d67441bb45098d4fb.zip
pru: Request the host not send more than 496 bytes to the pru
Writes over 496 bytes don't fit in a single "rpmsg" page. Request the host limit the number of bytes outstanding to avoid getting "write: (22)Invalid argument" errors. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/pru')
-rw-r--r--src/pru/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pru/main.c b/src/pru/main.c
index 2528a223..37354d90 100644
--- a/src/pru/main.c
+++ b/src/pru/main.c
@@ -115,6 +115,9 @@ DECL_INIT(timer_init);
* Console IO
****************************************************************/
+// Writes over 496 bytes don't fit in a single "rpmsg" page
+DECL_CONSTANT("RECEIVE_WINDOW", 496 - 1);
+
// Process any incoming commands
void
console_task(void)