123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- /* USER CODE BEGIN Header */
- /**
- ******************************************************************************
- * @file : main.h
- * @brief : Header for main.c file.
- * This file contains the common defines of the application.
- ******************************************************************************
- * @attention
- *
- * <h2><center>© Copyright (c) 2019 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
- *
- ******************************************************************************
- */
- /* USER CODE END Header */
- /* Define to prevent recursive inclusion -------------------------------------*/
- #ifndef FUNC_RECORD_H
- #define FUNC_RECORD_H
- #ifdef __cplusplus
- extern "C" {
- #endif
- /* Includes ------------------------------------------------------------------*/
- #include <stdint.h>
- #include "stm32f7xx_hal.h"
- #include "fatfs.h"
- /* Private includes ----------------------------------------------------------*/
- /* USER CODE BEGIN Includes */
- /* USER CODE END Includes */
- /* Exported types ------------------------------------------------------------*/
- /* Exported constants --------------------------------------------------------*/
- /* USER CODE BEGIN EC */
- /* USER CODE END EC */
- /* Exported macro ------------------------------------------------------------*/
- #define DATA_UNIT_NUM 150
- #define DATA_UNIT_SIZE 256
- /* Exported functions prototypes ---------------------------------------------*/
- void func_ram_record_init(void); //¼Ç¼Îļþ³õʼ»¯
- uint32_t func_ram_record_write(uint8_t *buf ,uint32_t len);
- uint32_t func_ram_record_read(uint8_t *buf ,uint32_t len);
- uint32_t func_ram_record_delete(uint8_t *buf,uint32_t len);
- void func_ram_record_test(void);
- uint8_t func_ram_record_fatfs_set_OK(uint8_t stat);
- uint8_t func_ram_record_fatfs_isOK(void);
- /* Private defines -----------------------------------------------------------*/
- #ifdef __cplusplus
- }
- #endif
- #endif /* FUNC_RECORD_H */
- /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|