Skip to content

Commit efb4bb3

Browse files
committed
Increased IRQ circle buffer to contain max. page data of 2KB
1 parent 7da667c commit efb4bb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firmware/usb_cdc/usb_endp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void EP1_IN_Callback (void)
6767
* Return : None.
6868
*******************************************************************************/
6969
#define PACKET_SIZE 64
70-
#define CIRC_BUF_SIZE 32
70+
#define CIRC_BUF_SIZE 34 /* 62 * 34 = ~2K of data (max. NAND page) */
7171

7272
typedef uint8_t packet_t[PACKET_SIZE];
7373

0 commit comments

Comments
 (0)