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.
 
 
 
 
 

56 line
874 B

  1. #ifndef __DELAY_H
  2. #define __DELAY_H
  3. #include <sys.h>
  4. //////////////////////////////////////////////////////////////////////////////////
  5. //本程序只供学习使用,未经作者许可,不得用于其它任何用途
  6. //ALIENTEK STM32F407开发板
  7. //使用SysTick的普通计数模式对延迟进行管理(支持ucosii)
  8. //包括delay_us,delay_ms
  9. //正点原子@ALIENTEK
  10. //技术论坛:www.openedv.com
  11. //修改日期:2014/5/2
  12. //版本:V1.0
  13. //版权所有,盗版必究。
  14. //Copyright(C) 广州市星翼电子科技有限公司 2014-2024
  15. //All rights reserved
  16. //********************************************************************************
  17. //修改说明
  18. //无
  19. //////////////////////////////////////////////////////////////////////////////////
  20. void delay_init(u8 SYSCLK);
  21. void delay_ms(u16 nms);
  22. void delay_us(u32 nus);
  23. //使用内部时钟函数
  24. void HSI_SetSysClock(uint32_t m, uint32_t n, uint32_t p, uint32_t q);
  25. #endif