yield MPU_9250.MPU_9250('U3', RESV_1=vcc3_3, VDDIO=vcc3_3, AD0_SDO=sensor_spi.MISO, REGOUT=REGOUT, #FSYNC=imu_FSYNC, INT=imu_INT, VDD=vcc3_3, GND=gnd, RESV_20=gnd, nCS=imu_spi_nCS, SCL_SCLK=sensor_spi.SCLK, SDA_SDI=sensor_spi.MOSI, ) # EXTERNAL IMUs yield SH.SM06B_SRSS_TB('VCC GND SCLK MOSI MISO nCS'.split(' '))('P9', VCC=vcc3_3, GND=gnd, SCLK=sensor_spi.SCLK, MOSI=sensor_spi.MOSI, MISO=sensor_spi.MISO, nCS=imu_spi_nCS, MECHANICAL=gnd, ) desc = main() kicad.generate(desc, 'kicad') bom.generate(desc, 'bom', quantity=10, add_spares=False) #netlist_graph2.generate(desc, 'netlist.svg')
)) @util.listify def micro(prefix, gnd, vcc3_0): # XXX decoupling # XXX reset line # XXX SWD header jtag = harnesses.JTAG.new(prefix+'mc_') yield STM32F103TB(prefix+'U1', VSS=gnd, BOOT0=gnd, NRST=vcc3_0, VDD=vcc3_0, PA13=jtag.TMS, PA14=jtag.TCK, PA15=jtag.TDI, PB3=jtag.TDO, PB4=jtag.TRST, ) desc = main() kicad.generate(desc, 'kicad') bom.generate(desc, 'bom') ucf.generate( util.find(list(util.flatten(desc)), lambda part: part.name == 'U2'), [p for p, n in _XC2C128_6VQG100C_pin_names if n.startswith('IO')], 'cpld.ucf')