aboutsummaryrefslogtreecommitdiff
path: root/examples
AgeCommit message (Collapse)Author
2012-10-16fix clean target for example makefiles if the compiler is not in PATHFelix Ruess
2012-10-07updated the lisa_m_2 (STM32 F1) ADC examples for recent code changes to ↵Stephen Dwyer
stm32f1 adc.c and adc.h
2012-10-07oops, had to update bin names in makefiles for adc examplesStephen Dwyer
2012-10-07added different ADC sampling examples for the LisaM v2 including:Stephen Dwyer
* simple polling of an injected channel * timer triggered sampling of an injected channel * timer triggered sampling and IRQ handling of an injected channel * timer triggered sampling and IRQ handling of 4 injected channels
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-09-27Add a floating-point example to the stm32f4.Daniel Serpell
This example calculates a mandelbrot fractal using floating point in C.
2012-09-27Compile stm32-f4 library with floating point support.Daniel Serpell
This enables hard-float in the compilation of library and examples for the stm32f40* chips.
2012-09-25Explicitly link example binaries statically.Paul Sokolovsky
This allow good share of binaries be linkable (and actually run) with a typical distro-packaged ARM toolchain (Cortex-A and Linux targetted).
2012-09-10Renamed adc example to be more descriptive.Piotr Esden-Tempski
2012-09-10Added simple adc example for lisa/m 2.Piotr Esden-Tempski
2012-09-07Random number generator example.Oliver Dille
2012-09-06added a make target stlink-flash to use the stlink on the stm32f4-disoveryThomas Waldecker
2012-08-25Minor build system fixes.Piotr Esden-Tempski
2012-08-14Use make wildcard command for source dir detect. Library path fix.Piotr Esden-Tempski
Thanks ni!
2012-08-13Examples detect if they are being built in src dir.Piotr Esden-Tempski
If an example is in the libopencm3 source directory it will use the locally built library instead of the system library. When you copy an example out of the libopencm3 tree it will automatically detect it and build using the system wide installation.
2012-08-13Changed local build target for library and linker files.Piotr Esden-Tempski
- The library files are now being built into the lib subdirectory of the source. - The linker files for each library are being copied into the lib source subdirectory. Motivation: The relative locations of files in the source directory after make are now the same as after make install now. This makes it easier to reuse examples with their makefiles outside of the libopencm3 sourcecode directory.
2012-06-29Fix link flags to specify cpu instead of (wrong) arch.Karl Palsson
-march=armv7 is NOT right for cortex-m3, and results in unexpected arm code being linked in when using multilib toolchains
2012-06-13Fix Linker bug copy ROM to RAM & exec from RAM (need more test).TitanMKD
2012-06-10Added ROM to RAM code copy & exec with example of how to use it ↵TitanMKD
(miniblink_rom_to_ram).
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-07quick comment fixMichael 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-05removed some unused SCU configMichael Ossmann
2012-06-04resolved minor conflictMichael Ossmann
2012-06-05* Added SSP Driver (Not Tested).TitanMKD
* Replaced leading space by tabulations.
2012-06-04moved stuff out of i2cdemo.c and into drivers/headersMichael Ossmann
2012-06-04fixed i2cdemo to supply 1V8 for Si5351C output supplyMichael Ossmann
2012-06-03Merge branch 'master' of git://github.com/mossmann/libopencm3TitanMKD
2012-06-03got I2C demo working but stuff still needs to be moved out of here and into ↵Michael Ossmann
drivers
2012-06-03Added SCU I2C0 specific configuration.TitanMKD
2012-06-02Added JellyBean Configuration for PinMux, GPIO In/Out (work in progress).TitanMKD
Added scu driver file scu.c. Modified Makefile/Makefile.include to generate .map file and use -O2 as optimization. Modified hackrf-jellybean miniblink.c to enable 1V8 and blink LED1,2&3 with configuration of PinMux and GPIO.
2012-05-30started i2c example, still incomplete and much will be moved to ↵Michael Ossmann
drivers/headers elsewhere
2012-05-27added diolan-lpc-4350-db1 examplesMichael Ossmann
2012-05-22lpc43xx example, copied from lpc17xx and modifiedMichael Ossmann
2012-04-24Support for exception handling in linker scripts.Tomaz Solc
This is needed even in plain C when 64 bit variable (e.g. long long int) arithmetic is used. For example it is required when newlib is compiled with --enable-newlib-io-long-long. Conflicts: lib/stm32/f1/libopencm3_stm32f1.ld lib/stm32/f2/libopencm3_stm32f2.ld
2012-03-27Implemented gpio_clear() for LPC17xx.Taylor Vesely
2012-03-27Produced build system for Blueboard-LPC1768-H miniblink.Taylor Vesely
2012-03-26Added a bunch of register definitions and gpio_set() to LPC17xx gpio.Taylor Vesely
2012-03-22Wrote miniblink.c for Blueboard-LPC1768-H, cleaned up gpio.h.Taylor Vesely
2012-03-22Copy-pasted linker script from LPC13xx to LPC17XX. Set up the ram andTaylor Vesely
rom regions for the Blueboard-LPC1768-H.
2012-03-22Started porting to LPC17xx. Created file stubs and started conversion.Taylor Vesely
2012-03-14Added dma based usart IO example.Piotr Esden-Tempski
2012-03-12Added irq usart example for lisa/m 2.0Piotr Esden-Tempski
2012-03-11Added blocking usart printf for lisa/m 2.0Piotr Esden-Tempski
2012-03-11Added usart irq example for lisa/m 2.0Piotr Esden-Tempski
2012-03-11Added usart example to lisa/m 2.0Piotr Esden-Tempski
2012-03-03Fix search-replace left-over.Uwe Hermann
2012-03-02Some additional LGPL3+ license change cleanups.Piotr Esden-Tempski
Changed the license to LGPL3+ for some makefiles that got ommited in the previous big patch commit. Corrected a find and replace error in a linker file.