[En-Nut-Discussion] Define CAN_BUF_SIZE in some configuartion file
Uwe Bonnes
bon at elektron.ikp.physik.tu-darmstadt.de
Wed Feb 4 19:19:26 CET 2009
Hello,
nut/arch/avr/dev/atcan.c defines
#ifndef CAN_BUF_SIZE
# define CAN_BUF_SIZE 64
#endif
and later allocs CAN_BUF_SIZE * sizeof(CANFRAME)
On a board without external RAM, the alloc will/may fail and the CAN device
will fail too. Is there any way to define CAN_BUF_SIZE in some custom
.conf file and not changing it in the source
It seems that it is not enough to add a line like
CAN_BUF_SIZE = "4"
in my custom xxx.conf file.
--
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