X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Farduino-mega%2Fexamples%2Farduino-mega_aprs%2Fcfg%2Fcfg_usb.h;fp=boards%2Farduino-mega%2Fexamples%2Farduino-mega_aprs%2Fcfg%2Fcfg_usb.h;h=e5a282b158fbac6b52e083113783e179688a57d1;hb=cd50c7c378c6addd1af1d4f64e5a56240ee5dbe2;hp=0000000000000000000000000000000000000000;hpb=fb92ffd3a1318c75cf703770596a007ed72d4b13;p=bertos.git diff --git a/boards/arduino-mega/examples/arduino-mega_aprs/cfg/cfg_usb.h b/boards/arduino-mega/examples/arduino-mega_aprs/cfg/cfg_usb.h new file mode 100644 index 00000000..e5a282b1 --- /dev/null +++ b/boards/arduino-mega/examples/arduino-mega_aprs/cfg/cfg_usb.h @@ -0,0 +1,64 @@ +/** + * \file + * + * + * \author Andrea Righi + * + * \brief Configuration file for the USB driver module + */ + +#ifndef CFG_USB_H +#define CFG_USB_H + +/** + * Module logging level. + * + * $WIZ$ type = "enum" + * $WIZ$ value_list = "log_level" + */ +#define USB_LOG_LEVEL LOG_LVL_INFO + +/** + * module logging format. + * + * $WIZ$ type = "enum" + * $WIZ$ value_list = "log_format" + */ +#define USB_LOG_FORMAT LOG_FMT_TERSE + +/** + * Size of the USB buffer used for endpoint transfers [bytes]. + * $WIZ$ type = "int" + * $WIZ$ min = 2 + */ +#define CONFIG_USB_BUFSIZE 64 + +#endif /* CFG_USB_H */