Hi,
I am building a chain of 11 TeensyLC units connected by hardwareserial.
I would like to blast packets of 270 bytes of data from one to the next, and this would be a bit easier to make work if the buffers were at least that size, so I can let the hardware transfer out & in the packets, then process them in the code (that is also doing other things).
I have found several people describing how to change the Arduino core code to achieve larger buffers, but I am a bit lost with the TeensyLC, as it dosen't directly have a HardwareSerial.cpp in the cores.teensy3 dir, and the hardwareserial1.cpp (etc) only contains :
Which actual hardwareserial.cpp code is actually used ?
The one in cores.teensy can be modified up to buffer size 256, due to the uint8_t indexing.
The one in the arduino 1.6.3 I have installed seems to allow buffers larger than 256 bytes as it has 16 bit var alternative defines in the .h :
(ps, all the teensy lc (and 3.1) stuff is also in a subdir 'avr' which is slightly non-intuitive as they are Arm)
Thanks if you can help...I am new to all this having come from PIC and MeLabs PBP compiler.
I am building a chain of 11 TeensyLC units connected by hardwareserial.
I would like to blast packets of 270 bytes of data from one to the next, and this would be a bit easier to make work if the buffers were at least that size, so I can let the hardware transfer out & in the packets, then process them in the code (that is also doing other things).
I have found several people describing how to change the Arduino core code to achieve larger buffers, but I am a bit lost with the TeensyLC, as it dosen't directly have a HardwareSerial.cpp in the cores.teensy3 dir, and the hardwareserial1.cpp (etc) only contains :
Code:
#include "HardwareSerial.h"
HardwareSerial Serial1;
void serialEvent1() __attribute__((weak));
void serialEvent1() {}
Which actual hardwareserial.cpp code is actually used ?
The one in cores.teensy can be modified up to buffer size 256, due to the uint8_t indexing.
The one in the arduino 1.6.3 I have installed seems to allow buffers larger than 256 bytes as it has 16 bit var alternative defines in the .h :
Code:
#if (SERIAL_TX_BUFFER_SIZE>256)
typedef uint16_t tx_buffer_index_t;
#else
typedef uint8_t tx_buffer_index_t;
#endif
#
(ps, all the teensy lc (and 3.1) stuff is also in a subdir 'avr' which is slightly non-intuitive as they are Arm)
Thanks if you can help...I am new to all this having come from PIC and MeLabs PBP compiler.