aboutsummaryrefslogtreecommitdiff
path: root/lib/stm32/f1
AgeCommit message (Collapse)Author
2013-03-19Add support for static constructors and destructorsinit-fini-2Nicolas Schodet
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-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-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-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-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-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-08CRC moved to common areaKen Sarkies
2013-01-08I2C to common areaKen Sarkies
F2/4 has now I2C3 included
2013-01-08IWDG moved to common areaKen Sarkies
2013-01-08Move usart files to common areaKen Sarkies
Again added to L1 which is similar to F1
2013-01-08Move DAC to common areaKen Sarkies
(Note there are now dummy source files dac.c (and others) that are not compiled but are needed for documentation).
2013-01-08STM32: Moved SPI code into the common area.Ken Sarkies
Updated the documentation so that it appears in all families Also added it to the L1 area, but is untested. An addition to the memorymap allows commonality and a #ifdef added to the spi_common_all code to exclude the case of SPI3 for L1 and F0 as SPI3 doesn't exist in those. An rcc dispatch header was added to remove same code from the spi header.
2013-01-08Move STM32F1 DMA files to respective common directoriesKen Sarkies
This sets the stage for adding DMA to STM32F3xx (when added) and STM32L1xx as the controller appears to be identical in these.
2013-01-06Merging pull request #63 Improvements to STM32F1 I2C, CAN, RCC, and USB (f107)Piotr Esden-Tempski
Merge remote-tracking branch 'icd/master'
2012-11-13Merge branch 'master' of git://github.com/libopencm3/libopencm3 into ↵Jeff Ciesielski
upstream-merge
2012-11-13Proposed deduplication of peripherals, GPIO exampleKen Sarkies
See rambling post on dev list for justification
2012-11-12[doc] Cosmetic.Piotr Esden-Tempski
2012-11-12Documentation updatesKen Sarkies
2012-11-07Vectors and Memory Map for STM32L1 seriesKarl Palsson
2012-11-06Add a desig_get_unique_id_as_stringAndrey Smirnov
This commit adds desig_get_unique_id_as_string which is useful if one wants to use device ID as USB serial number(iSerialNumber), for example.
2012-11-01stm32/f1/can: Add clearing of can timing bits on initJeff Ciesielski
This corrects a bug introduced with the addition of allowing loopback and silent parameters in the init function.
2012-10-31stm32/f1/can: clean up can_available_mailbox ->fewer 'if' statementsJeff Ciesielski
2012-10-31Merge pull request #57 F2/F4 timer merging actionPiotr Esden-Tempski
Merge remote-tracking branch 'tdaede/f4-timer'
2012-10-31Merge pull request #53 CAN fixesPiotr Esden-Tempski
Merge remote-tracking branch 'tdaede/master'
2012-10-31STM32F1 Addition to DMA to add interrupt flag read and clear.Ken Sarkies
Additional macros and defines added to header for the purpose. Also disable of increment modes (seem to have been omitted originally).
2012-10-31Merge pull request #22 fixing usb and f4 alignment issuesPiotr Esden-Tempski
Merge remote-tracking branch 'jdk/master' Conflicts: lib/stm32/f1/Makefile lib/stm32/f4/Makefile
2012-10-30Move timer.c to be common to all stm32 seriesThomas Daede
2012-10-28Add CAN support for F2 and F4 series.Thomas Daede
All stm32 series currently released share the same bxCAN hardware, so share can.c among all the families.
2012-10-22stm32/f1: Add user_reset_hook to reset_handler w/ jump_to_dfu presetJeff Ciesielski
This allows for pragramatic jumping to the DFU bootloader on CL devices, or could be used for things like CRC checking of the firmware before boot
2012-10-22stm32/f1/can: Add function to detect if can system has an available mailboxJeff Ciesielski
2012-10-19stm32/f1/can: Replace mistaken logical operators with bitwise operators.Jeff Ciesielski
also: remove unnecessary parenthesis
2012-10-19stm32/f1/gpio: use |= instead of = when setting up registersJeff Ciesielski
2012-10-19stm32/f1/rtc: add PLL2/3 to switch statement to avoid compiler warningJeff Ciesielski
2012-10-19stm32/f1/rcc: add 25mhz in to 72mhz out clock tree setup function.Jeff Ciesielski
also: added support for previously undefined PLLs
2012-10-19stm32/f1/vector: add ability to boot to DFU bootloaderJeff Ciesielski
note: Only works on CL devices also: this could probably use a helper function
2012-10-19stm32/f1/dma: add clear_flag helper functionJeff Ciesielski
2012-10-19stm32/f1/can: Add loopback/silent vars to init function.Jeff Ciesielski
Also: add helper function for mailbox checking
2012-10-19build common .o files everywhere (fixes issue #29)chrysn
vector.o, nvic.o, scb.o and assert.o are available on every platform, but at least some of them differ between the implementations. they already got built explicityly on some platforms; now adding them to the common Makefile.include.
2012-10-18unify scb (system control block)chrysn
these register definitions are common to all cortex mcus. some of the registers might not be implemented everywhere (especially the floating point registers), but defining them does no harm. this modification does not result in any changes in the example binaries.
2012-10-18drop two-line vector.c dispatchers in favor of central dispatchchrysn
2012-10-17Merge branch 'master' into generalizationschrysn
Conflicts: lib/lm3s/vector.c -- split out to lm3s/irq.h lib/stm32/f4/vector.c -- put the floating point initialization code into a function like in lpc43xx
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-10-05Doc changes to go with previous commitKen Sarkies