Fix warning without unstable (#4107)

This commit is contained in:
Dániel Buga 2025-09-12 21:12:01 +02:00 committed by GitHub
parent a5a0833318
commit 63009c8163
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 1 deletions

View File

@ -699,7 +699,7 @@ impl crate::interrupt::InterruptConfigurable for Io<'_> {
for_each_analog_function! {
(($_ch:ident, ADCn_CHm, $_n:literal, $_m:literal), $gpio:ident) => {
#[cfg_attr(docsrs, doc(cfg(feature = "unstable")))]
#[instability::unstable]
impl $crate::gpio::AnalogPin for crate::peripherals::$gpio<'_> {
#[cfg(riscv)]
fn set_analog(&self, _: private::Internal) {

View File

@ -76,6 +76,7 @@ macro_rules! rtcio_analog {
impl $crate::peripherals::$pin_peri<'_> {
/// Configures the pin for analog mode.
#[cfg(feature = "unstable")]
pub(crate) fn set_analog_impl(&self) {
use $crate::gpio::RtcPin;
let rtcio = $crate::peripherals::RTC_IO::regs();

View File

@ -134,6 +134,7 @@ for_each_lp_function! {
for_each_analog_function! {
(($_ch:ident, ADCn_CHm, $_n:literal, $_m:literal), $gpio:ident) => {
impl crate::peripherals::$gpio<'_> {
#[cfg(feature = "unstable")]
pub(crate) fn set_analog_impl(&self) {
use crate::gpio::RtcPin;
enable_iomux_clk_gate();

View File

@ -74,6 +74,7 @@ macro_rules! rtcio_analog {
$crate::ignore!($analog);
impl $crate::peripherals::[<GPIO $pin_num>]<'_> {
/// Configures the pin for analog mode.
#[cfg(feature = "unstable")]
pub(crate) fn set_analog_impl(&self) {
use $crate::gpio::RtcPin;
enable_iomux_clk_gate();