ShiboSoftwareDev/am69-pi5

A 85×56 mm 10-layer AM69A single-board computer carrier integrates 8 GiB LPDDR4, 32 GB eMMC, Pi-style expansion and multimedia/USB/Ethernet connectors, multi-rail PMIC power, STM32 boot/power control, USB-C PD, SD/fan protection, and HDI-controlled high-speed routing.

Version
0.0.8-engineering-draft-20261107-dqs19
License
unset
Stars
0

Use with the tscircuit CLI

tsci is the tscircuit CLI. Install it with npm install -g tscircuit.

tsci clone ShiboSoftwareDev/am69-pi5  # download the package files into ./am69-pi5
tsci add ShiboSoftwareDev/am69-pi5    # add it to your project as @tsci/ShiboSoftwareDev.am69-pi5

In a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.

firmware/boot-controller/pd_contract.h

#ifndef AM69_PD_CONTRACT_H
#define AM69_PD_CONTRACT_H
#include <stdint.h>
#include <stdbool.h>
// ST UM2650 registers; two PE/RDO reads reject torn negotiation snapshots.
typedef struct {
  bool transfer_ok,sink_enabled;
  uint8_t port,typec,monitor,pe_before,pe_after,pdo_count;
  uint32_t pdo1,rdo_before,rdo_after;
} PdSnapshot;
typedef struct {bool candidate,allowed;uint32_t since,last_sample;} PdQualification;
bool pd_snapshot_5v_5a(const PdSnapshot *s);
bool pd_qualify(PdQualification *q,const PdSnapshot *s,uint32_t now);
#endif