SerialGPS.
Dependents: SerialGPS_TestProgram Nucleo_SerialGPS_to_PC Nucleo_SerialGPS_to_PC SensorInterface ... more
Diff: SerialBuffered.h
- Revision:
- 1:a5b887e09aa4
- Parent:
- 0:3d0c5d7e5d0a
diff -r 3d0c5d7e5d0a -r a5b887e09aa4 SerialBuffered.h --- a/SerialBuffered.h Mon Sep 20 06:03:38 2010 +0000 +++ b/SerialBuffered.h Tue Oct 12 22:22:28 2010 +0000 @@ -13,7 +13,7 @@ * @param rx A pin for receive. */ SerialBuffered(PinName tx, PinName rx); - + /** * Destroy. */ @@ -50,7 +50,7 @@ private: void handleInterrupt(); - static const int BUFFERSIZE = 4096; + static const int BUFFERSIZE = 2048; uint8_t buffer[BUFFERSIZE]; // points at a circular buffer, containing data from m_contentStart, for m_contentSize bytes, wrapping when you get to the end uint16_t indexContentStart; // index of first bytes of content uint16_t indexContentEnd; // index of bytes after last byte of content