2010-10-13 09:43:32 +02:00
|
|
|
/**
|
|
|
|
******************************************************************************
|
|
|
|
*
|
2010-10-13 09:49:05 +02:00
|
|
|
* @file stopwatch.c
|
2010-10-13 09:43:32 +02:00
|
|
|
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2010.
|
2010-10-13 09:49:05 +02:00
|
|
|
* @brief Stop watch function
|
2010-10-13 09:43:32 +02:00
|
|
|
* @see The GNU Public License (GPL) Version 3
|
|
|
|
*
|
|
|
|
*****************************************************************************/
|
2010-10-13 09:49:05 +02:00
|
|
|
/*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
2010-10-13 09:43:32 +02:00
|
|
|
* (at your option) any later version.
|
2010-10-13 09:49:05 +02:00
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
|
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
2010-10-13 09:43:32 +02:00
|
|
|
* for more details.
|
2010-10-13 09:49:05 +02:00
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
2010-10-13 09:43:32 +02:00
|
|
|
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
2010-10-13 09:49:05 +02:00
|
|
|
#ifndef __STOPWATCH_H__
|
|
|
|
#define __STOPWATCH_H__
|
|
|
|
|
|
|
|
#include "stm32f10x.h"
|
2010-10-13 09:43:32 +02:00
|
|
|
|
2010-10-13 09:49:05 +02:00
|
|
|
// *****************************************************************************
|
2010-10-13 09:43:32 +02:00
|
|
|
|
2010-10-13 09:49:05 +02:00
|
|
|
void STOPWATCH_init(uint32_t resolution);
|
|
|
|
void STOPWATCH_reset(void);
|
|
|
|
uint32_t STOPWATCH_get_count(void);
|
|
|
|
uint32_t STOPWATCH_get_us(void);
|
2010-10-13 09:43:32 +02:00
|
|
|
|
2010-10-13 09:49:05 +02:00
|
|
|
// *****************************************************************************
|
2010-10-13 09:43:32 +02:00
|
|
|
|
2010-10-13 09:49:05 +02:00
|
|
|
#endif
|