CIU32_L051_M307R/Peripheral/CIU32L051_Lib/Include/ciu32l051_std.h

99 lines
2.5 KiB
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/************************************************************************************************/
/**
* @file ciu32l051_std.h
* @author MCU Ecosystem Development Team
* @brief CIU32L051 STD库对外一级头文件。
* 用户使用STD库时可以仅引用该头文件即可。
*
*
**************************************************************************************************
* @attention
* Copyright (c) CEC Huada Electronic Design Co.,Ltd. All rights reserved.
*
**************************************************************************************************
*/
/*避免头文件重复引用*/
#ifndef CIU32L051_STD_H
#define CIU32L051_STD_H
/************************************************************************************************/
/**
* @addtogroup CIU32L051_STD_Driver
* @{
*/
/**
* @defgroup STD STD
* @brief 支持STD库的计时等功能以及STD库对外的统一头文件
* @{
*
*/
/************************************************************************************************/
#ifdef __cplusplus
extern "C" {
#endif
/*------------------------------------------includes--------------------------------------------*/
#include "ciu32l051_std_config.h"
/*--------------------------------------------define--------------------------------------------*/
/************************************************************************************************/
/**
* @defgroup STD_Constants STD Constants
* @brief STD库基础功能的常量定义以及宏定义
* @{
*
*/
/************************************************************************************************/
/* STD库的计时有关配置 */
#define STD_DELAY_US (SystemCoreClock/1000000) /**< STD中用于计时的基础值与计时周期有关 */
/**
* @}
*/
/*-------------------------------------------functions------------------------------------------*/
/************************************************************************************************/
/**
* @defgroup STD_External_Functions STD External Functions
* @brief STD库基础功能对外API
* @{
*
*/
/************************************************************************************************/
/* STD库计时有关函数 */
void std_delay_init(void);
void std_delayus(uint32_t count);
void std_delayms(uint32_t count);
void std_delayus_start(uint32_t count);
void std_delayms_start(uint32_t count);
bool std_delay_end(void);
/**
* @}
*/
#ifdef __cplusplus
}
#endif
/**
* @}
*/
/**
* @}
*/
#endif /* CIU32L051_STD_H */