aboutsummaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2013-03-19Add support for static constructors and destructorsinit-fini-2Nicolas Schodet
2013-03-19Synchronise linker scripts which are supposed to be identicalNicolas Schodet
This also report bug fixes about data alignment and bss storage to EFM32 & LM3S targets. Note: removed chrysn copyright statement as the file is a verbatim copy of previous files.
2013-03-09This mainly moves the STM32 timers' code to the common area.Ken Sarkies
F2 and F4 have a common section to deal with the options register (TIM2 and TIM5 only) L1 has been made common with timer_common_all as its options register has very different settings to F2/F4. Code is in the L1/timer.c L1/timer.h files Note that F3 and F05 timers should fit into this scheme, with F3 having additional features. Bundled with this is L1/pwr.h to change a documentation setting Also all the Doxyfiles have added "ENABLE_PREPROCESSING = NO" to fix a problem introduced by commit 118.
2013-03-07Add test in common headers for improper inclusion of such files in application.Ken Sarkies
(prevents inclusion and also issues warning) Changes to some source files to remove references to common headers. Changes to rng.h to make guard symbols the same in f2 and f4.
2013-03-07Repair to documentation (most documented files)Ken Sarkies
to remove errors, duplications and inconsistencies. File lib/stm32/f1/pwr.c - all code removed as it duplicates that in common/pwr_common.c Remaining changes do not affect code. Compiles OK. TODO efm32 has no code so generates no modules TODO F2 needs pwr.c TODO L1 needs dma.h and dma.c
2013-03-01EXTI: Added function to get flag statusAustin Palmer
2013-02-27Fixing some errors introduced with #107.Michael Aherne
Namely: - I never added rtc to the makefile, so it wasn't getting compiled - I missed 2 includes that are needed once it's actually compiling
2013-02-26Adding some useful functions for wakeup timer interruptsMichael Aherne
2013-02-26Adding f4-specific rtc functionsMichael Aherne
These should also work with the f2
2013-02-26Implement SPI clean disable from TODO commentZachary Crockett
2013-02-26Fixed all warnings for examples.Piotr Esden-Tempski
2013-02-26Fix all remaining lib warnings.Piotr Esden-Tempski
2013-02-26Fixed all warnings in stm32l1 lib.Piotr Esden-Tempski
2013-02-26Fix all warnings for stm32f4 lib.Piotr Esden-Tempski
2013-02-26Fix all warnings for stm32f2 lib.Piotr Esden-Tempski
2013-02-26Fix all warnings for stm32f1 lib.Piotr Esden-Tempski
2013-02-26Added more warning CFLAGS to all makefiles.Piotr Esden-Tempski
2013-02-26FLASH: Make sure that the flash unlock register state is cleared before ↵Piotr Esden-Tempski
trying to unlock the flash.
2013-02-26Fixed gpio_primary_remap; swjdisable is pre-shifted and therefore needs to ↵Vegard Storheil Eriksen
be u32.
2013-02-25ADC: Fix CR usage in adc_enable_discontinuous_mode_regular. Fixes #101Piotr Esden-Tempski
2013-02-25CAN support STM32F4alexn
2013-02-19[cm3] fix doxygen for systick_get_value, add systick_get_reloadFelix Ruess
Fix the reload value in the examples: to get a SysTick interrupt every N clock pulses: set reload to N-1 see http://infocenter.arm.com/help/topic/com.arm.doc.dui0552a/BGBEEJHC.html#BABGACGG
2013-02-18Merge pull request #88 "Fix logical operator error in tim_ic_set_input ↵Piotr Esden-Tempski
reported by hmjack2008" Merge remote-tracking branch 'ksarkies/timer'
2013-02-18Merge pull request #92 "DMA tidyup"Piotr Esden-Tempski
Merge remote-tracking branch 'karlp/dma_tidy'
2013-02-18Adjusted code for l1 to the new api introduced by karlp in pr #84Piotr Esden-Tempski
2013-02-18Merge pull request #84 "Pr flash reg rename"Piotr Esden-Tempski
Merge remote-tracking branch 'karlp/pr_flash-reg-rename' Conflicts: include/libopencm3/stm32/l1/flash.h
2013-02-18Merge pull request #79 "More L1 support (and f2/f4 rtc)"Piotr Esden-Tempski
Merge remote-tracking branch 'karlp/pr_more_l1_rtc'
2013-02-18Merging pull request #78 "Remove assembly forcing stack."Piotr Esden-Tempski
Merge remote-tracking branch 'karlp/destroy-all-the-asm'
2013-02-18Merging pull request #76 "LM4F clock api"Piotr Esden-Tempski
Merge remote-tracking branch 'mrnuke/lm4f_clock_api'
2013-02-06[stm32-dma] Eliminate redundant write.Karl Palsson
Clearing a single bit in DMA_CCR, then immediately writing a 0 over the entire register is completely redundant on the F1, F3 and L1 DMA peripherals. (Unlike the F2 & F4 DMA Peripheral, where this is required)
2013-02-01Fix logical operator error in tim_ic_set_input reported by hmjack2008Ken Sarkies
2013-01-29Fixing gpio_set_af now really...Piotr Esden-Tempski
2013-01-29Fix gpio_set_af register usage.Piotr Esden-Tempski
2013-01-23[flash] f4: use "proper" bit definition naming.Karl Palsson
Part 4 of 4: updated f4 to use flash_<reg>_bit instead of just flash_bit
2013-01-23[flash] f2: use "proper" bit definition naming.Karl Palsson
Part 3 of 4: updated f2 to use flash_<reg>_bit instead of just flash_bit
2013-01-23[flash] f1: use "proper" bit definition naming.Karl Palsson
Part 2 of 4: updated f1 to use flash_<reg>_bit instead of just flash_bit
2013-01-23[flash] l1: use "proper" bit definition naming.Karl Palsson
Part 1 of 4: updated l1 to use flash_<reg>_bit instead of just flash_bit
2013-01-23Add examples making use of the RTCKarl Palsson
Add an example using the RTC to help with a lower power design. This is a sister example to the existing "button-irq-printf", which is functionally identical, but uses far less power. There's more tricks that can be done to lower the power even further, but this shows a few of the early steps that can be done, using the RTC wakeup instead of a timer.
2013-01-22[stm32] Support the "new" BCD style RTC peripheralKarl Palsson
Add the register definitions and some of the most basic helper functions for the new style BCD RTC module found on the F2, F4, L1, F3 and F0. This tries to keep as close to HACKING_COMMON_DOC as possible, while maintaining sane names.
2013-01-22[l1] rcc: support MSI clockingKarl Palsson
Some new definitions and helpers. Main change really that the list of preconfigured clock configs is no longer restricted to HSI/PLL
2013-01-22[l1] PWR: fix style for common codeKarl Palsson
Code added for L1 to support the PWR Control block didn't properly follow the HACKING_COMMON_DOC guidelines. The naming was wrong, and some headers were missing. This commit has no functional changes, it only addresses the style and structure problems.
2013-01-22[l1] fix whitespace and missing license infoKarl Palsson
Earlier additions to the L1 support were not correctly using linux coding guidelines as specified in /HACKING. Some examples were also missing license information.
2013-01-16Remove assembly forcing stack.Karl Palsson
Fixes #51 There should be no reason for manually trying to load the stack. Cortex devices can be programmed with only C, and any code that needed this would indicate broken vectors.
2013-01-10efm32gg990f1024: added linker scriptchrysn
2013-01-10platform-independent makefile: fix old "stm32" referencechrysn
the "make clean" target showed a constant "stm32/f1" debug message instead of the current relative directory. this is fixed by showing the relevant portion of the current directory instead, relevant being determined by evaluating the current makefile's relative position and stripping that part off.
2013-01-09Merging pull request #72 DocPiotr Esden-Tempski
Merge remote-tracking branch 'ksarkies/doc' Conflicts: doc/stm32f1/Doxyfile doc/stm32f2/Doxyfile doc/stm32f4/Doxyfile lib/stm32/f1/Makefile lib/stm32/f2/Makefile lib/stm32/f4/Makefile
2013-01-09lm4f: Add API for controlling the system run clock sourcesAlexandru Gagniuc
Add an abstraction layer to handle the clock control for the run time clock on LM4F (RCC). Sleep and deep-sleep clock configuration is not handled. Complete documentation for the clock control API is included in doxygen-style comments, and is included in [doc]. Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Conflicts: lib/lm4f/Makefile
2013-01-09lm4f: Add API for enabling/disabling peripherals clock sourceAlexandru Gagniuc
The enum definitions are specified in the form 31:5 register offset from SYSCTL_BASE for the clock register 4:0 bit offset for the given peripheral The names have the form [clock_type]_[periph_type]_[periph_number] Where clock_type is RCC for run clock SCC for sleep clock DCC for deep-sleep clock Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
2013-01-08CRC moved to common areaKen Sarkies
2013-01-08I2C to common areaKen Sarkies
F2/4 has now I2C3 included