BaseSequentialStream(quickie)

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
JohnL
Posts: 16
Joined: Mon Nov 11, 2013 12:49 am

BaseSequentialStream(quickie)

Post 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
User avatar
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: BaseSequentialStream(quickie)

Post 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
JohnL
Posts: 16
Joined: Mon Nov 11, 2013 12:49 am

Re: BaseSequentialStream(quickie)

Post by JohnL »

Thanks, I figured it might need to go that way.
Post Reply