japaric / f3

Board Support Crate for the STM32F3DISCOVERY
Apache License 2.0
95 stars 38 forks source link

review ABI of "extern" functions #62

Closed japaric closed 7 years ago

japaric commented 7 years ago

Interrupts and Exceptions must use the C ABI (or the AAPCS one? I think there's no difference between the two when the function takes no arguments).

Everything else can be extern "Rust". I think there's no advantage for using extern "Rust" right now but at least we should be able to change all those pub extern "C" fn main() -> ! to just pub fn main() -> !.