avr-libc-corelib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Avr-libc-corelib] The SPI implementation


From: Ron Kreymborg
Subject: RE: [Avr-libc-corelib] The SPI implementation
Date: Wed, 23 Sep 2009 15:18:37 +1000

> I would rather have spi_init(mode,CLOCK speed, SPI_PHASE phase,
> SPI_CLOCK_POL
> polarity);
> Than having two seperate init block that do most of the same thing,

Well the master call would call the slave call in the library after setting
the delay flag, so no duplication.

> Missed SPI_CLK2 = 1, may not be available to all device though. But of
> course it can't be used if you just pass the value to the register.

No spi clock Fosc/2 as many spi slaves are only guaranteed to work at
Fosc/4.

Ron





reply via email to

[Prev in Thread] Current Thread [Next in Thread]