I would like to know what is the advantage of using a macro instead of declaring a function.
For example I found this line in a header file of an USB library for an ATMEL microcontroller:
#define udd_detach_device() ( Clr_bits(UDP->UDP_TXVC, UDP_TXVC_PUON))
Why is it defined like this, and not like a function?
Thank you for your help.