aboutsummaryrefslogtreecommitdiff
path: root/include/libopencm3/stm32/timer.h
AgeCommit message (Collapse)Author
2012-10-16Initial documentation for stm32/usart.c, usart.hKen Sarkies
Some minor documentation corrections to timer.h
2012-10-16stm32f1:Ken Sarkies
Add object files to Makefile to include new modules into lib. Correct typo in pwr.c Add two new functions to timer.c to preset the counter (for use with deadman style timeouts) and to identify an interrupt source. Also noticed lib/makefile.include didn't clean lib/stm32, which isn't a target. Added a fix.
2012-09-02Add C linkage declaration for C++ usageNicolas Schodet
2012-08-20STM32F1xx: Changed markup to get more control over documentation, eachKen Sarkies
file having its own group module rather than using @file. No code changes except for the following: gpio: Added function to map the eventout signal plus two Remap functions dma: Prevent changing base addresses while channel enabled (see datasheet) pwr: Added pwr.c (new file) timer: Removed the last function that I introduced recently; there is already an equivalent function present. Changed some parameter names for consistency.
2012-07-10STM32F timers. Doxygen markup added, and some code changes:Ken Sarkies
1. Remove the extra mask (TIM_DIER(timer_peripheral) & flag) in timer_get_flag. Not all flags in SR relate to IRQs and the flags that do might be useful even if interrupts not enabled. 2. In a number of functions (e.g. timer_set_output_idle_state) that only apply to advanced timers, add test for TIM1 and TIM8, as done in some others. 3. Added timer_force_event to manipulate the EG register TBD DMA burst - can't get my head around why this would be useful. Someone must have thought so!
2012-04-08Added functions for configuring timers in slave mode.Gareth McMullin
2012-04-08Added functions for timer input capture polarity and enable/disable.Gareth McMullin
2012-04-08Added convenience function for timer input selection.Gareth McMullin
2012-04-08Added convenience funcions for timer input capture filter and prescaler.Gareth McMullin
2012-04-07Corrected parameters of timer_set_mode() to u32.Gareth McMullin
2012-04-07Corrected bit definitions for capture/compare input selection.Gareth McMullin
Thanks to Linux Casassa.
2012-03-02License change of the library to LGPL, version 3 or later.Piotr Esden-Tempski
Agreed to by all the significant contributors to the library.
2011-10-31Fix more STM32 whitespace issuesStephen Caudle
2011-02-01Added get flag and get counter functions to timer. Allow proper interrupt ↵Piotr Esden-Tempski
handling and recording timer counter values.
2011-01-31Added set prescaler and set repetition counter functions to timer.Piotr Esden-Tempski
2011-01-31Added timer reset function.Piotr Esden-Tempski
2011-01-31Added timer flag reset function.Piotr Esden-Tempski
2011-01-31Added interrupt and event generation handling functions to timer. Updated ↵Piotr Esden-Tempski
pwm 6step example to use those and commutate on button press using PWM ON scheme.
2011-01-28Added break and dead time convenience functions. Adapted 6step example to ↵Piotr Esden-Tempski
reflect that.
2011-01-28Replaced OC mode selection with an enum, makes it simpler to use.Piotr Esden-Tempski
2011-01-27Added output compare channel convenience functions and adapted the pwm_6step ↵Piotr Esden-Tempski
example accordingly.
2011-01-27Started a pwm 6step output example. Enabled timer convenience functions and ↵Piotr Esden-Tempski
some minor fixes that showed themselves while writing the bare bone example.
2010-12-31Some more file/path restructuring.Uwe Hermann
All #includes now explicitly use the "<libopencm3/stm32/rcc.h>" format. If you want to get rid of the "libopencm3" prefix in your local project you can add a respective -I entry in your Makefile (not recommended though). All .ld files and .a libs are installed in $(TOOLCHAIN_DIR)/lib directly (as before), but are now renamed to avoid potential conflicts now or in the future. Examples: libopencm3_lpc13xx.a libopencm3_lpc13xx.ld libopencm3_stm32.a libopencm3_stm32.ld