@@ -35,7 +35,6 @@ def __init__(self, pins,
35
35
with_cdc = True ,
36
36
with_microsoft_os_1_0 = False , # Set to True for interface 0,
37
37
# or pass a list() of interfaces
38
- force_contiguous_blockram = False ,
39
38
bufferize_ep_in = True ,
40
39
custom_ep = [],
41
40
** kwargs ):
@@ -65,7 +64,6 @@ def __init__(self, pins,
65
64
self .control_ep_handlers = []
66
65
self .with_cdc = with_cdc
67
66
self .with_microsoft_os_1_0 = with_microsoft_os_1_0
68
- self .force_contiguous_blockram = force_contiguous_blockram
69
67
self .bufferize_ep_in = bufferize_ep_in
70
68
71
69
self .kwargs = kwargs
@@ -122,17 +120,6 @@ def create_descriptors(self):
122
120
123
121
def add_microsoft_os_1_0 (self , descriptors ):
124
122
""" Add Microsoft OS 1.0 descriptors for Windows compatibility. """
125
-
126
- if self .force_contiguous_blockram :
127
- # This is a workaround for LUNA GetDescriptorHandlerBlock
128
- # that only supports contiguous indexes for its ROM layout.
129
- # We create fake descriptors as padding, to force BSRAM allocation
130
- # for designs where building a non contiguous descriptor in
131
- # LUTRAM is not an option (too many resources wasted)
132
- # but we can spare some more BSRAM blocks.
133
- while descriptors ._next_string_index != 0xee :
134
- descriptors .get_index_for_string (str (descriptors ._next_string_index ))
135
-
136
123
descriptors .add_descriptor (get_string_descriptor ("MSFT100\xee " ), index = 0xee )
137
124
138
125
msft_descriptors = MicrosoftOS10DescriptorCollection ()
@@ -178,7 +165,7 @@ def elaborate(self, platform):
178
165
descriptors ,
179
166
# Windows compatible descriptors cannot be build in block ram
180
167
# because MSFT string at index 0xee is not contiguous.
181
- avoid_blockram = self . with_microsoft_os_1_0 and not self . force_contiguous_blockram ,
168
+ avoid_blockram = False ,
182
169
)
183
170
184
171
# Add optional custom requests handlers (vendor)
0 commit comments