timer.h: remove some obsolete stuff, replace char with uint8_t.

No functional change.
This commit is contained in:
Markus Hitter 2015-08-03 12:04:23 +02:00
parent 2af689a4db
commit eb166ce3ef
2 changed files with 5 additions and 12 deletions

View File

@ -130,7 +130,7 @@ void timer_init() {
as late as possible. If you use it from outside the step interrupt,
do a sei() after it to make the interrupt actually fire.
*/
char timer_set(int32_t delay, char check_short) {
uint8_t timer_set(int32_t delay, uint8_t check_short) {
uint16_t step_start = 0;
#ifdef ACCELERATION_TEMPORAL
uint16_t current_time;

11
timer.h
View File

@ -2,10 +2,6 @@
#define _TIMER_H
#include <stdint.h>
#ifdef __AVR__
#include <avr/io.h>
#endif
#include "simulator.h"
// time-related constants
@ -21,12 +17,9 @@
#define TICK_TIME_MS (TICK_TIME / (F_CPU / 1000))
/*
timer stuff
*/
void timer_init(void) __attribute__ ((cold));
void timer_init(void);
char timer_set(int32_t delay, char check_short);
uint8_t timer_set(int32_t delay, uint8_t check_short);
void timer_stop(void);