docs: prevent inline doc spam for reexports.

This commit is contained in:
Dario Nieuwenhuis 2022-03-04 17:41:27 +01:00
parent 35636953b2
commit 94b232cf88
4 changed files with 8 additions and 0 deletions

View File

@ -4,6 +4,7 @@ pub mod pac {
// The nRF5340 has a secure and non-secure (NS) mode.
// To avoid cfg spam, we remove _ns or _s suffixes here.
#[doc(no_inline)]
pub use nrf5340_app_pac::{
interrupt,
Interrupt,
@ -57,6 +58,7 @@ pub mod pac {
};
#[cfg(feature = "nrf5340-app-ns")]
#[doc(no_inline)]
pub use nrf5340_app_pac::{
CLOCK_NS as CLOCK,
COMP_NS as COMP,
@ -127,6 +129,7 @@ pub mod pac {
};
#[cfg(feature = "nrf5340-app-s")]
#[doc(no_inline)]
pub use nrf5340_app_pac::{
CACHEDATA_S as CACHEDATA,
CACHEINFO_S as CACHEINFO,

View File

@ -4,6 +4,7 @@ pub mod pac {
// The nRF5340 has a secure and non-secure (NS) mode.
// To avoid cfg spam, we remove _ns or _s suffixes here.
#[doc(no_inline)]
pub use nrf5340_net_pac::{
interrupt,
Interrupt,

View File

@ -4,6 +4,7 @@ pub mod pac {
// The nRF9160 has a secure and non-secure (NS) mode.
// To avoid cfg spam, we remove _ns or _s suffixes here.
#[doc(no_inline)]
pub use nrf9160_pac::{
interrupt,
Interrupt,
@ -42,6 +43,7 @@ pub mod pac {
};
#[cfg(feature = "nrf9160-ns")]
#[doc(no_inline)]
pub use nrf9160_pac::{
CLOCK_NS as CLOCK,
DPPIC_NS as DPPIC,
@ -96,6 +98,7 @@ pub mod pac {
};
#[cfg(feature = "nrf9160-s")]
#[doc(no_inline)]
pub use nrf9160_pac::{
CC_HOST_RGF_S as CC_HOST_RGF,
CLOCK_S as CLOCK,

View File

@ -7,6 +7,7 @@ use embassy_hal_common::unborrow;
use crate::gpio::sealed::AFType;
use crate::{peripherals, rcc::RccPeripheral};
#[doc(no_inline)]
pub use bxcan::*;
pub struct Can<'d, T: Instance + bxcan::Instance> {