[f51d3d]: / ilg.gnuarmeclipse.templates.cortexm / templates / common / include / Timer-c.h  Maximize  Restore  History

Download this file

28 lines (17 with data), 544 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//
// This file is part of the GNU ARM Eclipse Plug-ins project.
// Copyright (c) 2014 Liviu Ionescu.
//
#ifndef TIMER_H_
#define TIMER_H_
#include "cmsis_device.h"
// ----------------------------------------------------------------------------
#define TIMER_FREQUENCY_HZ (1000u)
typedef uint32_t timer_ticks_t;
extern volatile timer_ticks_t timer_delayCount;
extern void
timer_start ();
extern void
timer_sleep (timer_ticks_t ticks);
// ----------------------------------------------------------------------------
#endif // TIMER_H_