Skip to content

Instantly share code, notes, and snippets.

#define NUM_INTERFACES (2)
#define NUM_ENDPOINTS (3)
GUD_InterfaceInitTypeDef interfaces[NUM_INTERFACES];
GUD_EndpointInitTypeDef endpoints[NUM_ENDPOINTS];
static GUD_GenericUsbDriverTypeDef hgud;
static GUD_CallbacksTypeDef callbacks = { GetStringDescriptor };
static char serial[25];
#!/usr/bin/python
data = self.request.recv(4)
if len(data) == 0:
print "Length is 0. Aborting."
break
length = struct.unpack("I", data)[0]
offset = 0
all_data = []
while offset < length:
#!/usr/bin/python
import sys
import os
import xml.etree.ElementTree as ET
import time
# no arguments
if len(sys.argv) == 1:
sys.exit("Usage: " + sys.argv[0] + " Project_Directory")
#!/usr/bin/python
import sys
import os
import glob
import subprocess
import getopt
def parse_project_option(keys, value, target):
key = keys.pop(0)