Page 1 of 1
BaseSequentialStream(quickie)
Posted: Wed Apr 16, 2014 12:17 am
by JohnL
Quick question, I'm writing code targeting the stmf0's Uart right now. can a base sequential stream be SPI based? (Can the shell target SPI peripheral?)
Thanks
Re: BaseSequentialStream(quickie)
Posted: Wed Apr 16, 2014 7:12 am
by Giovanni
Hi,
No but you could implement a wrapper around the SPI driver. SPI does not implement that interface because it is synchronous and master-authoritative, meaning that you cannot receive anything if you don't transmit something.
Giovanni
Re: BaseSequentialStream(quickie)
Posted: Wed Apr 16, 2014 10:30 pm
by JohnL
Thanks, I figured it might need to go that way.