Function mcu_name

Source
pub fn mcu_name() -> Option<String>
Expand description

Gets the name of the microcontroller being targeted.

Returns None if the target architecture is not AVR.

When targeting AVR, this function will always return Some(mcu_name).

ยงExample results

  • Some("atmega328")
  • Some("attiny85")
  • None