Lines Matching refs:pins
17 Generate pins.cpp for a specified target, using target definitions from the
120 Enumerate pins specified in PinNames.h, by looking for a PinName enum
140 def write_pins_to_file(pins, pins_file, out_cpp_file):
142 Write the generated pins for a specified mbed board into the output C++ file.
149 '''.format(len(pins))
151 lengths = ',\n '.join(str(len(pin)) for pin in pins)
158 magic_values = ',\n '.join(pins)
165 magic_strings = ',\n '.join('"' + pin + '"' for pin in pins)
185 Generate pins.cpp for a specified mbed board, using target definitions from the
194 default='source/pins.cpp',
211 # enumerate pins from PinNames.h
212 pins = enumerate_pins(pins_file, ['./tools'] + list(includes), defines)
215 pins = sorted(pins, key=lambda x: (len(x), x.lower()))
217 write_pins_to_file(pins, pins_file, args.c)