
6 Aug
2010
6 Aug
'10
5:28 p.m.
Wolfgang Denk schrieb:
Dear "Reinhard Meyer (-VC)",
In message 4C5BE642.4020706@emk-elektronik.de you wrote:
Wolfgang Denk schrieb:
static unsigned char buffer[ENC_MAX_FRM_LEN] __attribute__ ((aligned(4)));
Thanks, sometimes the very obvious is hidden behind a large wooden board :)
Or, probably even better, use malloc() to allocate the buffer.
For each received packet? Could do that, but its not worth it.
Not for each packet, only for the first one, of course, or when initializing the driver.
Whats the benefit except for probably increased code size?
The only one I see is 1.5k more free RAM as long as the driver is not initialized/used...
Best Regards Reinhard