1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#![no_std] pub use atsam4_hal as hal; use paste::paste; use atsam4_hal::{define_pin_map, gpio::*}; define_pin_map! { struct Pins, // Onboard LED pin led0 = b14<Output<OpenDrain>, into_open_drain_output>, // Serial Console (UART0) pin uart0_rx = a9<PfA, into_peripheral_function_a>, pin uart0_tx = a10<PfA, into_peripheral_function_a>, }