#ifndef __DELAY_H #define __DELAY_H #include ////////////////////////////////////////////////////////////////////////////////// //This program is for educational purposes only, without the author's permission, may not be used for any other purpose //ALIENTEK STM32F407 Development Board //SysTick managed to delay the normal counting mode (supports ucosii) //Include delay_us,delay_ms //Hot Atomic @ALIENTEK //Forum: www.openedv.com //Date created: 2014/5/2 //Version: V1.3 //All rights reserved pirated reserved. //Copyright(C) Guangzhou wing electronic technology limited company 2014-2024 //All rights reserved //******************************************************************************** //Modify the description //V1.1 20140803 // 1,delay_us, add parameter equal to 0 to determine, if the parameter is equal to 0, then exit. // 2, under the modified ucosii, delay_ms function, join the OSLockNesting judgment, entered after a break, also can be used to delay. //V1.2 20150411 // Modify the way OS support to support any OS (not limited to UCOSII and UCOSIII, in theory any OS can support) // Add: delay_osrunning/delay_ostickspersec/delay_osintnesting three macro definitions // Add: delay_osschedlock/delay_osschedunlock/delay_ostimedly three-function //V1.3 20150521 // 2 bug when amend UCOSIII support: // delay_tickspersec read: delay_ostickspersec // delay_intnesting read: delay_osintnesting ////////////////////////////////////////////////////////////////////////////////// void delay_init(u8 SYSCLK); void delay_ms(u16 nms); void delay_us(u32 nus); void delay_os_ms(u32 ms); #endif