set data_p->addr=NULL
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 22 May 2012 07:37:30 +0000 (16:37 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 22 May 2012 07:37:30 +0000 (16:37 +0900)
regnual/types.h
src/usb_lld.c

index 6b727bf..ed28a12 100644 (file)
@@ -7,4 +7,6 @@ typedef unsigned int uint32_t;
 #define TRUE  1
 #define FALSE 0
 
+#define NULL  0
+
 #define     __IO    volatile
index 578f764..5fc9bac 100644 (file)
@@ -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;