diff --git a/regnual/types.h b/regnual/types.h index 6b727bf..ed28a12 100644 --- a/regnual/types.h +++ b/regnual/types.h @@ -7,4 +7,6 @@ typedef unsigned int uint32_t; #define TRUE 1 #define FALSE 0 +#define NULL 0 + #define __IO volatile diff --git a/src/usb_lld.c b/src/usb_lld.c index 578f764..5fc9bac 100644 --- a/src/usb_lld.c +++ b/src/usb_lld.c @@ -839,6 +839,7 @@ static void handle_setup0 (void) pw++; ctrl_p->wLength = *pw; + data_p->addr = NULL; data_p->len = 0; data_p->offset = 0;