Using underscore prefixes is not allowed for include guards as all defines starting with underscore are reserved. At the same time made file ends and spacing and style of include guards consistent in all headers. The new style of include guards also includes the directory of the include file relative to `src` directory to prevent potential future issues where we might end up with a name clash across directories. |
||
---|---|---|
.. | ||
Makefile | ||
README.md | ||
efm32.c | ||
efm32.stub | ||
lmi.c | ||
lmi.stub | ||
nrf51.stub | ||
stub.h |
README.md
Flash Stubs
These are simple routines for programming the flash on various Cortex-M
microcontrollers. The routines should be provided with the naked attribute
as the stack may not be available, and must not make any function calls.
The stub must call stub_exit(code)
provided by stub.h
to return control
to the debugger. Up to 4 word sized parameters may be taken.
These stubs are compiled instructions comma separated hex values in the
resulting *.stub
files here, which may be included in the drivers for the
specific device. The drivers call these flash stubs on the target by calling
cortexm_run_stub
defined in cortexm.h
.