aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/HardwareTimer.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Putting updated HardwareTimer back into the build.Marti Bolivar2011-05-061-148/+69
| | | | | | | | | | | | | | | HardwareTimer was removed from the build when the timer refactor was done; this redoes it in terms of the new timer.h interface. A variety of conflicting or badly designed bits were deprecated or removed. I'm still not satisfied with this interface, as it's going to make life difficult moving forward to high-density chips, where the addition of basic timers means that the capture/compare methods won't apply in some cases. However, we need to get 0.0.10 out the door, so it'll have to do for now. The docs are up to date, and contain a warning that the Wirish API isn't stable and a recommendation to use libmaple proper.
* [WIP] GPIO refactor: seems ok, ready for reviewMarti Bolivar2011-03-111-6/+5
|
* Cleaned out libmaple.h; this had wide-ranging implications.Marti Bolivar2011-02-271-2/+2
| | | | | | | | | | | | | | | | | | | Many of the #defines in libmaple.h were board-specific, not MCU-specific. Most of these were only used by code under libmaple/usb/. These were moved into usb_config.h, and are clearly marked as being terrible hacks. I'm going to treat the USB stack as a black box that we'll deal with later. Further, instead of having a variety of #defines like "How many USARTS do I have?", we decide that based on the density of the chip. This is determined by testing for STM32_MEDIUM_DENSITY or STM32_HIGH_DENSITY defines. libmaple currently doesn't support low-density chips, so that suffices. The Makefile will set these automatically based on the MCU. Other offending #defines are ERROR_LED_PORT and ERROR_LED_PIN; these were made optional, but they're set in the Makefile as a hack to keep things working.
* Finalized 0.0.9 documentation.Marti Bolivar2010-12-151-1/+0
|
* Servo library tested and debugged.Marti Bolivar2010-12-081-48/+102
| | | | | Some additional HardwareTimer methods introduced to make this convenient; ancillary libmaple/timers.h changes resulted.
* maple mini runs blinky now.Marti Bolivar2010-10-221-12/+6
| | | | still need usb descriptors to improve, and also nothing else is tested.
* wirish reformatted and code-styledMarti Bolivar2010-09-261-14/+42
|
* timer refactor (c, not c++)bnewbold2010-09-051-38/+9
| | | | also removed an old ASSERT()
* Off-by-one in timer setPeriod() functionbnewbold2010-09-021-2/+2
| | | | Thanks CarlO!
* Various fixes, working with Maplebnewbold2010-09-011-4/+35
|\
| * Further wirish portability progressbnewbold2010-08-311-4/+35
|/ | | | Sort of ugly changes. Compiles but untested.
* wirish implementation of timers plus testbnewbold2010-07-201-0/+149