diff options
author | Damien George <damien.p.george@gmail.com> | 2018-03-29 16:15:57 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-03-29 16:15:57 +1100 |
commit | 7856a416bd4718dd2f63e3adcd8a595fb4fbb9e9 (patch) | |
tree | c30833e050391964014f57b4a88e411a10167c6a /tests/basics/iter1.py | |
parent | d9e69681f5c100076aec5fb9a9ec00add3aa22b0 (diff) |
stm32/main: Rename main to stm32_main and pass through first argument.
The main() function has a predefined type in C which is not so useful for
embedded contexts. This patch renames main() to stm32_main() so we can
define our own type signature for this function. The type signature is
defined to have a single argument which is the "reset_mode" and is passed
through as r0 from Reset_Handler. This allows, for example, a bootloader
to pass through information into the main application.
Diffstat (limited to 'tests/basics/iter1.py')
0 files changed, 0 insertions, 0 deletions