Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor and move functions #132

Merged
merged 7 commits into from
Sep 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions examples/stm32_usb_buck/connection_circuits.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

# Connectors, terminal blocks, etc


# @SubCircuit
# def headers(i2c_sda, i2c_scl, uart_tx, uart_rx, vdd, gnd):


# Debug header circuit
@SubCircuit
def debug_header(reset, swdclk, swdio, swo, vref, gnd):
Expand Down
6 changes: 3 additions & 3 deletions examples/stm32_usb_buck/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
stm32.stm32f405r()
pc.power_circuits()

# Generate netlist
netlist_path = "/home/cdsfsmattner/Desktop/skidl/examples/stm32_usb_buck/stm32/netlist.net"
generate_netlist(file_ = netlist_path)
# # Generate netlist
# netlist_path = "/home/cdsfsmattner/Desktop/skidl/examples/stm32_usb_buck/stm32/netlist.net"
# generate_netlist(file_ = netlist_path)

# Generate schematic
schematic_path = "/home/cdsfsmattner/Desktop/skidl/examples/stm32_usb_buck/stm32/stm32.sch"
Expand Down
3 changes: 1 addition & 2 deletions examples/stm32_usb_buck/power_circuits.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

@package
def power_circuits():
buck(pn.v_12v, pn.v_3v3, pn.v_5v, pn.gnd)
buck(pn.v_12v,pn.v_5v,pn.v_3v3, pn.gnd)
anlg_flt(pn.vdda, pn.gnd, pn.vdda)


Expand All @@ -15,7 +15,6 @@ def anlg_flt(vdd, gnd, vdda):
c1 = Part("Device", 'C_Small', footprint='C_0603_1608Metric', value='1uF')
c2 = Part("Device", 'C_Small', footprint='C_0603_1608Metric', value='10nF')
l1 = Part("Device", 'L_Small', footprint='L_0603_1608Metric', value='29nH')

# Connect pins
vdda += c1.p1, c2.p1, l1.p2
vdd += l1.p1
Expand Down
Loading