News for hackers. Stuff that matters.
Re:Programming ARM Cortex-M Microcontrollers with Rust by kam on Sunday April 09, 2017 @10:01AM (#14072316)
> Above guide uses inline assembly to blink a GPIO.

No, the only inline ASM in this guide is to cause a debugger breakpoint. You also need inline ASM to enable/disable interrupts, and that's about it.

The code in this guide looks ugly because it's written to show how to use the hardware without any abstraction. Higher level APIs like f3 (https://docs.rs/f3/0.3.1/f3/) exist, though not nearly for every chip or peripheral. Even in C, for anything outside the popular Arduino/mbed/etc boards, your choice is usually between buggy vendor bloatware and using the registers directly after carefully reading the datasheet.

Re:Programming ARM Cortex-M Microcontrollers with Rust by snovv_crash on Sunday April 09, 2017 @05:24PM (#14074443)
From what I've seen, using registers is often simpler and easier than using the vendor GPIO libraries.
Re:Programming ARM Cortex-M Microcontrollers with Rust by turbinerneiter on Sunday April 09, 2017 @10:31AM (#14072472)
True, I was a bit hyperbolic.