[En-Nut-Discussion] Help defines for SPIBUS
Uwe Bonnes
bon at elektron.ikp.physik.tu-darmstadt.de
Tue Mar 29 15:11:57 CEST 2016
Hello,
at the moment, SPIBUS transfers, alloc and release are written like
spi_mmc.c:246: (*bus->bus_transfer) (node, dummy_tx_buf, &b, 1);
It there any reason no define like
#define NutSpiBusTransfer(NODE, bi, bo, cnt)\
((NODE.node_bus)->bus_transfer)(&NODE, bi, bo, cnt)
or a wrapper function is used for better readability?
Bye
--
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 1623569 ------- Fax. 06151 1623305 ---------
More information about the En-Nut-Discussion
mailing list