diff options
Diffstat (limited to 'src/avr')
-rw-r--r-- | src/avr/Makefile | 2 | ||||
-rw-r--r-- | src/avr/timer.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/avr/Makefile b/src/avr/Makefile index af8d9f49..58d5c846 100644 --- a/src/avr/Makefile +++ b/src/avr/Makefile @@ -5,7 +5,7 @@ CROSS_PREFIX=avr- dirs-y += src/avr lib/pjrc_usb_serial -CFLAGS-y += -Os -mmcu=$(CONFIG_MCU) -DF_CPU=$(CONFIG_CLOCK_FREQ) +CFLAGS-y += -O2 -mmcu=$(CONFIG_MCU) -DF_CPU=$(CONFIG_CLOCK_FREQ) LDFLAGS-y += -Wl,--relax # Add avr source files diff --git a/src/avr/timer.c b/src/avr/timer.c index f1fbd284..2de97526 100644 --- a/src/avr/timer.c +++ b/src/avr/timer.c @@ -153,7 +153,7 @@ timer_periodic(void) // if the next timer is too close to schedule. Caller must disable // irqs. uint8_t -timer_try_set_next(uint32_t target) +timer_try_set_next(unsigned int target) { uint16_t next = target; int16_t diff = next - timer_get(); |