@@ -281,7 +281,7 @@ def print(self, out_source):
281
281
print ("};" , file = out_source )
282
282
print ("" , file = out_source )
283
283
print (
284
- "const pin_obj_t pin_{:s}_obj = PIN({:s}, {:d}, {:s}, {:s}, {:d});" .format (
284
+ "const machine_pin_obj_t pin_{:s}_obj = PIN({:s}, {:d}, {:s}, {:s}, {:d});" .format (
285
285
self .cpu_pin_name (),
286
286
self .port_letter (),
287
287
self .pin ,
@@ -295,7 +295,7 @@ def print(self, out_source):
295
295
296
296
def print_header (self , out_header ):
297
297
n = self .cpu_pin_name ()
298
- print ("extern const pin_obj_t pin_{:s}_obj;" .format (n ), file = out_header )
298
+ print ("extern const machine_pin_obj_t pin_{:s}_obj;" .format (n ), file = out_header )
299
299
print ("#define pin_{:s} (&pin_{:s}_obj)" .format (n , n ), file = out_header )
300
300
if self .alt_fn_count > 0 :
301
301
print ("extern const pin_af_obj_t pin_{:s}_af[];" .format (n ), file = out_header )
@@ -381,7 +381,9 @@ def parse_board_file(self, filename):
381
381
382
382
def print_named (self , label , named_pins , out_source ):
383
383
print (
384
- "STATIC const mp_rom_map_elem_t pin_{:s}_pins_locals_dict_table[] = {{" .format (label ),
384
+ "STATIC const mp_rom_map_elem_t machine_pin_{:s}_pins_locals_dict_table[] = {{" .format (
385
+ label
386
+ ),
385
387
file = out_source ,
386
388
)
387
389
for named_pin in named_pins :
@@ -395,7 +397,7 @@ def print_named(self, label, named_pins, out_source):
395
397
)
396
398
print ("};" , file = out_source )
397
399
print (
398
- "MP_DEFINE_CONST_DICT(pin_ {:s}_pins_locals_dict, pin_ {:s}_pins_locals_dict_table);" .format (
400
+ "MP_DEFINE_CONST_DICT(machine_pin_ {:s}_pins_locals_dict, machine_pin_ {:s}_pins_locals_dict_table);" .format (
399
401
label , label
400
402
),
401
403
file = out_source ,
@@ -428,7 +430,7 @@ def print_adc(self, adc_num, out_source):
428
430
self .adc_table_size [adc_num ] = table_size
429
431
print ("" , file = out_source )
430
432
print (
431
- "const pin_obj_t * const pin_adc{:d}[{:d}] = {{" .format (adc_num , table_size ),
433
+ "const machine_pin_obj_t * const pin_adc{:d}[{:d}] = {{" .format (adc_num , table_size ),
432
434
file = out_source ,
433
435
)
434
436
for channel in range (table_size ):
@@ -447,7 +449,7 @@ def print_header(self, out_header, obj_decls):
447
449
pin .print_header (out_header )
448
450
for adc_num , table_size in self .adc_table_size .items ():
449
451
print (
450
- "extern const pin_obj_t * const pin_adc{:d}[{:d}];" .format (
452
+ "extern const machine_pin_obj_t * const pin_adc{:d}[{:d}];" .format (
451
453
adc_num , table_size
452
454
),
453
455
file = out_header ,
0 commit comments