Skip to content

Commit

Permalink
ATmega1280
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahix committed Mar 13, 2021
1 parent d6757f6 commit cbfa619
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mcu/atmega-hal/src/adc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ pub mod channel {
feature = "atmega328pb",
feature = "atmega32u4",
feature = "atmega2560",
feature = "atmega1280",
feature = "atmega168",
))]
pub struct Vbg;
Expand All @@ -36,6 +37,7 @@ pub mod channel {
feature = "atmega328pb",
feature = "atmega32u4",
feature = "atmega2560",
feature = "atmega1280",
feature = "atmega168",
))]
pub struct Gnd;
Expand Down Expand Up @@ -103,7 +105,7 @@ avr_hal_generic::impl_adc! {
},
}

#[cfg(feature = "atmega2560")]
#[cfg(any(feature = "atmega2560", feature = "atmega1280"))]
avr_hal_generic::impl_adc! {
hal: crate::Atmega,
peripheral: crate::pac::ADC,
Expand Down

0 comments on commit cbfa619

Please sign in to comment.