Timer optimisation
deece — Wed, 14/12/2011 - 9:27pm
| Project: | MHVLib - An Efficiency Oriented Runtime Library for AVR Microcontrollers |
| Version: | 20111109 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Timer initialisation code could be reduced by taking as parameters macros that make use of F_CPU and the desired time, instead of calculating this at runtime.
- Login or register to post comments
- Printer-friendly version



#1
deece — Mon, 21/05/2012 - 10:47pmIn R2, setTimes is declared inline, so the compiler can optimise away the bulk of it.