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>
This commit is contained in:
Kevin O'Connor 2021-02-12 10:57:13 -05:00
parent dfd052511f
commit d7bacae29d
1 changed files with 3 additions and 0 deletions

View File

@ -115,6 +115,9 @@ DECL_INIT(timer_init);
* Console IO * Console IO
****************************************************************/ ****************************************************************/
// Writes over 496 bytes don't fit in a single "rpmsg" page
DECL_CONSTANT("RECEIVE_WINDOW", 496 - 1);
// Process any incoming commands // Process any incoming commands
void void
console_task(void) console_task(void)