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

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

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

Loading…
Cancel
Save