Use correct prototype of benchmark_timer_read()

This change starts with removing the effectively empty file
timerdrv.h. The prototypes for benchmark_timer_XXX() were in
btimer.h which was not universally used. Thus every use of
timerdrv.h had to be changed to btimer.h. Then the prototypes
for benchmark_timer_read() had to be adjusted to return
benchmark_timer_t rather than int or uint32_t.

I took this opportunity to also correct the file headers to
separate the copyright from the file description comments which
is needed to ensure the copyright isn't propagated into Doxygen
output.
This commit is contained in:
Joel Sherrill
2014-09-04 08:59:49 -05:00
parent c080c3434b
commit 8fbe2e69b5
111 changed files with 311 additions and 371 deletions

View File

@@ -47,7 +47,7 @@ void benchmark_timer_initialize(void)
/* This value is in microseconds. */
#define LEAST_VALID 4 /* Don't trust a clicks value lower than this */
uint32_t benchmark_timer_read(void)
benchmark_timer_t benchmark_timer_read(void)
{
uint32_t ticks;
uint32_t total;

View File

@@ -76,7 +76,7 @@ void benchmark_timer_initialize( void )
/* This value is in microseconds. */
#define LEAST_VALID 4 /* Don't trust a clicks value lower than this */
uint32_t benchmark_timer_read( void )
benchmark_timer_t benchmark_timer_read( void )
{
uint32_t ticks;
uint32_t total;