aboutsummaryrefslogtreecommitdiff
path: root/include/libopencm3
AgeCommit message (Collapse)Author
2012-10-17[fix] GCC < 4.5 that does not accept any argument for the deprecated attribute.HEADmasterFelix Ruess
2012-10-16Initial documentation for SPI, I2C and CRCKen Sarkies
(no code changes)
2012-10-16Additional stm32/usart.c functions to enable/disable Rx/TxKen Sarkies
interrupts, return a status flag and check for interrupt source.
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-10-05Merging pull request #28 Random number generator defenition and example.Piotr Esden-Tempski
Merge remote-tracking branch 'tiltit/master'
2012-10-05Merging pull request #37 Adds hard-float support to stm32f4, with a nice ↵Piotr Esden-Tempski
mandelbrot example Merge remote-tracking branch 'schodet/hard-float'
2012-10-05Code changes to stm32f1 adc.c and adc.hKen Sarkies
remove rcc_set_adc_clk - use rcc version Added functions: - adc_power_on - adc_start_conversion_direct - adc_set_dual_mode - adc_eoc - adc_eoc_injected - adc_read_regular - adc_read_injected - adc_set_injected_offset Tested dual mode scanned regular, but no tests of injected yet. Changes: "discontinuous" was misspelled. - adc_set_discontinuous_mode_regular - added "length" parameter - adc_disable_discontinuous_mode_regular - name change - adc_enable_discontinuous_mode_injected - name change - adc_enable_automatic_injected_group_conversion - disable triggers - adc_enable_jeoc_interrupt - name change to match common usage in lib - adc_disable_jeoc_interrupt - ditto - adc_enable_external_trigger_regular - remove incorrect test on parameter - adc_enable_external_trigger_injected - ditto - adc_set_sample_time - name change to match function's purpose - adc_set_conversion_time_on_all_channels - ditto - adc_set_injected_sequence - changed order of register loading (ref Barlow's issue) - adc_enable_analog_watchdog_on_all_channels - flipped AWDSGL - adc_enable_analog_watchdog_on_selected_channel - ditto added aliases for expected commonly used functions to avoid sudden user code breakage In adc.h, corrected errors in SQR names added "deprecated" compiler warnings to adc_on and to aliases defined in adc.c
2012-10-02Add assert macros to aid in debugging.Tomaz Solc
Adds libopencm3/cm3/assert.h header that provides assertion check macros similar to those provided by the standard C library. Thanks to Nicolas Schodet for help.
2012-09-27Add all SCB registers mentioned in ARM DDI 0403D manual.Daniel Serpell
See table B3-4 and B3-5 for the definitions and B3-24 for the bit assignments of SBC_CPACR.
2012-09-17Fix merge errorNicolas Schodet
This line was removed in commit acc276a612d4, but it has been restored in the merge 02ea612142fb.
2012-09-15Setup to document entire project using doxygen.Ken Sarkies
New doc directory with config files and generated html, LaTeX/pdf. Makefile provided for autogeneration and explanatory README. The project structure is hostile to doxygen, which can't cope with functions of the same name. Doxygen is run for each family separately, and separately for LaTeX generation. Customized layout files sort of "integrate" HTML, and separate pdfs are generated for each family. Not ideal but seems the best solution until doxygen changes, if at all.
2012-09-10Merge pull request #25 "Add support for C++ and fix some comments typo"Piotr Esden-Tempski
Merge remote-tracking branch 'schodet/master' Conflicts: include/libopencm3/stm32/f1/adc.h
2012-09-07Random number generator register definitions.Oliver Dille
2012-09-02Fix comments typoNicolas Schodet
2012-09-02Add C linkage declaration for C++ usageNicolas Schodet
2012-08-31STM32F1xx Additional minor changes to adc.h and adc.cKen Sarkies
2012-08-31ADC documentation addedKen Sarkies
In adc.h additional defines needed to assist documentation - lines 172-191 added, and 384,436-451 are duplicates of earlier defines to complete parameter sets (compiler has no trouble with these). Minor doc corrections to other files. No code changes (apart from additional defines).
2012-08-25Merging pull request #23 Changed markup to get more control over documentation.Piotr Esden-Tempski
Merge remote-tracking branch 'ksarkies/doc'
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-08-18And a bit more doc modsKen Sarkies
2012-08-18Tiny doxygen mod to get all constants to show in doc outputKen Sarkies
2012-08-18Update to doxygen comments to fix promiscuity problem (see later)Ken Sarkies
2012-08-14Revert nvic_set_priority to original form. Minor doxygen markup changes.Ken Sarkies
2012-08-14Merge branch 'master' into nvicKen Sarkies
2012-08-11Merging pull request #19 "STM32F timers. Doxygen markup added, and some code ↵Piotr Esden-Tempski
changes" by Ken Sarkies. Merge remote-tracking branch 'ksarkies/timer'
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-07-09NVIC_Set_Interrupt_Priority: change to use 4-bit fields.Ken Sarkies
(viz STM32F10xxx Cortex-M3 programming manual PM0056 and Cortex-M3-Generic-User-Guide.pdf) Doxygen commentary added
2012-07-09Minor changes to doxygen content, no changes to code.Ken Sarkies
2012-06-30Code for DAC module STM32Fxxx seriesKen Sarkies
Add prototypes to dac.h and small change to simplify alignment enum
2012-06-29Basic helper routines for CRCKarl Palsson
Note, the CRC block is pretty useless for interoperability. It only operates on 32bit chunks, and in a different bit order. No attempt to make full helpers for compatibility with other implementations has been done. https://my.st.com/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2Fcortex_mx_stm32%2FCRC%20computation&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&currentviews=2006
2012-06-27Merge pull request #13 "Code for iwdg module STM32F series"Piotr Esden-Tempski
Merge remote-tracking branch 'ksarkies/iwdg-dev'
2012-06-27Merge pull request #11 "Add helper function for max clock on HSI for f100"Piotr Esden-Tempski
Merge remote-tracking branch 'karlp/hsi_f1_24'
2012-06-27Merge pull request #10 "Add Device Electronic Signature support."Piotr Esden-Tempski
Merge remote-tracking branch 'karlp/desig'
2012-06-27Merge pull request #9 "Even/Odd parity bit configs used the wrong bit"Piotr Esden-Tempski
Merge remote-tracking branch 'karlp/parity'
2012-06-27Merge pull request #6 "Doxygen markup and grouping structrue"Piotr Esden-Tempski
Merge remote-tracking branch 'ksarkies/doc' Conflicts: include/libopencm3/cm3/common.h
2012-06-27Merge remote-tracking branch 'mossman/master'Piotr Esden-Tempski
Merging Pull request #9 by mossman and co. Adding preliminary support for LPC43xx.
2012-06-25* Updated GPIO added gpio_toggle() function.TitanMKD
* Fixed ROM to RAM Linker script (libopencm3_lpc43xx/libopencm3_lpc43xx_rom_to_ram.ld).
2012-06-14Updated SGPIO #defines to match register naming in latest (8 June 2012) User ↵Jared Boone
Manual.
2012-06-13Add SGPIO slice defines and indexed register access macros.Jared Boone
2012-06-13Code for iwdg module STM32F seriesKen Sarkies
2012-06-12Add helper function for max clock on HSI for f100Karl Palsson
Based on existing HSI code. Tested with f100c8, on custom board with no external crystals or resonators.
2012-06-12Add Device Electronic Signature support.Karl Palsson
Working unique id support, but not 100% convinced that this is the "least surprise" path. ST's docs provide the bits from low to high, in 2xu16 and 2xu32. But to get it back as a "u96" the highest bits should be first?
2012-06-12Even/Odd parity bit configs used the wrong bitKarl Palsson
Checked F10x, F100, F4 and L1 reference manuals. Confirmed with my user application code.
2012-06-09Work on scs.h register and also nvic.h.TitanMKD
ARM Interrupt API (see nvic.h). ARM SysTick API (see systick.h). Example using both Interrupt and SysTick and blink LED1/2/3 see systickdemo.c.
2012-06-06more CGU register valuesMichael Ossmann
2012-06-06Fixed SSP, tested with Oscilloscope Write work fine (tested SPI Mode).TitanMKD
For more details on tests see ssp/README.
2012-06-05fixed some column alignment to conform with libopencm3 precedentMichael Ossmann
2012-06-04resolved minor conflictMichael Ossmann
2012-06-05* Added SSP Driver (Not Tested).TitanMKD
* Replaced leading space by tabulations.