The UART buffers have been resized —see #300, no more SRAM over-usage— but the 8 UART ports are still hard-coded, prompting a new issue about the consistency of how the ports are managed:
Serial* ports are hard-declared Serial, Serial1, ..., Serial7
while
SPI and TwoWire are soft-declared with the setModule() function
Could we use the setModule() function for all the ports, Serial*, SPI and TwoWire?
Only the first of those ports, namely Serial, SPI and Wire, could remain hard-coded.
From @rei-vilo on December 15, 2013 15:16
The UART buffers have been resized —see #300, no more SRAM over-usage— but the 8 UART ports are still hard-coded, prompting a new issue about the consistency of how the ports are managed:
Serial*
ports are hard-declaredSerial
,Serial1
, ...,Serial7
while
SPI
andTwoWire
are soft-declared with thesetModule()
functionCould we use the
setModule()
function for all the ports,Serial*
,SPI
andTwoWire
?Only the first of those ports, namely
Serial
,SPI
andWire
, could remain hard-coded.Copied from original issue: energia/Energia#306