2013-08-07 12:54:36 +00:00
|
|
|
/*
|
2016-02-27 08:13:14 +00:00
|
|
|
ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
|
2013-08-07 12:54:36 +00:00
|
|
|
|
2016-02-27 08:13:14 +00:00
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
2013-08-07 12:54:36 +00:00
|
|
|
|
2016-02-27 08:13:14 +00:00
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
2013-08-07 12:54:36 +00:00
|
|
|
|
2016-02-27 08:13:14 +00:00
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
2013-08-07 12:54:36 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2015-04-03 09:51:52 +00:00
|
|
|
* @file ARMCMx/compilers/GCC/crt1.c
|
2015-03-11 14:23:49 +00:00
|
|
|
* @brief Startup stub functions.
|
2013-08-07 12:54:36 +00:00
|
|
|
*
|
|
|
|
* @addtogroup ARMCMx_GCC_STARTUP
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
2015-03-09 14:57:41 +00:00
|
|
|
#include <stdbool.h>
|
2013-08-07 12:54:36 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Early initialization.
|
|
|
|
* @details This hook is invoked immediately after the stack initialization
|
|
|
|
* and before the DATA and BSS segments initialization. The
|
|
|
|
* default behavior is to do nothing.
|
|
|
|
* @note This function is a weak symbol.
|
|
|
|
*/
|
|
|
|
#if !defined(__DOXYGEN__)
|
|
|
|
__attribute__((weak))
|
|
|
|
#endif
|
2015-03-09 14:57:41 +00:00
|
|
|
/*lint -save -e9075 [8.4] All symbols are invoked from asm context.*/
|
2013-08-07 12:54:36 +00:00
|
|
|
void __early_init(void) {}
|
2015-03-09 14:57:41 +00:00
|
|
|
/*lint -restore*/
|
2013-08-07 12:54:36 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Late initialization.
|
|
|
|
* @details This hook is invoked after the DATA and BSS segments
|
|
|
|
* initialization and before any static constructor. The
|
|
|
|
* default behavior is to do nothing.
|
|
|
|
* @note This function is a weak symbol.
|
|
|
|
*/
|
|
|
|
#if !defined(__DOXYGEN__)
|
|
|
|
__attribute__((weak))
|
|
|
|
#endif
|
2015-03-09 14:57:41 +00:00
|
|
|
/*lint -save -e9075 [8.4] All symbols are invoked from asm context.*/
|
2013-08-07 12:54:36 +00:00
|
|
|
void __late_init(void) {}
|
2015-03-09 14:57:41 +00:00
|
|
|
/*lint -restore*/
|
2013-08-07 12:54:36 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Default @p main() function exit handler.
|
|
|
|
* @details This handler is invoked or the @p main() function exit. The
|
|
|
|
* default behavior is to enter an infinite loop.
|
|
|
|
* @note This function is a weak symbol.
|
|
|
|
*/
|
|
|
|
#if !defined(__DOXYGEN__)
|
2013-09-09 19:25:22 +00:00
|
|
|
__attribute__((noreturn, weak))
|
2013-08-07 12:54:36 +00:00
|
|
|
#endif
|
2015-03-09 14:57:41 +00:00
|
|
|
/*lint -save -e9075 [8.4] All symbols are invoked from asm context.*/
|
2015-03-11 14:23:49 +00:00
|
|
|
void __default_exit(void) {
|
2015-03-09 14:57:41 +00:00
|
|
|
/*lint -restore*/
|
|
|
|
|
|
|
|
while (true) {
|
|
|
|
}
|
2013-08-07 12:54:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/** @} */
|