5ae4e20f86
607: stm32: Add standard crate-wide macros for pin/dma traits r=Dirbaio a=Dirbaio All drivers will declare the traits using these macros. This has a few implications: - ALL drivers will have an Instance trait, even for drivers that usually have only one instance (for example crc, eth) - It's no longer possible to have a fn configure() in pin traits, drivers will have to do that some other way In the future, build.rs will generate all the impls instead of macrotables. Pin/Dma traits are no longer explicitly sealed, since gpio::Pin and dma::Channel are already sealed, which has the same effect. This means the `af_num()` and `request()` funcs are now public, but IMO that's okay, they're unlikely to change. Co-authored-by: Dario Nieuwenhuis <dirbaio@dirbaio.net>