aboutsummaryrefslogtreecommitdiffstats
path: root/libmaple/timers.c
Commit message (Collapse)AuthorAgeFilesLines
* Refactor linker scripts. Rename irq and exception handlers.Perry Hung2011-02-271-4/+4
| | | | | Add common linker scripts for ram and rom. Add medium and high density libraries for libcs3.
* Cleaned out libmaple.h; this had wide-ranging implications.Marti Bolivar2011-02-271-7/+3
| | | | | | | | | | | | | | | | | | | 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.
* Servo library tested and debugged.Marti Bolivar2010-12-081-21/+63
| | | | | Some additional HardwareTimer methods introduced to make this convenient; ancillary libmaple/timers.h changes resulted.
* maple mini runs blinky now.Marti Bolivar2010-10-221-1/+1
| | | | still need usb descriptors to improve, and also nothing else is tested.
* Add selective enabling of channels for pwm channelsPerry Hung2010-10-121-4/+0
| | | | | | | | | | pinMode(PWM) turns the channel on, other modes should turn it off Fixes bug with conflicting timer for spi1 and timer. This is not well-tested. Conflicts: libmaple/timers.c
* docsMarti Bolivar2010-10-111-2/+0
|
* whitespace cleanupsMarti Bolivar2010-09-271-135/+144
|
* timer fixes for maple nativebnewbold2010-09-051-2/+17
|
* timer refactor (c, not c++)bnewbold2010-09-051-371/+122
| | | | also removed an old ASSERT()
* inital portability workbnewbold2010-08-251-0/+38
|
* Cleaned up wirish/time, some interrupt handling refactoring:Perry Hung2010-08-041-4/+5
| | | | | | | | | Fixed millis(), it was just wrong, before. Added micros(), not extensively tested. New implementation of delayMicroseconds(). Should be more consistent now. Added a handful of nvic routines to enable/disable interrupts. Cleaned up systick
* New reset and clock control apiPerry Hung2010-08-041-4/+4
|
* sigh, simple typobnewbold2010-07-201-1/+1
|
* bug fix with interrupts not getting clearedbnewbold2010-07-201-5/+53
|
* timers progressbnewbold2010-07-201-12/+45
| | | | examples code cleanup, more descriptive comments, more notes
* good quality vga leaf logo; usb+systick disabledbnewbold2010-07-201-28/+387
| | | | | refactored timers and added interrupt behavior. see notes and comments... also includes a crude vga hack that doesn't use timers.
* Aded two timer function to set max reload value and prescalerPerry Hung2010-04-191-0/+43
|
* Licensing: Relicensed libmaple under the MIT License.Perry Hung2010-03-311-12/+17
| | | | | | Relicensed the bulk of libmaple under the more permissive MIT License, from GPLv3. Files that were largely or entirely derived from the Arduino, STM, or Lanchon retain their original licenses.
* Removed inttypes.hPerry Hung2010-03-311-42/+42
| | | | | Removed inttypes.h from libmaple. Will have another pass through to use the standard libmaple types, but will come in another commit.
* Merge branch 'master' into rcc-devPerry Hung2010-03-301-5/+5
| | | | | Conflicts: Makefile
* Major hierarchy reorganization; see README.bnewbold2010-03-311-0/+192
copy-to-ide and Makefile updated to conform; .gitignore added; LICENSE added