Browse Source

AP_IOMCU: reduce uart buffer sizes

c415-sdk
Andrew Tridgell 5 years ago
parent
commit
2d02062bfc
  1. 4
      libraries/AP_IOMCU/AP_IOMCU.cpp

4
libraries/AP_IOMCU/AP_IOMCU.cpp

@ -64,7 +64,7 @@ AP_IOMCU *AP_IOMCU::singleton; @@ -64,7 +64,7 @@ AP_IOMCU *AP_IOMCU::singleton;
void AP_IOMCU::init(void)
{
// uart runs at 1.5MBit
uart.begin(1500*1000, 256, 256);
uart.begin(1500*1000, 128, 128);
uart.set_blocking_writes(true);
uart.set_unbuffered_writes(true);
@ -100,7 +100,7 @@ void AP_IOMCU::thread_main(void) @@ -100,7 +100,7 @@ void AP_IOMCU::thread_main(void)
thread_ctx = chThdGetSelfX();
chEvtSignal(thread_ctx, initial_event_mask);
uart.begin(1500*1000, 256, 256);
uart.begin(1500*1000, 128, 128);
uart.set_blocking_writes(true);
uart.set_unbuffered_writes(true);

Loading…
Cancel
Save