Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Fix: connections
Browse files Browse the repository at this point in the history
  • Loading branch information
ruben-iteng committed Sep 12, 2024
1 parent 1ead9be commit 4991667
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/faebryk/library/ESP32_C3_MINI_1.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ def attach_to_footprint(self):
"27": self.gpio[19].signal,
# 28 is not connected
# 29 is not connected
"30": self.uart.rx.signal,
"31": self.uart.tx.signal,
"30": self.gpio[20].signal, # uart.rx,
"31": self.gpio[21].signal, # uart.tx,
# 32 is not connected
# 33 is not connected
# 34 is not connected
Expand Down Expand Up @@ -134,5 +134,5 @@ def attach_to_footprint(self):

designator_prefix = L.f_field(F.has_designator_prefix_defined)("U")
datasheet = L.f_field(F.has_datasheet_defined)(
"https://www.espressif.com/sites/default/files/russianDocumentation/esp32-c3-mini-1_datasheet_en.pdf"
"https://www.espressif.com/sites/default/files/documentation/esp32-c3-mini-1_datasheet_en.pdf"
)
29 changes: 28 additions & 1 deletion src/faebryk/library/ESP32_C3_MINI_1_ReferenceDesign.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,34 @@ def __preinit__(self):

# TODO: set the following in the pinmux
# jtag gpio 4,5,6,7
# USB gpio 18,19
self.esp32_c3_mini_1.esp32_c3.usb.usb_if.d.n.connect(
self.esp32_c3_mini_1.esp32_c3.gpio[18].signal
)
self.esp32_c3_mini_1.esp32_c3.usb.usb_if.d.p.connect(
self.esp32_c3_mini_1.esp32_c3.gpio[19].signal
)
# UART0 gpio 30/31 (default)
self.esp32_c3_mini_1.esp32_c3.uart[0].rx.connect(
self.esp32_c3_mini_1.esp32_c3.gpio[20]
)
self.esp32_c3_mini_1.esp32_c3.uart[0].tx.connect(
self.esp32_c3_mini_1.esp32_c3.gpio[21]
)

# UART1 gpio 8/9
self.esp32_c3_mini_1.esp32_c3.uart[1].rx.connect(
self.esp32_c3_mini_1.esp32_c3.gpio[8]
)
self.esp32_c3_mini_1.esp32_c3.uart[1].tx.connect(
self.esp32_c3_mini_1.esp32_c3.gpio[7]
)
# i2c
self.esp32_c3_mini_1.esp32_c3.i2c.sda.connect(
self.esp32_c3_mini_1.esp32_c3.gpio[3] # default 21
)
self.esp32_c3_mini_1.esp32_c3.i2c.scl.connect(
self.esp32_c3_mini_1.esp32_c3.gpio[2] # default 22
)

# connect USB
self.usb.connect(self.esp32_c3_mini_1.esp32_c3.usb)
Expand Down
2 changes: 1 addition & 1 deletion src/faebryk/library/ME6211C33M5G_N.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def attach_to_footprint(self):
{
"1": self.power_in.hv,
"2": self.power_in.lv,
"3": self.enable,
"3": self.enable.signal,
"5": self.power_out.hv,
}
)
Expand Down

0 comments on commit 4991667

Please sign in to comment.