imrishabh18/STM32F746G-DISCO
This code defines the hardware layout of a USB audio vu-meter circuit, including key components such as voltage regulators, microcontroller (STM32F303CCT6), audio codec (PCM2902), USB-Ethernet isolator, power regulation, reset switches, and associated passive components, with their physical footprints, pin configurations, and routing for PCB design.
- Version
- 1.0.2
- License
- unset
- Stars
- 0
src/components/DebugHeader/DebugHeader.tsx
import { supplierPartNumbers } from "../../parts/lcsc";
import { LAYOUT } from "../../utils/constants";
import { nets } from "../../utils/nets";
const swdHeaderPinLabels = ["VCC", "SWDIO", "GND", "SWCLK", "NRST"];
const bootHeaderPinLabels = ["BOOT0", "3V3", "GND"];
export function DebugHeader() {
return (
<>
<pinheader
name="J2"
pinCount={5}
footprint="pinrow5"
pinLabels={swdHeaderPinLabels}
supplierPartNumbers={supplierPartNumbers.pinHeader}
pcbX={LAYOUT.debug.swd.x}
pcbY={LAYOUT.debug.swd.y}
/>
<pinheader
name="J3"
pinCount={3}
footprint="pinrow3"
pinLabels={bootHeaderPinLabels}
supplierPartNumbers={supplierPartNumbers.pinHeader}
pcbX={LAYOUT.debug.boot0.x}
pcbY={LAYOUT.debug.boot0.y}
/>
<trace from="U2.PA13" to="J2.SWDIO" />
<trace from="U2.PA14" to="J2.SWCLK" />
<trace from={nets.reset} to="J2.NRST" />
<trace from="J2.VCC" to={nets.v3v3} />
<trace from="J2.GND" to={nets.gnd} />
<trace from={nets.boot0} to="J3.BOOT0" />
<trace from="J3.3V3" to={nets.v3v3} />
<trace from="J3.GND" to={nets.gnd} />
<silkscreentext
pcbX={LAYOUT.debug.swdLabel.x}
pcbY={LAYOUT.debug.swdLabel.y}
text="SWD"
fontSize="1mm"
/>
<silkscreentext
pcbX={LAYOUT.debug.boot0Label.x}
pcbY={LAYOUT.debug.boot0Label.y}
text="BOOT0"
fontSize="1mm"
/>
</>
);
}