leaflabs/libmaple — pull request #49 by nzmichaelh (2012-07-07 06:04:13+00:00)
Title: Tidy delay_us and the USB magic reset code.

Re-work the constraints on delay_us(). Ask GCC to allocate a register instead of forcing r0. Use the same operand as input and output to remove the move.

Move the USB reset magic string from the stack to rodata. Shift the magic number and buffer closer to the use. De-magic the length of the magic string.