stm32f4xx/chip_specific/
chip_specs.rs

1// Licensed under the Apache License, Version 2.0 or the MIT License.
2// SPDX-License-Identifier: Apache-2.0 OR MIT
3// Copyright OxidOS Automotive SRL.
4//
5// Author: Ioan-Cristian CÎRSTEA <ioan.cirstea@oxidos.io>
6
7//! Trait that encompasses chip specifications
8//!
9//! The main use of this trait is to be passed as a bound for the type parameter for chip
10//! peripherals in crates such as `stm32f429zi`.
11
12use crate::chip_specific::clock_constants::ClockConstants;
13use crate::chip_specific::flash::FlashChipSpecific;
14
15pub trait ChipSpecs: ClockConstants + FlashChipSpecific {}
16
17impl<T: ClockConstants + FlashChipSpecific> ChipSpecs for T {}