P100脱机下载器
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.

64 lines
1.3 KiB

4 years ago
  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.3
  13. //��Ȩ���У������ؾ���
  14. //Copyright(C) �������������ӿƼ����޹�˾ 2014-2024
  15. //All rights reserved
  16. //********************************************************************************
  17. //�޸�˵��
  18. //V1.1 20140803
  19. //1,delay_us,���Ӳ�������0�ж�,������������0,��ֱ���˳�.
  20. //2,�޸�ucosii��,delay_ms����,����OSLockNesting���ж�,�ڽ����жϺ�,Ҳ����׼ȷ��ʱ.
  21. //V1.2 20150411
  22. //�޸�OS֧�ַ�ʽ,��֧������OS(������UCOSII��UCOSIII,����������OS������֧��)
  23. //����:delay_osrunning/delay_ostickspersec/delay_osintnesting�����궨��
  24. //����:delay_osschedlock/delay_osschedunlock/delay_ostimedly��������
  25. //V1.3 20150521
  26. //����UCOSIII֧��ʱ��2��bug��
  27. //delay_tickspersec����delay_ostickspersec
  28. //delay_intnesting����delay_osintnesting
  29. //////////////////////////////////////////////////////////////////////////////////
  30. void delay_init(u8 SYSCLK);
  31. void delay_ms(u16 nms);
  32. void delay_us(u32 nus);
  33. #endif