[riot-devel] API proficiency levels

Kaspar Schleiser kaspar at schleiser.de
Fri May 22 15:56:49 CEST 2015


Hi,

On 05/22/15 15:44, Joakim Gebart wrote:
> I like the idea of getting rid of some redundant input validation. For
> example, if you are internally using spi_transfer_byte to provide
> spi_transfer_regs, then if the SPI device is valid for the first byte
> transferred, then it is probably going to be valid for the rest of the
> bytes in the same function call chain.
I propose that a device is checked once for validity when calling the
init_function, and then not anymore...

Kaspar


More information about the devel mailing list