aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/delay.h
Commit message (Collapse)AuthorAgeFilesLines
* Add DELAY_US_MULT, for use in generalizing delay_us().Marti Bolivar2011-07-181-8/+2
| | | | | | | | The delay_us() implementation multiplies its specified delay target by a fixed constant in order to turn it into a busy-loop. This magic number doesn't work properly when the clock configuration isn't the same as a stock LeafLabs board. Add DELAY_US_MULT to the MCU-specific configuration in stm32.h in order to allow other chips to use delay_us().
* delay.h: Add missing include.Marti Bolivar2011-06-061-0/+2
|
* delay.h: Adding Doxygen comments for the file and delay_us().Marti Bolivar2011-05-191-1/+11
|
* Adding delay_us() TODO.Marti Bolivar2011-04-111-0/+2
|
* Initial timer refactor.Marti Bolivar2011-03-241-1/+1
| | | | | | | | | | | | | | | Basic PWM works. Had some problems in testing that might be due to USART bugs. HardwareTimer has been removed from the build for now; I will re-implement it in terms of the new libmaple API, but consider it deprecated. Let's come up with something better. Servo is implemented in terms of HardwareTimer, so it also has been temporarily removed from the build. pwmWrite() likely got a little bit less inefficient due to indirection, but the PIN_MAPs shrank by a pointer per PinMapping.
* Fix merge error and compile error.Perry Hung2011-03-111-0/+22