2019-08-05 23:25:51 +08:00
|
|
|
/**
|
|
|
|
******************************************************************************
|
|
|
|
* @file cpu_utils.h
|
|
|
|
* @author MCD Application Team
|
|
|
|
* @brief Header for cpu_utils module
|
|
|
|
******************************************************************************
|
|
|
|
* @attention
|
|
|
|
*
|
2023-04-28 00:14:50 +08:00
|
|
|
* Copyright (c) 2014 STMicroelectronics.
|
|
|
|
* All rights reserved.
|
2019-08-05 23:25:51 +08:00
|
|
|
*
|
2023-04-28 00:14:50 +08:00
|
|
|
* This software is licensed under terms that can be found in the LICENSE file
|
|
|
|
* in the root directory of this software component.
|
|
|
|
* If no LICENSE file comes with this software, it is provided AS-IS.
|
2019-08-05 23:25:51 +08:00
|
|
|
*
|
|
|
|
******************************************************************************
|
2023-04-28 00:14:50 +08:00
|
|
|
*/
|
2019-08-05 23:25:51 +08:00
|
|
|
|
|
|
|
/* Define to prevent recursive inclusion -------------------------------------*/
|
|
|
|
#ifndef _CPU_UTILS_H__
|
|
|
|
#define _CPU_UTILS_H__
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Includes ------------------------------------------------------------------*/
|
|
|
|
#include "main.h"
|
|
|
|
|
|
|
|
/* Exported types ------------------------------------------------------------*/
|
|
|
|
/* Exported constants --------------------------------------------------------*/
|
|
|
|
/* Exported variables --------------------------------------------------------*/
|
|
|
|
/* Exported macro ------------------------------------------------------------*/
|
|
|
|
#define CALCULATION_PERIOD 1000
|
|
|
|
|
|
|
|
/* Exported functions ------------------------------------------------------- */
|
|
|
|
uint16_t osGetCPUUsage (void);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _CPU_UTILS_H__ */
|