You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

38 lines
747 B

/**
******************************************************************************
* @copyright Copyright (C), 2016-2022, ConvenientPower. Co., Ltd.
* @file drv_delay.h
* @version 1.0
* @author qing.cheng
* @date 2022-11-02
* @brief Header file of DRV_DELAY_H module.
******************************************************************************
*/
#ifndef _DRV_DELAY_H_
#define _DRV_DELAY_H_
#include "core_comm.h"
#define drv_delay_ms(x)\
drv_delay_us((1000*x))
/*
* @brief delay 1us
* @param usec->Microseconds
* @note
* @retval
*/
void drv_delay_us(uint32_t usec);
/*
* @brief system clock set 1ms
* @param systick_us
* @note
* @retval
*/
void drv_systick_init(uint32_t systick_us);
#endif