I'm studding the code from the usb audio demo. In the source file "usb_buffer.xc", I have found the function:
Code: Select all
buffer(register chanend c_aud_out, register chanend c_aud_in, ...)
Thanks,
Dieter
Code: Select all
buffer(register chanend c_aud_out, register chanend c_aud_in, ...)
Why it's necessary to do this for this particular function I'm not sure. There doesn't appear to be any other similar examples in the library code.The auto and register specifiers give the declared objects automatic storage class, and may be used only within functions. Such declarations also serve as definitions and cause storage to be reserved.