Add defines for USB bulk buffer size & mask.

This commit is contained in:
Martin Ling
2021-12-22 01:58:10 +00:00
parent fd073e391f
commit be060ab753

View File

@ -26,10 +26,13 @@
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>
#define USB_BULK_BUFFER_SIZE 0x8000
#define USB_BULK_BUFFER_MASK 0x7FFF
/* Address of usb_bulk_buffer is set in ldscripts. If you change the name of this /* Address of usb_bulk_buffer is set in ldscripts. If you change the name of this
* variable, it won't be where it needs to be in the processor's address space, * variable, it won't be where it needs to be in the processor's address space,
* unless you also adjust the ldscripts. * unless you also adjust the ldscripts.
*/ */
extern uint8_t usb_bulk_buffer[32768]; extern uint8_t usb_bulk_buffer[USB_BULK_BUFFER_SIZE];
#endif/*__USB_BULK_BUFFER_H__*/ #endif/*__USB_BULK_BUFFER_H__*/