mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-09-27 04:10:28 +00:00
Fix warning without unstable (#4107)
This commit is contained in:
parent
a5a0833318
commit
63009c8163
@ -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) {
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user