91 lines
3.0 KiB
C
91 lines
3.0 KiB
C
/**
|
|
******************************************************************************
|
|
* @file main.h
|
|
* @author MCU Application Team
|
|
* @brief Header for main.c file.
|
|
* This file contains the common defines of the application.
|
|
******************************************************************************
|
|
* @attention
|
|
*
|
|
* <h2><center>© Copyright (c) 2023 Puya Semiconductor Co.
|
|
* All rights reserved.</center></h2>
|
|
*
|
|
* This software component is licensed by Puya under BSD 3-Clause license,
|
|
* the "License"; You may not use this file except in compliance with the
|
|
* License. You may obtain a copy of the License at:
|
|
* opensource.org/licenses/BSD-3-Clause
|
|
*
|
|
******************************************************************************
|
|
* @attention
|
|
*
|
|
* <h2><center>© Copyright (c) 2016 STMicroelectronics.
|
|
* All rights reserved.</center></h2>
|
|
*
|
|
* This software component is licensed by ST under BSD 3-Clause license,
|
|
* the "License"; You may not use this file except in compliance with the
|
|
* License. You may obtain a copy of the License at:
|
|
* opensource.org/licenses/BSD-3-Clause
|
|
*
|
|
******************************************************************************
|
|
*/
|
|
|
|
/* Define to prevent recursive inclusion -------------------------------------*/
|
|
#ifndef __BOOT_MAIN_H
|
|
#define __BOOT_MAIN_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/* Includes ------------------------------------------------------------------*/
|
|
#include "py32f0xx_hal.h"
|
|
#include "py32f040xx_Start_Kit.h"
|
|
#include "log.h"
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include <string.h>
|
|
/* Private includes ----------------------------------------------------------*/
|
|
/* Private defines -----------------------------------------------------------*/
|
|
typedef int32_t s32;
|
|
typedef int16_t s16;
|
|
typedef int8_t s8;
|
|
|
|
typedef const int32_t sc32; /*!< Read Only */
|
|
typedef const int16_t sc16; /*!< Read Only */
|
|
typedef const int8_t sc8; /*!< Read Only */
|
|
|
|
typedef __IO int32_t vs32;
|
|
typedef __IO int16_t vs16;
|
|
typedef __IO int8_t vs8;
|
|
|
|
typedef __I int32_t vsc32; /*!< Read Only */
|
|
typedef __I int16_t vsc16; /*!< Read Only */
|
|
typedef __I int8_t vsc8; /*!< Read Only */
|
|
|
|
typedef uint32_t u32;
|
|
typedef uint16_t u16;
|
|
typedef uint8_t u8;
|
|
|
|
typedef const uint32_t uc32; /*!< Read Only */
|
|
typedef const uint16_t uc16; /*!< Read Only */
|
|
typedef const uint8_t uc8; /*!< Read Only */
|
|
|
|
typedef __IO uint32_t vu32;
|
|
typedef __IO uint16_t vu16;
|
|
typedef __IO uint8_t vu8;
|
|
|
|
typedef __I uint32_t vuc32; /*!< Read Only */
|
|
typedef __I uint16_t vuc16; /*!< Read Only */
|
|
typedef __I uint8_t vuc8; /*!< Read Only */
|
|
/* Exported variables prototypes ---------------------------------------------*/
|
|
/* Exported functions prototypes ---------------------------------------------*/
|
|
void Error_Handler(uint8_t *file, uint32_t line);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* __BOOT_MAIN_H */
|
|
|
|
/************************ (C) COPYRIGHT Puya *****END OF FILE******************/
|