Browse Source

Use MODSERIAL with big RX buffer

Thomas Buck 8 years ago
parent
commit
fddb8659f0
2 changed files with 5 additions and 1 deletions
  1. 2
    0
      makefile
  2. 3
    1
      src/arm/serial.cpp

+ 2
- 0
makefile View File

@@ -86,6 +86,7 @@ else
86 86
 	CARGS += -fomit-frame-pointer
87 87
 	CARGS += $(PRE_DEFS)
88 88
 	CPPARGS = -I$(EXTRAINCDIR)
89
+	CPPARGS += -Ilib/MODSERIAL
89 90
 	CPPARGS += -Ilib/mbed
90 91
 	CPPARGS += -Ilib/mbed/TARGET_LPC1768
91 92
 	CPPARGS += -Ilib/mbed/TARGET_LPC1768/TARGET_NXP
@@ -172,6 +173,7 @@ program: $(BUILDDIR)/$(TARGET).hex
172 173
 .PHONY: copy
173 174
 copy: $(BUILDDIR)/$(TARGET).bin
174 175
 	cp $(BUILDDIR)/$(TARGET).bin /Volumes/MBED/$(TARGET).bin
176
+	sync
175 177
 
176 178
 .PHONY: clean
177 179
 clean:

+ 3
- 1
src/arm/serial.cpp View File

@@ -8,9 +8,11 @@
8 8
 #include "mbed.h"
9 9
 #pragma GCC diagnostic pop
10 10
 
11
+#include "MODSERIAL.h"
12
+
11 13
 #define UART_COUNT 1
12 14
 
13
-static Serial serial(USBTX, USBRX);
15
+static MODSERIAL serial(USBTX, USBRX, 2048, 32);
14 16
 
15 17
 extern "C" {
16 18
 

Loading…
Cancel
Save