Skip to main content

consortium_data/
lib.rs

1// Copyright 2026 Ethan Wu
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14//
15// SPDX-License-Identifier: Apache-2.0
16
17//! Static chip data for the Consortium project, embedded at compile time.
18//!
19//! This crate owns the chip-family databases (`database/memory/*.yaml`), the
20//! generated per-core chip dumps (`database/chip/*.json`), the extracted
21//! peripheral register definitions (`database/peri/`), and the vendor
22//! device-tree sources (`database/dts/`).
23//! It also owns the resolvers that turn a `[profile] chip` part number into a
24//! parsed [`database::ChipDatabase`] or a per-core [`chipmap::ChipMap`].
25
26pub mod chipmap;
27pub mod database;
28pub mod dts;
29mod error;
30
31pub use error::DataError;