2019-07-08 19:45:16 +08:00
|
|
|
/**
|
|
|
|
******************************************************************************
|
|
|
|
* @file cpu_utils.h
|
|
|
|
* @author MCD Application Team
|
|
|
|
* @brief Header for cpu_utils module
|
|
|
|
******************************************************************************
|
|
|
|
* @attention
|
|
|
|
*
|
2023-03-14 23:54:20 +08:00
|
|
|
* Copyright (c) 2014 STMicroelectronics.
|
|
|
|
* All rights reserved.
|
2019-07-08 19:45:16 +08:00
|
|
|
*
|
2023-03-14 23:54:20 +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-07-08 19:45:16 +08:00
|
|
|
*
|
|
|
|
******************************************************************************
|
2023-03-14 23:54:20 +08:00
|
|
|
*/
|
2019-07-08 19:45:16 +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__ */
|