Skip to content
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
2 changes: 1 addition & 1 deletion packages/espressif-esp32-c3/ato.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ package:
dependencies:
- type: registry
identifier: atopile/buttons
release: 0.2.4
release: 0.4.0
4 changes: 2 additions & 2 deletions packages/espressif-esp32-c3/espressif-esp32-c3-mini.ato
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import SPI
import JTAG
import MultiSPI
import XtalIF
import has_single_electric_reference_shared
import has_single_electric_reference

from "atopile/buttons/buttons.ato" import Button
from "atopile/buttons/buttons.ato" import VerticalButton
Expand All @@ -46,7 +46,7 @@ module ESP32_C3_MINI_1_base_model from ESP32_C3FH4_model:
power_rtc ~ power
power_radio ~ power

trait has_single_electric_reference_shared
trait has_single_electric_reference

module ESP32_C3_MINI_1_model from ESP32_C3_MINI_1_base_model:
"""
Expand Down
4 changes: 2 additions & 2 deletions packages/espressif-esp32-c3/espressif-esp32-c3-wroom.ato
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import SPI
import JTAG
import MultiSPI
import XtalIF
import has_single_electric_reference_shared
import has_single_electric_reference

from "atopile/buttons/buttons.ato" import Button
from "atopile/buttons/buttons.ato" import VerticalButton
Expand All @@ -45,7 +45,7 @@ module ESP32_C3_WROOM_02_base_model from ESP32_C3_model:
power_rtc ~ power
power_radio ~ power

trait has_single_electric_reference_shared
trait has_single_electric_reference

module ESP32_C3_WROOM_02_N4_model from ESP32_C3_WROOM_02_base_model:
"""
Expand Down
28 changes: 12 additions & 16 deletions packages/espressif-esp32-c3/espressif-esp32-c3.ato
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,12 @@ QFN32 (5x5 mm) package
#pragma experiment("BRIDGE_CONNECT")
#pragma experiment("MODULE_TEMPLATING")

import has_designator_prefix
import has_part_picked
import is_atomic_part

import ElectricPower
import ElectricSignal
import Capacitor
import Resistor
import MultiSPI
import SPI
import I2C
import I2S
import USB2_0
import USB2_0_IF
import JTAG
import UART
Expand Down Expand Up @@ -67,15 +60,18 @@ module ESP32_C3_base_model:
assert power_mspi.voltage within 3.3V +/- 10% # TODO: there is also a 1.1V mode?

# non muxable internal connections
gpio[0] ~ adc1[0]
gpio[1] ~ adc1[1]
gpio[2] ~ adc1[2]
gpio[3] ~ adc1[3]
gpio[4] ~ adc1[4]
gpio[5] ~ adc2

gpio[18] ~ usb_if.d.n
gpio[19] ~ usb_if.d.p
# ADC/USB are ElectricSignal, GPIOs are ElectricLogic — connect at
# the line level so they share the physical pin without forming a
# cross-type bus (which breaks bus-parameter resolution).
gpio[0].line ~ adc1[0].line
gpio[1].line ~ adc1[1].line
gpio[2].line ~ adc1[2].line
gpio[3].line ~ adc1[3].line
gpio[4].line ~ adc1[4].line
gpio[5].line ~ adc2.line

gpio[18].line ~ usb_if.d.n.line
gpio[19].line ~ usb_if.d.p.line

gpio[4] ~ jtag.tms
gpio[5] ~ jtag.tdi
Expand Down
Loading
Loading