This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys | |
import os | |
import glob | |
import subprocess | |
import getopt | |
def parse_project_option(keys, value, target): | |
key = keys.pop(0) |