stmhal: Add "CDC" option to pyb.usb_mode, for CDC device only.

This commit is contained in:
Damien George
2015-02-03 20:52:48 +00:00
parent d39c7aa517
commit 39ce2db181
8 changed files with 252 additions and 99 deletions

View File

@@ -10,7 +10,7 @@ import string
def parse_usb_ids(filename):
rv = dict()
if filename == 'usbd_desc_cdc_msc.c':
if filename == 'usbd_desc.c':
for line in open(filename).readlines():
line = line.rstrip('\r\n')
match = re.match('^#define\s+(\w+)\s+0x([0-9A-Fa-f]+)$', line)