update credits
[librepilot.git] / flight / pios / inc / pios_delay.h
blob19d6b426000bd4fc53ced9a14ed18693107fed36
1 /**
2 ******************************************************************************
3 * @addtogroup PIOS PIOS Core hardware abstraction layer
4 * @{
5 * @addtogroup PIOS_DELAY Delay Functions
6 * @brief PiOS Delay functionality
7 * @{
9 * @file pios_settings.h
10 * @author The LibrePilot Project, http://www.librepilot.org Copyright (C) 2016.
11 * The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
12 * @brief Settings functions header
13 * @see The GNU Public License (GPL) Version 3
15 *****************************************************************************/
17 * This program is free software; you can redistribute it and/or modify
18 * it under the terms of the GNU General Public License as published by
19 * the Free Software Foundation; either version 3 of the License, or
20 * (at your option) any later version.
22 * This program is distributed in the hope that it will be useful, but
23 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
24 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
25 * for more details.
27 * You should have received a copy of the GNU General Public License along
28 * with this program; if not, write to the Free Software Foundation, Inc.,
29 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
32 #ifndef PIOS_DELAY_H
33 #define PIOS_DELAY_H
35 #ifdef USE_SIM_POSIX
36 extern uint32_t PIOS_DELAY_GetRaw();
37 #else
38 #include "pios_delay_raw.h"
39 #endif
41 /* Public Functions */
42 extern int32_t PIOS_DELAY_Init(void);
43 extern int32_t PIOS_DELAY_WaituS(uint32_t uS);
44 extern int32_t PIOS_DELAY_WaitmS(uint32_t mS);
45 extern uint32_t PIOS_DELAY_GetuS();
46 extern uint32_t PIOS_DELAY_GetuSSince(uint32_t t);
47 extern uint32_t PIOS_DELAY_DiffuS(uint32_t raw);
48 extern uint32_t PIOS_DELAY_DiffuS2(uint32_t raw, uint32_t later);
50 #endif /* PIOS_DELAY_H */
52 /**
53 * @}
54 * @}