12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- /**
- ******************************************************************************
- * @file STLstartup.h
- * @author MCD Application Team
- * @version V1.0.0
- * @date May-2012
- * @brief This file contains the prototype of the FailSafe routines
- * and the very first elf-test function to be executed after
- * the reset.
- ******************************************************************************
- * @copyright
- *
- * <h2><center>© COPYRIGHT 2012 STMicroelectronics</center></h2>
- *
- * Licensed under MCD-ST Liberty SW License Agreement V2, (the "License");
- * You may not use this file except in compliance with the License.
- * You may obtain a copy of the License at:
- *
- * http://www.st.com/software_license_agreement_liberty_v2
- *
- * 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.
- */
- /* Define to prevent recursive inclusion -------------------------------------*/
- #ifndef __SELF_TEST_START_UP_H
- #define __SELF_TEST_START_UP_H
- /* Includes ------------------------------------------------------------------*/
- #include "gd32f30x_libopt.h"
- /* Private defines -----------------------------------------------------------*/
- #define RCC_PINRSTF 0x04000000uL
- #define RCC_PORRSTF 0x08000000uL
- #define RCC_SFTRSTF 0x10000000uL
- #define RCC_IWDGRSTF 0x20000000uL
- #define RCC_WWDGRSTF 0x40000000uL
- #define RCC_LPWRRSTF 0x80000000uL
- /* Private macros ------------------------------------------------------------*/
- #define RCC_flag_set(a) ((fl_sts & (a)) == (a))
- #define RCC_flag_reset(a) ((fl_sts & (a)) == 0u)
- /* Exported types ------------------------------------------------------------*/
- /* Exported constants --------------------------------------------------------*/
- /* Exported macro ------------------------------------------------------------*/
- /* Exported functions ------------------------------------------------------- */
- void STL_StartUp(void);
- void FailSafe(void);
- void FailSafeCPU(void);
- void STL_WDGSelfTest(void);
- #endif /* __SELF_TEST_START_UP_H */
- /******************* (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|