Help defines for SPIBUS

Uwe Bonnes <bon-1JbLm1bU5j5ZIx36JBfelj3+ndqKAYMe9FMPySWZwLkb1SvskN2V4Q@public.gmane.org> Tue, 29 Mar 2016 15:11:57 +0200
Newsgroups gmane.comp.hardware.microcontrollers.ethernut
Message-ID <[email protected]>
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-1JbLm1bU5j5ZIx36JBfelj3+ndqKAYMe9FMPySWZwLkb1SvskN2V4Q@public.gmane.org

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 1623569 ------- Fax. 06151 1623305 ---------
_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion