[quote user="Bruno Scherrer"]but what about the size (I guess in your example it's hard set to 0x1000) can we get something like _buffer_size that can be passed to the code?[/quote]
The linker supports a limited form of C preprocessing. You could use that to wrap it in a #define. But that's about it.
Thanks and regards,
-George