[En-Nut-Discussion] Define CAN_BUF_SIZE in some configuartion file

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Thu Feb 5 11:18:41 CET 2009


>>>>> "Henrik" == Henrik Maier <hmnews at proconx.com> writes:

    Henrik> Hi Uwe, I suppose people added only as much configuration
    Henrik> options as they needed when developing the CAN driver.

    Henrik> One option for you is to pass -DCAN_BUF_SIZE=4 to the compiler
    Henrik> when building Nut/OS, by adding this to either NutConf.mk or
    Henrik> UserConf.mk.

    Henrik> However a more permanent support through Nutconf of such an
    Henrik> option makes perfectly sense. I added a new option
    Henrik> ATCAN_RX_BUF_SIZE to conf/arch/avr.nut and support for it in
    Henrik> arch/avr/dev/atcan.c. Please get these two files from the CVS
    Henrik> head. Add ATCAN_RX_BUF_SIZE = 4 to your .conf file and it all
    Henrik> should work.

Thanks very much, Henrik!

Just a cosmetic comment. In
            {
                macro = "ATCAN_RX_BUF_SIZE",
                brief = "Receive buffers",
                description = "Number of CAN messages in receive buffer. \
		Default is 64.",
                file = "include/cfg/arch/avrpio.h"
            }
is this 'file = "include/cfg/arch/avrpio.h"' right?

 
-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------



More information about the En-Nut-Discussion mailing list