set registers using probe-rs, not in the subroutine anymore
→ this enables to have the subroutine as a const array, and makes the subroutine way smaller
bundle assertions in assert_subroutine! macro
→ macro and not fn to preserve correct location in the panic message
encapsulate function and subroutine in a module
greatly improve documentation
rename arguments start and end to low_addr and high_addr
use low_addr and stack_size as arguments
(This PR can be considered a preparation for #327)
Most notably:
assert_subroutine!
macro → macro and not fn to preserve correct location in the panic messagestart
andend
tolow_addr
andhigh_addr
low_addr
andstack_size
as arguments(This PR can be considered a preparation for #327)